Page 1 of 1
ImageMagick Q
Posted: Tue Apr 18, 2006 7:02 pm
by jonwondering
Is there any way to create a thumbnail on the fly without storing it as a file? What I can't figure out is not how to create a thumbnail with IM, but how to create it and display to the user without storing that new image as a file. Is it even possible with IM?
Thanks.
Posted: Tue Apr 18, 2006 7:13 pm
by hawleyjr
Yep, check out our Code Snippets
Posted: Tue Apr 18, 2006 7:20 pm
by jonwondering
Posted: Wed Apr 19, 2006 3:33 am
by onion2k
It's possible alright .. but it's a really bad idea. Working with images is very intensive .. especially resampling them .. there's no good reason not to cache results to save CPU time.
Posted: Wed Apr 19, 2006 9:27 am
by jonwondering
so will it take tons of cpu usage if it'll convert aprox 10 images width 760px, into thumbnails width 120px?
p.s.: i couldn't decide for a long time, what to save: cpu or memory... there's going to be lots and lots of images uploaded on the server.
Posted: Wed Apr 19, 2006 9:31 am
by feyd
Creating images on the fly without saving them greatly reduces the number of users you can have on the server at any given time and it will take longer to load any page that contains these images.
Posted: Wed Apr 19, 2006 1:25 pm
by jonwondering
alright, that makes sense. i guess i'd better go with memory usage instead of cpu. thanks for all your help hawleyjr, onion2k, and feyd.