How to delete an image?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hbazyan

How to delete an image?

Post by hbazyan »

Hello;

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?

Thanks;

HB
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

I do not know how -delete works but you can do it with php:

Code: Select all

unlink("image.jpg")
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Post 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: http://magick.imagemagick.org/script/co ... php#delete

Pete
Post Reply