Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24167

Image variations JPEG quality

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 2014.11, 2015.01
    • None

    Description

      I'm using the 2014.11.1 ezpublish-kernel release and the liip-imagine-bundle that comes with this version. I noticed that without setting any image quality option all images variations are saved with 100% quality which leads to some very huge image files.

      I tried the following settings:

      1) Setting the jpeg quality in the ez image variations:

      ezpublish:
          system:
              global:
                  image_variations:
                      my_variation:
                          quality: 60
                          jpeg_quality: 60
      

      Doesn't work, error on clear:cache. Options unknown.

      2) Setting the jpeg quality in the liip_imagine block (additionally to the setting above in "image_variations"):

      liip_imagine:
          driver: imagick
          filter_sets:
              my_variation:
                  quality: 70
                  jpeg_quality: 70
      

      Doesn't work, the 100% quality setting from the image_variations setting is used.

      3) Setting the jpeg quality in the liip_image block only (the image variation MUST NOT be defined in the image_variation block):

      liip_imagine:
          driver: imagick
          filter_sets:
              my_variation:
                  quality: 70
                  jpeg_quality: 70
      

      This one works! I also found out that both settings (quality + jpeg_quality) are used, but I would prefer "jpeg_quality" since "quality" is deprecated.

      It would be nice if the different quality settings could be used directly inside the image variations block.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmu@reichl.cc dmu@reichl.cc
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: