Rename file using part of existing name

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
Kris.Mitchell

Rename file using part of existing name

Post by Kris.Mitchell »

First - Thanks for the amazing tool. Quickly and easily solved an IT problem for no cost and for that I am greatful!

Second,
I have a file name acbde.#.ai.ps

where # can be any number, and ai and .ps are standard for each file.

When I run the script

Code: Select all

FOR %a in (*.ai.ps) DO convert -density 288 %a +matte -resize 50% %a.jpg
I get *.ai.ps.jpg

Is there a way to get *.jpg?

I think I am missing something with the dos command + some setting in IM.

Thanks for the help!

-Kris
Post Reply