Forum Moderators: coopster

Message Too Old, No Replies

Resize Images Without Keeping Original Image

         

tennis_fan

3:47 am on Aug 22, 2006 (gmt 0)

10+ Year Member



What I would like to do is resize an image and create a new file with that size then delete the original. I have found where it's possible but the quality is crap. I have another script where the quality is great but the original image is still on the server.

How can I create a new, good quality image, without having the original stick around sucking up space?

the_nerd

11:33 am on Aug 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have a look here:
[ch2.php.net...]

zulu_dude

12:45 pm on Aug 22, 2006 (gmt 0)

10+ Year Member Top Contributors Of The Month



Could you not just use unlink() to delete the image file that you don't want (after resizing of course)?

henry0

1:03 pm on Aug 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's not the best scenario

You should be concerned with glithches; imagine a situation where your img is del w/out backup:)

Try moving it to a tmp file and then when all systems go del its content in batch mode.