Forums / General / Images are slightly blurred...

Images are slightly blurred...

Author Message

Greg Sanderson

Monday 21 April 2008 10:19:44 am

Hi

Has anyone else had the problem that when you embed an image in a page it looks slightly blurred when you choose one of the sizes like "medium" to display it (ie not "original" size)? Is this a problem with PHP - I am using the GD2 library - or is it a problem with eZ's settings? Would installing imageMagick help?

If anyone has got any example sites where you have used the in-built resizing and your images are clear that would be great to look at too.

Thanks.

bisk

Monday 21 April 2008 11:24:40 am

I've had this problem as well. Using imagemagick fixed it for me.

I've tried all kinds of settings when using GD2, but images were always slightly blurred.

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

André R.

Monday 21 April 2008 11:31:01 am

imageMagick would help, but you can also try to tweak the jpg compression level.
Its set in image.ini, look for 'Quality[]=image/jpeg;75'.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Greg Sanderson

Tuesday 22 April 2008 2:48:51 am

I have tried increasing the quality to 100 but they still look blurred. Could it be that the image resampling function that resizes the images is being called twice, so they are getting blurred since they are being resampled twice? I can not find the function definition for ImageCopyResampled anywhere in my eZ folder - only where it is called in the ezimagegdhandler.php file.

I don't think it is a problem with GD - I have written my own image resizer and this gives great results. When I add an image, when it first appears in the editor if looks ok but when I click "send for publishing" and then refresh the browser window it looks slightly blurred... could it be resampled twice maybe?

Espen R

Friday 16 May 2008 7:02:06 am

This is true. It has been like this for years. Your images will indeed be resampled several times. This clearly has something to do with in which sequence you place the image settings in image.ini (or your override). To avoid resampling you should place the <b>largest</b> scaling first.

Like this:

[large]
MIMEType=image/jpeg
Filters[]
Filters[]=geometry/scale=600;600
Filters[]=quality=70

[medium]
Filters[]
Filters[]=geometry/scale=300;300

[small]
Filters[]
Filters[]=geometry/scale=100;100

It's incredible that so few people notice or complain about this.

Hope it helps anyway. :)

Hughes909 elite

Sunday 18 May 2008 3:28:56 pm

I have been suffering from this probelm! i have also written my own image resizing script its gives much better results.

Thank you

http://www.elitesat.com/hughesnet.asp
http://www.getdsltoo.com/satelliteinternet.asp