Strange Color Changing

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
micahasmith
Posts: 5
Joined: 2013-08-19T07:34:06-07:00
Authentication code: 6789

Strange Color Changing

Post by micahasmith »

I'm on windows 7 using ImageMagick 6.8.6-2 2013-06-23 Q16.

When i run the following command it seems to invert the color scheme.

The image URL is http://printmee.blob.core.windows.net/a ... 423c-1.jpg

convert -size '7000x3500!' canvas:transparent \( 25059-45205-d4e8423c-1.jpg -resize '3500x3500!' \) -gravity northwest -geometry +0+0 -composite \( 25059-45205-d4e8423c-1.jpg -resize '3500x3500!' \) -gravity northwest -geometry +3500+0 -composite -units PixelsPerInch -density 200 140108-16294254395e5817-d.png

Ever seen anything like this?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Strange Color Changing

Post by dlemstra »

Are you aware that you have a CMYK jpeg and not an sRGB jpeg?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
micahasmith
Posts: 5
Joined: 2013-08-19T07:34:06-07:00
Authentication code: 6789

Re: Strange Color Changing

Post by micahasmith »

I am now! ;)

I'm surprised that would have that effect though. Weird.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Strange Color Changing

Post by snibgo »

Sometimes, IM will automatically convert from CMYK to sRGB. But this is quite rare, and we usually need to tell it, eg with "-colorspace sRGB":

Code: Select all

convert -size '7000x3500!' canvas:transparent \( 25059-45205-d4e8423c-1.jpg -colorspace sRGB -resize '3500x3500!' \) ...
snibgo's IM pages: im.snibgo.com
Post Reply