mogrify and convert
Posted: 2017-08-03T01:24:51-07:00
Dear all,
I am about to convert a number of files which are all in C:\temp\bildbearbeitung
“test1”, “test2” …..
C:
cd \temp\bildbearbeitung
C:\Programme\ImageMagick-7.0.6-Q16\magick mogrify -path C:\temp\bildgroesse -resize 16% -compress LZW *.tif
I resize, compress and save them in another directory C:\temp\bildgroesse. It works well thanks to fmw42 and snibgo.
Now I want to change the name of the output file from “test1” to “test 1_org”, “test2” to “test2_org” and so on.
I tried in vain
C:
cd \temp\bildbearbeitung
C:\Programme\ImageMagick-7.0.6-Q16\magick mogrify -path C:\temp\bildgroesse -resize 16% -compress LZW -set filename:f %t_org %[filename:f].tif *.tif
I got the message: mogrify: unable to open image '%[filename:f].tif': No such file or directory @ error/blob.c/OpenBlob/3109.
Is it correct that mogify can not set filenames?
So I tried the convert command
cd \temp\bildbearbeitung
C:\Programme\ImageMagick-7.0.6-Q16\magick mogrify -path C:\temp\bildgroesse -resize 16% -compress LZW *.tif
cd \temp\bildgroesse
C:\Programme\ImageMagick-7.0.6-Q16\magick convert *.tif -compress LZW -set filename:f %t_org %[filename:f].tif
it works but only for the first file and blows it up (from 0.8 MB to 8 MB). By the way there is the same result for "filename:t %t_org %[filename:t]" and "filename:f %f_org %[filename:f]",
Am I right that mogrify can not use “set file name”? Why is the command line with the “convert -set filename” only working for the first file?
How to delete the old files “test1”, “test2” ….?
Thanks for your help
Uli
I am about to convert a number of files which are all in C:\temp\bildbearbeitung
“test1”, “test2” …..
C:
cd \temp\bildbearbeitung
C:\Programme\ImageMagick-7.0.6-Q16\magick mogrify -path C:\temp\bildgroesse -resize 16% -compress LZW *.tif
I resize, compress and save them in another directory C:\temp\bildgroesse. It works well thanks to fmw42 and snibgo.
Now I want to change the name of the output file from “test1” to “test 1_org”, “test2” to “test2_org” and so on.
I tried in vain
C:
cd \temp\bildbearbeitung
C:\Programme\ImageMagick-7.0.6-Q16\magick mogrify -path C:\temp\bildgroesse -resize 16% -compress LZW -set filename:f %t_org %[filename:f].tif *.tif
I got the message: mogrify: unable to open image '%[filename:f].tif': No such file or directory @ error/blob.c/OpenBlob/3109.
Is it correct that mogify can not set filenames?
So I tried the convert command
cd \temp\bildbearbeitung
C:\Programme\ImageMagick-7.0.6-Q16\magick mogrify -path C:\temp\bildgroesse -resize 16% -compress LZW *.tif
cd \temp\bildgroesse
C:\Programme\ImageMagick-7.0.6-Q16\magick convert *.tif -compress LZW -set filename:f %t_org %[filename:f].tif
it works but only for the first file and blows it up (from 0.8 MB to 8 MB). By the way there is the same result for "filename:t %t_org %[filename:t]" and "filename:f %f_org %[filename:f]",
Am I right that mogrify can not use “set file name”? Why is the command line with the “convert -set filename” only working for the first file?
How to delete the old files “test1”, “test2” ….?
Thanks for your help
Uli