I have just swapped to this module today from using the normal GD module. Since making the change and flushing my images in imagecache, my images are no longer getting the width/height set for anonymous page loads.

If logged in as an administrator, the width/height are set as they should.

If I swap back to GD and load the page anonymously, the width/height will come back. Back to Optimize and they disappear.

This is a large speed issue on big photo blogs, this site in particular has over 100 images on one page load.

Comments

jcisio’s picture

When you swapped from GD to Optimize the second time, did you flush images? It's strange, as this module has nothing to do with image width/height, they are set at the theming level. The only different between this module and the GD toolkit is that it is resource intensive to create image with Optimize (of course), especially for PNG files. If the derivated image does not exist yet, its dimensions are not known, hence your problem.

The number of images on a page is generally not a problem. When the derivated images are created, they are static image.

I'd recommend that you keep GD for a while, then switch to this module without flushing old imagecache presets. Then keep an eye on new created images with this module to see if there is an error.

jcisio’s picture

Status: Active » Postponed (maintainer needs more info)
mr.j’s picture

Status: Postponed (maintainer needs more info) » Active

I am seeing the same problem for every user, not just anonymous users.
We are using imagecache and it never adds the size of images while using this as the toolkit.

If I switch back to GD all works well.

jcisio’s picture

Priority: Normal » Minor

Sorry mr.j, but there is no news information in #3, so that I could just continue postpone this issue. What I said in #1 still stands. However, I'll keep this active so that I can take a look when I have time. Mark this as minor because most of the time, the derivative image exists and this problem does not happen.

mr.j’s picture

Status: Active » Closed (won't fix)

Looking at the code I think its actually an imagecache problem. The first time it tries to get the image dimensions for an image derivative it fails - and this is noted in the comments on imagecache_create_path. We only saw the problem after installing this module because we flushed all our derivatives.