Page 1 of 1
possible bug PCD reader or writer (?)
Posted: 2017-03-25T11:03:50-07:00
by fmw42
IM 6.9.8-3 Q16 and IM 7.0.5.4 Q16 Mac OSX
When converting logo: to PCD and then PCD to PNG, the color of the result is showing gray where it should be white.
Re: possible bug PCD reader or writer (?)
Posted: 2017-03-25T11:38:28-07:00
by fmw42
I just noticed that identify -verbose logo.pcd says the colorspace is YCC. However doing
Code: Select all
convert logo.pcd -colorspace sRGB logo_pcd2.png
Still makes no difference.
Re: possible bug PCD reader or writer (?)
Posted: 2017-03-25T13:26:31-07:00
by GeeMack
Using IM 7.0.5-3 HDRI static on Windows 10 64, I ran the commands from the opening post, only instead of "convert" I used "magick" of course. The commands...
This is the result...
Re: possible bug PCD reader or writer (?)
Posted: 2017-03-25T13:47:00-07:00
by fmw42
Odd. That is quite different. But I note that when I did the convert/magick, they both looked the same as my example above. But when I did an IM display logo.pcd. It was also pinkish. I assumed that was due to the YCC colorspace issue.
Do you still get this same result from
Code: Select all
magick logo.pcd -colorspace sRGB logo_pcd.png
Re: possible bug PCD reader or writer (?)
Posted: 2017-03-25T14:05:15-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @
https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @
http://www.imagemagick.org/download/beta/ by sometime tomorrow.
Re: possible bug PCD reader or writer (?)
Posted: 2017-03-25T14:05:47-07:00
by GeeMack
fmw42 wrote: ↑2017-03-25T13:47:00-07:00Do you still get this same result from
Code: Select all
magick logo.pcd -colorspace sRGB logo_pcd.png
That produces a result nearly identical to the one I posted above.
Re: possible bug PCD reader or writer (?)
Posted: 2017-03-26T11:28:03-07:00
by fmw42
The result is white with IM 7.0.5.5 beta. So it seems to be fixed when doing
Code: Select all
im7beta magick logo: logo.png
im7beta magick logo.png logo.pcd
im7beta magick logo.pcd -colorspace sRGB logo_pcd_new.png
The output is 768 × 512 per PCD format and the input was 640x480, so there is a grayish pad outside the logo region to fill to 768 × 512.
Re: possible bug PCD reader or writer (?)
Posted: 2017-03-26T12:13:01-07:00
by fmw42
P.S. One can use -bordercolor to adjust the color of the padding.