possible bug PCD reader or writer (?)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug PCD reader or writer (?)

Post 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.

Code: Select all

convert logo: logo.png
Image

Code: Select all

convert logo: logo.pcd

Code: Select all

convert logo.pcd logo_pcd.png
Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug PCD reader or writer (?)

Post 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.
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: possible bug PCD reader or writer (?)

Post 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...

Code: Select all

magick logo: logo.pcd

Code: Select all

magick logo.pcd logo_pcd.png
This is the result...

Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug PCD reader or writer (?)

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug PCD reader or writer (?)

Post 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.
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: possible bug PCD reader or writer (?)

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

Re: possible bug PCD reader or writer (?)

Post 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
Image

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

Re: possible bug PCD reader or writer (?)

Post by fmw42 »

P.S. One can use -bordercolor to adjust the color of the padding.
Post Reply