eZpublish modified original image

Author Message

Joanna Grzegorczyk

Friday 06 February 2009 6:13:23 am

It already happened a few times that eZpublish modified original images. It happened in different eZpublish versions (3.8.9, 4.0, 4.0.1).

Normally the original images are stored in the var/storage directory and have original sizes. But sometimes I don't know what happens but original image is modified as well when creating other image aliases.

Do you know why it can happen?

http://ez.no/certification/verify/253200

Jakub Derdziak

Monday 24 May 2010 12:41:24 am

Now I have the same problem after upgrade from 4.0.0 to 4.3.0. What strange, eZPublish destroys only images that was uploaded before upgrade. New added images are fine. Any sugestions what can by done?

Steven E. Bailey

Monday 24 May 2010 4:22:38 am

I've never had ezpublish do this to my originals - but I have managed to do this myself while testing imagemagick on the command line on a test machine. If I accidentally reverse the input and output names for convert it ends up creating a 0kb file overwriting the original. Is this what is happening - 0kb files?

A few other questions - are you on a windows or linux machine? Are you using imagemagick or only GD? Are any of your extensions manipulating images?

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Jakub Derdziak

Monday 24 May 2010 5:03:54 am

Hi Steven.

I'm on Linux. Only GD. No, no extensions. We think we found a problem - in some moment of upgrade eZPublish has hard-linked some image aliases with their originals. So while system re-generating aliases it regenerates orignal too. But now it's just a teory.

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 05:10:35
Script start
Timing: Jan 18 2025 05:10:35
Module start 'layout'
Timing: Jan 18 2025 05:10:35
Module start 'content'
Timing: Jan 18 2025 05:10:36
Module end 'content'
Timing: Jan 18 2025 05:10:36
Script end

Main resources:

Total runtime0.7256 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0313152.6250
Module start 'layout' 0.00610.0029 741.656339.4453
Module start 'content' 0.00900.7150 781.1016575.7344
Module end 'content' 0.72410.0015 1,356.835912.1563
Script end 0.7256  1,368.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4499160.0002
Check MTime0.00140.1901160.0001
Mysql Total
Database connection0.00080.107610.0008
Mysqli_queries0.678993.5721620.0110
Looping result0.00060.0871600.0000
Template Total0.693695.620.3468
Template load0.00230.318020.0012
Template processing0.691395.277020.3457
Template load and register function0.00020.025510.0002
states
state_id_array0.00100.142610.0010
state_identifier_array0.00200.270420.0010
Override
Cache load0.00190.2600150.0001
Sytem overhead
Fetch class attribute can translate value0.00110.145830.0004
Fetch class attribute name0.00190.265650.0004
XML
Image XML parsing0.00080.112930.0003
class_abstraction
Instantiating content class attribute0.00000.002250.0000
General
dbfile0.00080.1058170.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs