Page 1 of 1

How to delete an image?

Posted: 2006-12-13T14:06:36-07:00
by hbazyan

I am a newbie, and I am sure my question is an easy one. But the thing is I spent enough time on tryin gto figure out how ti delete an image from a folder.

My application allows the user to save off an image of his\her window (screendump) on the flya anf infinitley. I am using Image MAgick to shrink the images, so as to have smaller size, I want to be able to delete the dumped images from the folder after the user is done or the application is reset. And I just don't see how the -delete works.

Any suggestions?



Posted: 2006-12-13T15:05:35-07:00
by Bonzo
I do not know how -delete works but you can do it with php:

Code: Select all


Posted: 2006-12-13T15:16:07-07:00
by el_supremo
-delete is not for deleting files. It deletes an image or group of images from an image sequence such as you would get from (for example) an animated GIF.
See: ... php#delete