ImagickDemos icon indicating copy to clipboard operation
ImagickDemos copied to clipboard

ImagickDraw::setTextUnderColor : colors are slightly different

Open dongjin84229 opened this issue 4 years ago • 4 comments

Reported from ImagickDraw::setTextUnderColor

The color of the text under color parameter and the color of the actual created picture are slightly different.

image image

dongjin84229 avatar Feb 09 '21 16:02 dongjin84229

Well, that's weird.

Setting rgb(255, 0, 128) is also wrong. The color contains some green....

I don't think this is going to be my fault, it will be some weirdness in ImageMagick.

Can you check what the behaviour is calling the similar function from the command line version of ImageMagick as per the examples given at: https://legacy.imagemagick.org/Usage/text/#undercolor

If that has the same behaviour, that's the best way of demonstrating an issue like this to them.

Danack avatar Feb 10 '21 02:02 Danack

oh, and the other thing that should be tried is explicitly setting a colorspace.....something could be defaulting to CMYK, and then being converted oddly.

Danack avatar Feb 10 '21 02:02 Danack

Yes this is not your fault. As I used this function, there was a difference in color. Is there any way to solve this?

dongjin84229 avatar Feb 10 '21 12:02 dongjin84229

Is there any way to solve this?

I don't know and someone will need to investigate.

Can you check what the behaviour is calling the similar function from the command line version of ImageMagick as per the examples given at: https://legacy.imagemagick.org/Usage/text/#undercolor

Danack avatar Feb 10 '21 14:02 Danack