Convert creates duplicates

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
betadraconis
Posts: 1
Joined: 2017-05-05T06:26:44-07:00
Authentication code: 1151

Convert creates duplicates

Post by betadraconis »

Here's the command I'm using:

convert -density 144 -units PixelsPerInch *.jpg

I need my images to be at least 144 DPI and the script does the job, but it always creates a duplicate image rather than just tweaking the image.

I tried using this in the command line:

convert -density "144>" -units PixelsPerInch *.jpg

It still made duplicates! I just want imagemagick's "convert" to adjust the DPI without creating extra images. Is this possible?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert creates duplicates

Post by snibgo »

Your syntax is wrong. For "convert", you should: name the input file(s), give the processing, and name the output file(s).

The syntax you give is roughly correct for "mogrify", not "convert".
snibgo's IM pages: im.snibgo.com
Post Reply