eZ Community » Forums » eZ Publish 5 Platform » ImageMagick - how to setup the image...
expandshrink

ImageMagick - how to setup the image quality in Ez5

ImageMagick - how to setup the image quality in Ez5

Thursday 05 February 2015 4:28:33 pm - 5 replies

Is it possible to setup the quality parameter for the resized image? The legacy settings:

[MIMETypeSettings]
...
# A list of mimetypes and their image quality value
# The value varies from mime type to mime type.
Quality[]
# Set JPEG quality from 0 (worst quality, smallest file) to 100 (best quality, biggest file)
Quality[]=image/jpeg;100

Quality[]=image/png;100

 

...

 

[ImageMagick]
Name=ImageMagick
# If set to true then this handler will be used,
# The setup wizard will turn this off it ImageMagick is not found on the system
IsEnabled=true
...
# A list of mime types and their quality parameters
QualityParameters[]
QualityParameters[]=image/jpeg;-quality %1
QualityParameters[]=image/png;-quality %1

 

are not resolving in any improvement of the quality of the converted image. The quality is still poor.

Is there a possibilty to setup the quality parameter in Symfony? Maybe some additional parameter when image variations are defined?

 image_variations:             
               my_cross_selling:
                    reference: null
                    filters:
                        - { name: resize/both, params: [140, 140] }
                        - { name: background/white, params: [] }
                        - { name: gravity/center, params: [] }
                        - { name: extent, params: [140, 140] }

Friday 06 February 2015 1:21:56 pm

 

Could you provide an example of the loss of quality you are experiencing?

When you scale an image up or down, in any software, there will always be some loss of quality. Certain types of image will scale better than others. Generally photos and paintings scale well, text and graphics don't.

I've found that jpeg artifacts only become obscene below 60%. Anything between 60-100% is usually fine.

Friday 06 February 2015 1:27:29 pm

Are you sure you are still using imagemagick with ez5? i mean, new stack doesn't use it since some weeks ago....

Monday 09 February 2015 3:26:37 pm

Quote from Carlos Revillo :

Are you sure you are still using imagemagick with ez5? i mean, new stack doesn't use it since some weeks ago....

Do you mean eZ 5.4? I am still using 5.3.0

Tuesday 10 February 2015 12:41:15 pm

Hello Andrea,

If your using eZ Publish 5.3 then you can only define image alias parameters via legacy image.ini settings.

EDIT: I've always found that GD2+ did a better job with jpeg image alias quality than ImageMagick but then that was a long time ago when I ever had such a problem.

In eZ Publish 5.4 you would use this doc to help you configure the new image alias parameters in yml:

https://doc.ez.no/display/EZP/Image+alias+generation

I hope this helps!

Cheers,
Heath 

Modified on Tuesday 10 February 2015 12:42:39 pm by // Heath

Friday 13 February 2015 3:57:42 pm

Quote from // Heath :

Hello Andrea,

If your using eZ Publish 5.3 then you can only define image alias parameters via legacy image.ini settings.

EDIT: I've always found that GD2+ did a better job with jpeg image alias quality than ImageMagick but then that was a long time ago when I ever had such a problem.

In eZ Publish 5.4 you would use this doc to help you configure the new image alias parameters in yml:

https://doc.ez.no/display/EZP/Image+alias+generation

I hope this helps!

Cheers,
Heath 

Thank you. I will maybe update happy.gif Emoticon

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from