Image Compression Problem in EZP 3.6.0

Author Message

H-Works Agency

Wednesday 03 August 2005 8:11:50 am

There is a big image compression problem in ezp 3.6.0 and nobody seems to have found the bug...

In fact when you upload a perfect image to ezp and output it in a ezp image alias (jpeg quality 100 or PNG) the image is totally blurred. Like a 60% jpeg quality or worse.

I think it's a EZP problem cause ImageMagick don't have this kind of bug when used from the command line.

It makes it impossible to use it on professionals gallery sites.

Anyway EZP is still a great system and i'm shure the bug will be repaired soon.

Waiting for this moment, if someone could help me it'd be very cool.

Thank you. Martin

EZP is Great

Georg Franz

Wednesday 03 August 2005 8:32:15 am

Hi Martin,

put something similar in your image.ini.append:

[MIMETypeSettings]
Quality[]
# Set JPEG quality from 0 (worst quality, smallest file) to 100 (best quality, biggest file)
Quality[]=image/jpeg;80

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

H-Works Agency

Tuesday 30 August 2005 4:08:59 am

My problem is still here, even with Quality[]=image/jpeg;100 : the quality is awfull ! What is the problem with the image compression system in ezpublish ?

My system is : apache/mysql/debian/ezp 3.6.0

Can someone help me.

EZP is Great

Martin Kristiansen

Tuesday 30 August 2005 7:32:10 am

Hello Martin.

I have the same problem, and I am also using eZp 360.

Very blury jpegs.

But I have to sites runing 360, and it is only a problem with one of them. So I think the bug is on the server.

Martin

See if I am online
http://mystatus.skype.com/bigclassic/nettmedia

Dive it -Sail it - Blogg it - Its life!
http://frittliv.blogspot.com

bisk

Tuesday 30 August 2005 8:33:13 am

I've had the same problem with blurry images on different servers, but only when using imagegd, changing the compression settings didn't help.

Because of this problem I've compared lot's of images compressed at different quality levels with photoshop, with ez publish imagegd and ez publish imagmagick. GD was poor overall, photoshop was good, imagemagick was great (small filesizes and good quality).

If you have imagemagick installed/available then disable gd and use imagemagick. Imagemagick works great and compression & image quality is very good, as intended.

<b>Make sure gd is disabled</b> and that ez publish is using imagemagick. Edit your image.ini's and also set the correct path to imagemagick.

[GD]
Name=GD
IsEnabled=false

[ImageMagick]
Name=ImageMagick
IsEnabled=true

This problem has been discussed before:

http://ez.no/community/forum/install_configuration/poor_image_quality_to_much_compression

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

H-Works Agency

Tuesday 13 September 2005 9:07:09 am

Ok i finally found the problem !!!

The blurry bad quality problem in image compression with EZP was not due to the image handler (GD or IMageMagick - even if IMGMGK is a lot better than GD).

The problem was due to the Filters[] entrie in the siteaccess image.ini. For exemple i had a 'large' alias then a 'small' alias detailed as follow :


[large]
MIMEType=image/jpeg
Filters[]=geometry/scale:600;480

[small]
MIMEType=image/jpeg
Filters[]=geometry/crop:40;40;0;0

With this setting compression was blurry/dirty because filters seems to add to each other (i don't know what this mecanism is supposed to do) so large was scaled up from a 300;xxx alias that i didn't ordered. As the image was scaling up, the image was dirty.

Now this setting is working :


[large]
MIMEType=image/jpeg
Filters[]
Filters[]=geometry/scale:600;480

[small]
MIMEType=image/jpeg
Filters[]=geometry/crop:40;40;0;0

In a resume, try to put a empty 'Filters[]' line somewhere because otherwise Filters are stacking as an array (well it is an array) thus cumulating their effects in a way i couldn't explain.

Thanx to everyone for the help.

Martin

EZP is Great

Marcin Stêpieñ

Tuesday 22 August 2006 10:18:50 am

If you want to turn off the jpg compression at all try to change the image.ini

from:

[EXIFAnalyzer]
MIMEList[]
MIMEList[]=image/jpeg
MIMEList[]=image/tiff

to:

[EXIFAnalyzer]
MIMEList[]
MIMEList[]=image/tiff

http://www.smart.biz.pl

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.