Page 1 of 1

Re: Using Input file name as part of the Output file name

Posted: 2007-03-04T19:41:32-07:00
by anthony
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.