Recently I heard of the possibility to get different versions of an uploaded image on the fly via php's header('Content-Type: image/jpeg');
.
So instead of:
<img src="files/myimage-thumb.jpg">
<img src="files/myimage-midsized.jpg">
<img src="files/myimage-original.jpg">
you could do:
<img src="script/getimage.php?v=thumb">
<img src="script/getimage.php?v=midsized">
<img src="script/getimage.php?v=original">
then the script runs and via header('Content-Type: image/jpeg'); …
it returns an image which was generated on the server (client?) .. temporarily..
IS THIS A GOOD IDEA?
I'm a bit sceptic, because I could imagine that it takes lot more time and performance!?