There are a number of ways but none are truely IM specific. Most involve generating the name externally in a shell script. Or mogrify the images into a different 'temporary' directory, then using other programs to rename and move the results back to the current directory with the desired name.
I myself created my own thumbnailing scripts to do the task.
Before that I used mogrify to save to a different file format (JPG for the origina limage, and GIF for the thumbnail) then used a renaming script ("mved", or "mv_perl" availabel on the WWW) to add the appropriate thumbnail naming conventions.
Sorry, there is no simple solution to this. But I suggest you pick a convention that works for you and stick to it. You can then slowly create script to work to that convention.
You can also find such scripts such as PhotoMagick or other photo album applications.
Using Input file name as part of the Output file name
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Using Input file name as part of the Output file name
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/