set image quality on ezpublish 5

702 views Asked by At

Is it possible to set quality for png images on ezpublish 2014.11 in `image_variations' config.

I'm looking for something like this :

    media:
        reference: null
        quality: 50
        filters:
            - { name: geometry/scalewidthdownonly, params: [100] }

I found ezpublish doc on alias, but it seems limited to jpeg.

I found jpegoptim liip post processor, but liip imagine doesn't seems to have an optipng post processor.

So my guess is that I'll have to build my own post processor based on the jpegoptim one.

Any simpler solution ?

1

There are 1 answers

5
Heath On BEST ANSWER

These rather new liip imagine bundle setting / feature(s) are not supported 'directly' (today) in eZ Publish 5.4 (Community Build 2014.11 or latest composer / GitHub sources).

This has been discussed previously: http://share.ez.no/forums/ez-publish-5-platform/ez-5.4-image-variations-jpeg-quality

http://share.ez.no/forums/discussions/new-in-ez-5.4-image-alias-system-revamped/(order)/latest

Rumor has it that this will be addressed in the future but no specific commitments have yet been publicly made. There is an existing issue ticket for this concern: https://jira.ez.no/browse/EZP-24167

A user did find a partial work around that they shared as helpful but not quite perfect: http://share.ez.no/forums/ez-publish-5-platform/ez-5.4-image-variations-jpeg-quality/comment86157