convert outputs multiple images

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?".
Posts: 1
Joined: 2020-03-24T07:10:59-07:00
Authentication code: 1152

convert outputs multiple images

Post by anxietyandhtml »

When I use the command

Code: Select all

convert -depth 8 -size 3x1+0 -scale 3x3+0 rgb:image.jpg out.png
, the output is 10 files named out-0.png, out-2.png, and so on, upt to out-9.png. Is this expected behavior, or am I doing something wrong?

User avatar
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert outputs multiple images

Post by fmw42 »

Why have your prefaced the reading of your JPG input with rgb:, which indicates a raw file. JPG is not a raw file. -size and -scale do not have +offsets. Why have you added +0 to those?

If you are simply reading a JPG, then

Code: Select all

convert image.jpg -scale 3x3 out.png
But that will make a 3x3 pixel result. Is that really what you want?

What is it that you are trying to do?