eZ Community » Forums » Developer » Automatic custom image size generation.
expandshrink

Automatic custom image size generation.

Automatic custom image size generation.

Tuesday 13 May 2014 9:16:19 pm - 4 replies

I have a site with a lot of small images and they are taking a long time to load initially, I think do to the conversion process. I am using a custom image size inside on image.ini. I was wondering if there is a way to automatically generate these images into the storage folder? Also are these images ever cleared out from the var folder?

Any other suggestions for helping pages with lots of images load fast are welcome too. I am using the jquery plugin lazyload but that still seems to wait until all images are converted before it shows any of them. 

Modified on Tuesday 13 May 2014 9:21:16 pm by Luke Konecki

Wednesday 14 May 2014 1:28:40 pm

Are you using ViewCache or TemplateCache ?

they do what you want quite easy and the process of creating image Aliases should not happen anymore on each page call.

the will be really removed when you use "--purge" when clearing the cache.

Modified on Wednesday 14 May 2014 1:29:12 pm by Amir Koklan

Wednesday 14 May 2014 1:58:38 pm

I had both of those turned on in my main settings file but it looks like I for some reason had them turned off at my siteaccess level. I'll turn those back on and try to see if that help performance. Thanks for the reminder. 

Wednesday 14 May 2014 2:02:57 pm

happy to help.

Overriding in different access level is always hard in ezpublish happy.gif Emoticon

Sunday 18 May 2014 4:20:20 am

Are the images content or design?

If they are design, you may want to consider making them sprites and applying them with CSS.

If they are content, you may be able to improve performance by adjusting the cache headers, compressing the images, and checking the type of image used (.gif/.jpg/.png) to see which works best.

Reducing the number of images per page may be another option.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from