Magento 2.3, Too Many Duplications in Product Image Cache?












0















I've been working on improving Magento product image quality since the start of the week. I have clients spend big bucks in product photography and their photos came out pin sharp, however, after product images uploaded the Magento (currently on 2.3), all product images look really washed out. Turned out by default Magento 2 has quite aggressive image compression on both gd2 and imagemagick.



I'm still figuring out the solution, but while I was checking product image cache, I found something needs a bit attention: there are a lot of duplicated images in image cache. To be specific, after uploading just one product image, I counted 22 images in total in the cache folder:




  • 16 images are the same size at 4k

  • 3 images are the same size as 8k

  • 1 image at size 32k

  • 1 image at size 52k

  • 1 image at size 72k


My original product image size is 232k. As you can see how much compression there is, which is outrageous from my point of view!



I'm not sure why do we need so many variations of the exact image? Are they there for good reasons or it's just poorly done? This keeps bothering me because I cannot stop thinking how much server space we've wasted for the way image cache is done; while on the other hand we aren't able to get a decent image quality we deserve. Any opinions are appreciated, thank you!









share



























    0















    I've been working on improving Magento product image quality since the start of the week. I have clients spend big bucks in product photography and their photos came out pin sharp, however, after product images uploaded the Magento (currently on 2.3), all product images look really washed out. Turned out by default Magento 2 has quite aggressive image compression on both gd2 and imagemagick.



    I'm still figuring out the solution, but while I was checking product image cache, I found something needs a bit attention: there are a lot of duplicated images in image cache. To be specific, after uploading just one product image, I counted 22 images in total in the cache folder:




    • 16 images are the same size at 4k

    • 3 images are the same size as 8k

    • 1 image at size 32k

    • 1 image at size 52k

    • 1 image at size 72k


    My original product image size is 232k. As you can see how much compression there is, which is outrageous from my point of view!



    I'm not sure why do we need so many variations of the exact image? Are they there for good reasons or it's just poorly done? This keeps bothering me because I cannot stop thinking how much server space we've wasted for the way image cache is done; while on the other hand we aren't able to get a decent image quality we deserve. Any opinions are appreciated, thank you!









    share

























      0












      0








      0








      I've been working on improving Magento product image quality since the start of the week. I have clients spend big bucks in product photography and their photos came out pin sharp, however, after product images uploaded the Magento (currently on 2.3), all product images look really washed out. Turned out by default Magento 2 has quite aggressive image compression on both gd2 and imagemagick.



      I'm still figuring out the solution, but while I was checking product image cache, I found something needs a bit attention: there are a lot of duplicated images in image cache. To be specific, after uploading just one product image, I counted 22 images in total in the cache folder:




      • 16 images are the same size at 4k

      • 3 images are the same size as 8k

      • 1 image at size 32k

      • 1 image at size 52k

      • 1 image at size 72k


      My original product image size is 232k. As you can see how much compression there is, which is outrageous from my point of view!



      I'm not sure why do we need so many variations of the exact image? Are they there for good reasons or it's just poorly done? This keeps bothering me because I cannot stop thinking how much server space we've wasted for the way image cache is done; while on the other hand we aren't able to get a decent image quality we deserve. Any opinions are appreciated, thank you!









      share














      I've been working on improving Magento product image quality since the start of the week. I have clients spend big bucks in product photography and their photos came out pin sharp, however, after product images uploaded the Magento (currently on 2.3), all product images look really washed out. Turned out by default Magento 2 has quite aggressive image compression on both gd2 and imagemagick.



      I'm still figuring out the solution, but while I was checking product image cache, I found something needs a bit attention: there are a lot of duplicated images in image cache. To be specific, after uploading just one product image, I counted 22 images in total in the cache folder:




      • 16 images are the same size at 4k

      • 3 images are the same size as 8k

      • 1 image at size 32k

      • 1 image at size 52k

      • 1 image at size 72k


      My original product image size is 232k. As you can see how much compression there is, which is outrageous from my point of view!



      I'm not sure why do we need so many variations of the exact image? Are they there for good reasons or it's just poorly done? This keeps bothering me because I cannot stop thinking how much server space we've wasted for the way image cache is done; while on the other hand we aren't able to get a decent image quality we deserve. Any opinions are appreciated, thank you!







      magento2 product-images





      share












      share










      share



      share










      asked 3 mins ago









      Ethan WanEthan Wan

      587




      587






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "479"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f259164%2fmagento-2-3-too-many-duplications-in-product-image-cache%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f259164%2fmagento-2-3-too-many-duplications-in-product-image-cache%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Alcázar de San Juan

          Griza ansero

          Heinkel He 51