Modulate not the same as Photoshop

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
Noogle

Modulate not the same as Photoshop

Post by Noogle »

Hi,

I've been trying to use Imagemagick's modulate to replicate Photoshop's Hue/Saturation layer. While just changing the hue seems to match almost perfectly (using e.g. +90 Hue in Photoshop as 100,100,150 for modulate), changing e.g the saturation on modulate to 100,150,150 does not produce the same result as +90 Hue, +50 Saturation in Photoshop. And Lightness doesn't seem to correspond either...
How would I go about finding the correct values that correspond to Photoshop's? I've been up all night trying to figure this one out, so many thanks to anyone who can shed any light :)
Noogle

Re: Modulate not the same as Photoshop

Post by Noogle »

Anybody? :(
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Modulate not the same as Photoshop

Post by anthony »

More than likely the -modulate is broken. I have not in the course of creating IM examples handled modulate formally, so have not bug fixed. However informally I agree with you in that modulate does not do what it should.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Noogle

Re: Modulate not the same as Photoshop

Post by Noogle »

Thanks for your reply :)

I do agree with you that something is wrong. If you do -modulate 100,0,100, which should desaturate the image, it seems to take the lightest point and make that white. I've been testing on a simple gradient, and both Photoshop and GIMP agree that it should create a gray gradient, not a white to gray one. I also set -colorspace HSL to make sure.

Is there a bug tracker anywhere? :)
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Modulate not the same as Photoshop

Post by anthony »

Yes it is called IM bug Forum :lol:
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Noogle

Re: Modulate not the same as Photoshop

Post by Noogle »

Oh, hehe, I was looking for a dedicated bug tracker :P
Anyway, I posted a report: viewtopic.php?f=3&t=8854 It should also help you see what I mean, as I added sample images :)
Post Reply