I don't want to totally repost the code from this node, but there's probably a large hunk you can lift from here. If you want to generate thumbnails, the more (to lift) the better. Of course, you'll have to strip away all the cruft of stripping attachments off of emails.
$,=42;for(34,0,-3,9,-11,11,-17,7,-5){$*.=pack'c'=>$,+=$_}for(reverse s +plit//=>$* ){$%++?$ %%2?push@C,$_,$":push@c,$_,$":(push@C,$_,$")&&push@c,$"}$C[$# +C]=$/;($#C >$#c)?($ c=\@C)&&($ C=\@c):($ c=\@c)&&($C=\@C);$%=$|;for(@$c){print$_^ +$$C[$%++]}
In reply to Re: Image uploading and server-side resizing
by chargrill
in thread Image uploading and server-side resizing
by ptum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |