Has the -Profile function changed from older versions?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
holden
Posts: 79
Joined: 2013-02-07T08:22:57-07:00
Authentication code: 6789

Has the -Profile function changed from older versions?

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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.
holden
Posts: 79
Joined: 2013-02-07T08:22:57-07:00
Authentication code: 6789

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

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
holden
Posts: 79
Joined: 2013-02-07T08:22:57-07:00
Authentication code: 6789

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

Post 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 :)
Post Reply