Page 1 of 1

Has the -Profile function changed from older versions?

Posted: 2017-08-03T11:57:32-07:00
by holden
I feel as though when doing this about 2 years ago my profiles were being applied with this code, now they are not. Source image has no profile according to identify, neither does the converted one.

Code: Select all

convert -size 3000x2400 xc: ( image.jpg -rotate 90 -resize x2100 -gravity center -crop 2700x2100+0+0 +repage -profile myprofile.icc ) -composite image.jpg
I'm not getting any errors, a new image is being produced, just with no profile. Current IM is 6.8.9-6 Q8 x64

Re: Has the -Profile function changed from older versions?

Posted: 2017-08-03T12:01:56-07:00
by fmw42
-profile my profile.icc should be moved outside the parenthesis and placed just before the output image, if you want the profile to be added to the output.

Please always provide you IM version and platform when asking questions on this forum.

Re: Has the -Profile function changed from older versions?

Posted: 2017-08-03T12:04:35-07:00
by holden
Thanks for the quick reply, I'll give it a shot. The version is in the post above, Windows OS

Wow the version I am using looks to be the ancient one, my bad- putting the -profile at the end is not working either. Weird thing is that I know this was working properly earlier because I had matched prints from IM and different software using the same profile.

Re: Has the -Profile function changed from older versions?

Posted: 2017-08-03T12:21:29-07:00
by fmw42
Sorry, I missed your IM version.

Is your profile in the same place as the directory from which you issued your convert command? If not, then put the full path to your profile. Are you sure you have that profile existing on your system?

Try this command:

Code: Select all

convert -size 3000x2400 xc: ( image.jpg -rotate 90 -resize x2100 -gravity center -crop 2700x2100+0+0 +repage ) -compose over -composite -profile myprofile.icc image.jpg

Re: Has the -Profile function changed from older versions?

Posted: 2017-08-03T12:25:27-07:00
by holden
Ah Fred, I should not do coding at the end of the work day because I get sloppy- your initial advice worked, which is also the second post you did. I appreciate your help and patience :)