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

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

eZ debug

Timing: Jan 18 2025 11:24:25
Script start
Timing: Jan 18 2025 11:24:25
Module start 'layout'
Timing: Jan 18 2025 11:24:25
Module start 'content'
Timing: Jan 18 2025 11:24:25
Module end 'content'
Timing: Jan 18 2025 11:24:25
Script end

Main resources:

Total runtime0.6786 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9063152.6250
Module start 'layout' 0.00560.0032 740.531339.4453
Module start 'content' 0.00880.6684 779.9766674.1250
Module end 'content' 0.67720.0014 1,454.101616.1641
Script end 0.6785  1,470.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4701160.0002
Check MTime0.00140.2052160.0001
Mysql Total
Database connection0.00080.113610.0008
Mysqli_queries0.607589.5322720.0084
Looping result0.00100.1445700.0000
Template Total0.646095.220.3230
Template load0.00180.263020.0009
Template processing0.644294.930320.3221
Template load and register function0.00010.021210.0001
states
state_id_array0.00110.158410.0011
state_identifier_array0.00100.143120.0005
Override
Cache load0.00150.2191270.0001
Sytem overhead
Fetch class attribute can translate value0.00080.124050.0002
Fetch class attribute name0.00210.313680.0003
XML
Image XML parsing0.00130.196550.0003
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00090.1326230.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs