Member
Member
Citron   28-07-2009, 12:22
#1

Hi,
The title might not really be self explanatory, so here is my problem : when I want to display an image in a forum, blog post or anything else, I use the getCustomSizedImageMaxSpace() function.
The problem is : if this function find a correct cache image, it returns a link to that file. But if you clear your cache, you completely break this image.

So, I'd like to know if there is an equivalent of getCustomSizedImageMaxSpace(), only it will always return a link generating the cache image ?

Administrator
Administrator
acrylian   28-07-2009, 14:09
#2

No, as "sized" images are always fetched from the cache. Only alternative is the full image link or setting the image details directly via url using i.php (see top of the file).

Member
Member
Citron   28-07-2009, 16:08
#3

Yop, thanks for the reply. I already used i.php, but I hoped maybe I didn't see a function that does what I want.

I have a question though : I opened i.php, but I'm not so good in php, and I'm not sure of something : If I use i.php to generate an image. Then I re-use i.php to generate the exact same image (same dimension, etc.)
What happens ? The image is re-created ? Or does i.php detect that it already exists, and does nothing ?

Member
Member
sbillard   28-07-2009, 17:51
#4

If the file already exists in the cache it will be used. Otherwise it will be generated.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.