13
rated 0 times
[
13]
[
0]
/ answers: 1 / hits: 9811
/ 2 Years ago, mon, september 5, 2022, 12:56:28
I have 3 files in a directory:
aaa.jpg
bbb.jpg
ccc.jpg
I can scale down an image using ImagkMagick convert:
convert aaa.jpg -resize 1200x900 aaa-small.jpg
I want to do all the images in the directory, something like:
convert *.jpg -resize 1200x900 *-small.jpg
but this results in files named like so:
*-small-0.jpg
*-small-1.jpg
*-small-2.jpg
What I want is:
aaa-small.jpg
bbb-small.jpg
ccc-small.jpg
How do I do this?
More From » command-line