Closed (fixed)
Project:
ImageCache
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2007 at 20:30 UTC
Updated:
5 Jan 2008 at 10:11 UTC
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
Comment #1
dopry commentedgetimagesize is a great function if you have a path.