How can I delete an image from disk?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
hbazyan

How can I delete an image from disk?

Post by hbazyan »

hello;

I am trying to delete large size images from the disk that I am creating outside of imagemagick. I am just using ImageMagick through the Command Prompt (DOS) to shrink the images.
The thing is that now i have two copies of each image a small one and the other large size one, which i want to get rid off. I am trying to use the -delete or +delete but it is not working I keep getting an error: missing an image filename.

Does anyone know a solution for that? or a command line i can use to delete large images?

Thanks;

Huda
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Post by el_supremo »

Try using the mogrify command instead of convert. Mogrify modifies the input image, so if you resize it, this will implicitly delete the original.

Pete
Post Reply