Overwrite images with original extensions
Posted: 2019-07-16T03:51:42-07:00
Hi, I have the following script that applies a color profile to any type of image, and then resave's as a jpg using original file name (overwriting the file):
Is there a way I can convert to the original file extension, instead of .jpg.
So if original file was a tif, it overwrites as a tif.
Windows 7
Code: Select all
convert *.* -profile c:\LUTS\sRGB-IEC61966-2.1.icc -set filename:base "%[basename]" "%[filename:base].jpg"
So if original file was a tif, it overwrites as a tif.
Windows 7