image cache

Hi,

On Sun, Sep 5, 2010 at 4:58 AM, <christoph@ideenbuch.de> wrote:

I don’t use browser-scaling for the images, i request the images
from the server in exactly the right size, which is generated with
gd2, so they always look good. The fun thing is that by now the whole
javascript is coming together so that its pretty applicable to any
webpage. You just tag the image with a percent value and thats the
width its gonna get, relative to its parent div. I also implemented a
my little version of a equal height function done with
javascript.

I do not understand the SPIP image caching btw so i dont use the
SPIP thumbnails but i would like to. Is there anyone i can talk to
about that?

The cache of the calculated images is managed within the function _image_valeurs_trans()
http://trac.rezo.net/trac/spip/browser/branches/spip-2.1/ecrire/inc/filtres_images_lib_mini.php#L95
It creates or returns a file that corresponds to some parameters.

It is used the code of some graphic transformation filters :
http://zone.spip.org/trac/spip-zone/browser/core/branches/spip-2.1/plugins/filtres_images/filtres/images_transforme.php

If you don’t understand this code, you should also ask directly to the mailing list spip-zone@rezo.net.

Enjoy !

.Gilles