Forums / Developer / 3.5 -> How can I recreated image variations

3.5 -> How can I recreated image variations

Author Message

Adolfo Barragán

Tuesday 15 March 2005 10:40:42 pm

I have read somewhere in forums that if I delete image variations then the new image system will recreate the files. So I delete the file myr350/var/web/storage/media/images/destacados/aguardos/2152-1-esl-ES/aguardos_large.jpg (Now I have only "aguardos.jpg" in that directory), I deleted caches and I reload the page.

The page not show image, it show nothing. In source code the image data is missing:

 

<img src="/myr350" width="" height=""  border="0" alt="" title="" />

So, how can I recreate image variatons;

Thanks in advance
Adolfo Barragán

 

Eirik Alfstad Johansen

Wednesday 16 March 2005 12:31:41 am

Hi Adolfo,

I too thought that unexisting image variations automatically created themselves. Have you tried turning on debugging to see what it says when you load the page with the missing image?

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Kristian Hole

Wednesday 16 March 2005 3:05:50 am

Hi

The empty image tag usually means your webserver does not have writeaccess to the correct directory.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Adolfo Barragán

Wednesday 16 March 2005 3:19:44 am

I turn on Debug and I can see that original image an directory not exists (the version is 2, not 1).

I've created the directory with the original file and it working Ok.

Thanks to all
Adolfo Barragán

Jorge estévez

Thursday 17 November 2005 7:15:41 am

Is there a "human" way to recreate images variations.

Please give me some hints to recreate all images , I have changed the sizes of variations and I would like to have all the images done again..

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

zurgutt -

Thursday 17 November 2005 3:11:43 pm

Really need a solution for that too - over 30000 images in system and the jpg compression value was upped, need to remove old variations.

Deleting file does not help.

hmm.. (half a hour later)

Ok, i found it strange that even new images did not look better after quality change so i replaced the convert command to see whats going on and lo:

/usr/bin/convert | -quality 85 -geometry 100x100> -geometry 250x250 var/plain/storage/images/testing/proov4/425603-1-nor-NO/proov4.jpg JPEG:var/plain/storage/images/testing/proov4/425603-1-nor-NO/proov4_small.jpg

Downsizing to 100x100 as first step really does not help :) I had forgot to add
Filters[]
before
Filters[]=geometry/scaledownonly=250;250
in my image.ini override, so 100x100 default came in too from main ini.

WHAT THE HELL - all images instantly became of better quality? What made the variants update?

(a hour and some later)

Well at first it seemed ez recreates variants at every load but through some experimentation i found out that clicking CLEAR ALL CACHES in admin will force ez to invalidate old ones and recreate each variant that is encountered in pageload, although the old FILES are NOT removed by cache clean. Even more strangery, invoking any clean cache options (except Clear All) separately from popup does NOT invalidate old images, only the clear all option does.

What the hell is going on here??

At least one thing is good tho - just a click to "clear all caches" will essentially update all image variants on site.

Certified eZ developer looking for projects.
zurgutt at gg.ee

eZ debug

Timing: Jan 18 2025 19:19:40
Script start
Timing: Jan 18 2025 19:19:40
Module start 'content'
Timing: Jan 18 2025 19:19:41
Module end 'content'
Timing: Jan 18 2025 19:19:41
Script end

Main resources:

Total runtime1.3794 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.8438180.8125
Module start 'content' 0.00601.2464 768.6563696.2344
Module end 'content' 1.25240.1269 1,464.8906341.0547
Script end 1.3793  1,805.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3068210.0002
Check MTime0.00150.1105210.0001
Mysql Total
Database connection0.00050.038510.0005
Mysqli_queries1.290293.53102090.0062
Looping result0.00210.14922070.0000
Template Total1.349697.820.6748
Template load0.00200.144320.0010
Template processing1.347697.695820.6738
Template load and register function0.00030.019610.0003
states
state_id_array0.00110.082810.0011
state_identifier_array0.00120.088820.0006
Override
Cache load0.00170.1267450.0000
Sytem overhead
Fetch class attribute can translate value0.00130.094360.0002
Fetch class attribute name0.00150.106690.0002
XML
Image XML parsing0.00240.174760.0004
class_abstraction
Instantiating content class attribute0.00000.001390.0000
General
dbfile0.00380.2766400.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs