Images quality (definition)

Author Message

Catherine Mollet

Tuesday 01 December 2009 9:43:07 am

Hello,

Using eZwebin, I have problems with the quality of images, especially the ones uploaded with "Image" attribute. Very bad quality, seems to be extremely compressed.

In the template, image is set with

{attribute_view_gui attribute=$node.data_map.image}

In the image.ini.append.php file, settings are :

[MIMETypeSettings]
Quality[]
Quality[]=image/jpeg;100

What can I do to have good quality images ?

Gaetano Giunta

Tuesday 01 December 2009 12:37:00 pm

I am sure you checked, but since you are not specifying the image variant, it might be that you are producing small-resolution images upscaled (badly) by the browser?

Principal Consultant International Business
Member of the Community Project Board

Catherine Mollet

Wednesday 02 December 2009 3:14:16 am

Thanks Gaetano. I didn't know, then you gave a direction to look at. I put

{attribute_view_gui attribute=$node.data_map.image image_class=articleimage}

in the template to have load a different image variation. Indeed, myimage_articleimage.jpg is loaded, but quality is still bad. Original image size is 24 ko and myimage_articleimage.jpg is 5 ko... Quite an awful compression.

Catherine Mollet

Wednesday 16 December 2009 9:01:51 am

Up...

Nicolas Pastorino

Monday 25 January 2010 10:29:49 am

Hello Catherine,

Did you make sure that the 'articleimage' transformation (defined in image.ini) is not applying quality-degrading filters ? And what image processing backend are you using ? ImageMagick or GD ?

You may want to give us the details of the 'articleimage' filter btw.

Let us know,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Catherine Mollet

Thursday 28 January 2010 6:54:52 am

Hi Nicolas,

I guess it's GD, because in phpinfo(), I see that GD is enabled, and in settings/override/image.ini.append.php, there is

[ImageMagick]
IsEnabled=false

But, in extensions/myextension/settings/image.ini.append.php, there's

[ImageMagick]
Filters[]=centerimg=-gravity center -crop %1x%2+%3+%4

So I don't understand very well.

And for "articleimage", details are

[articleimage]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=170;350

Is that details you asked for ? I really don't know where to look at...

Thanks

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 04:54:14
Script start
Timing: Jan 18 2025 04:54:14
Module start 'layout'
Timing: Jan 18 2025 04:54:14
Module start 'content'
Timing: Jan 18 2025 04:54:15
Module end 'content'
Timing: Jan 18 2025 04:54:15
Script end

Main resources:

Total runtime0.7542 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 587.9141152.6250
Module start 'layout' 0.00460.0032 740.539139.4453
Module start 'content' 0.00780.7449 779.9844614.8125
Module end 'content' 0.75270.0014 1,394.796916.1641
Script end 0.7541  1,410.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4476160.0002
Check MTime0.00130.1748160.0001
Mysql Total
Database connection0.00070.091110.0007
Mysqli_queries0.693992.0075680.0102
Looping result0.00060.0827660.0000
Template Total0.718995.320.3594
Template load0.00220.295120.0011
Template processing0.716695.026120.3583
Template load and register function0.00020.028810.0002
states
state_id_array0.00140.180310.0014
state_identifier_array0.00150.193420.0007
Override
Cache load0.00180.2394360.0001
Sytem overhead
Fetch class attribute can translate value0.00070.098030.0002
Fetch class attribute name0.00090.117280.0001
XML
Image XML parsing0.00130.166030.0004
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00320.4202220.0001
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
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs