Hello.

I'm trying to theme image cache images in such a way that requires the height and width of the image in the css. However, in theme_imagecache() there is no height and width info available the first time the image is called. (It is available after the first time)

This is creating big problems for me, because the sites caches the image the first time it is called. Is there a work around here? For example, is there some code that I can call -- to first create the new file -- before I call the theme, so this way when I do call the theme the height and width will be there?

Thank You,
Sam

Comments

dopry’s picture

Status: Active » Closed (fixed)

getimagesize is a great function if you have a path.