I tried this approach of serving up resized pics on-the-fly before (using 
PHP).  It seemed such a good idea because I could serve up pics of any 
size.  It worked,  but there was a performance hit and the server was not 
happy.  I then introduced a way that the pics would be resized the first 
time requested and thereafter they would be 'cached' for subsequent 
requests.  This also worked but again led to reliability problems which 
periodically required my attention.  I also ended up with huge numbers of 
pics in my cache dir and the system was really slow.

I eventually decided that there were 3 standard sizes that I could use and 
now I create those sizes on uploading my pics.  It is a much better 
solution for me.  It is much faster to serve the pics and with almost zero 
problems and I am very happy with it.  I also use the 'upload_separate' 
parameter to keep my dir sizes small.

Could you also limit yourself to a few standard sizes?  If so,  I suggest 
you take my route.


On Friday, June 29, 2012 1:16:55 AM UTC+1, ctrlSoft wrote:
>
> hi i would like to implement in my app a feature , create thumbs runtime 
> like in picasa or imgur
> original image 
> http://i.imgur.com/E9az6.jpg 
> thumb croped
> http://i.imgur.com/E9az6*b*.jpg <http://i.imgur.com/E9az6.jpg> 
>
> or in picasa
> original image:
>
> https://lh3.googleusercontent.com/-iNUvq0K9l24/Tyr6IfaT76I/AAAAAAAAArI/C_9RUy_o38A/s634/SecureData-logo-design.gif
>  
> thumb croped
>
> https://lh3.googleusercontent.com/-iNUvq0K9l24/Tyr6IfaT76I/AAAAAAAAArI/C_9RUy_o38A/
> *s256-c*/SecureData-logo-design.gif<https://lh3.googleusercontent.com/-iNUvq0K9l24/Tyr6IfaT76I/AAAAAAAAArI/C_9RUy_o38A/s256-c/SecureData-logo-design.gif>
>  
>
> https://lh3.googleusercontent.com/-iNUvq0K9l24/Tyr6IfaT76I/AAAAAAAAArI/C_9RUy_o38A/
> *s128-c*/SecureData-logo-design.gif<https://lh3.googleusercontent.com/-iNUvq0K9l24/Tyr6IfaT76I/AAAAAAAAArI/C_9RUy_o38A/s256-c/SecureData-logo-design.gif>
>  
> ....
>
> i want to save just original image and retrieve when i need different size 
> of thumbnail, what is the best way?  any sugestions?
>

Reply via email to