using following code , .icm able convert single jpg file srgb color space:
convert c:\users\%username%\desktop\color_test\*.jpg \ -profile "srgb_color_space_profile.icm" *.jpg however, when multiple jpg files in color_test folder began copying on over seemingly endless loop. have tried following no luck:
for %%f in (c:\users\%username%\desktop\color_test\*.jpg) ( convert %%f -profile "srgb_color_space_profile.icm" *.jpg ) wondering if has other ideas or can identify why files copying on endless times when there more 1 jpg in color_test folder.
thanks!
you cannot put *.jpg in convert command each item: call convert on each .jpg file , store output in basename of .jpg file, not in same folder.
for %%f in (c:\users\%username%\desktop\color_test\*.jpg) ( convert %%f -profile "srgb_color_space_profile.icm" %%~nf.jpg )
Comments
Post a Comment