Bug 757356

Summary: png conversion is wrong
Product: [Fedora] Fedora Reporter: Need Real Name <mal>
Component: ImageMagickAssignee: Pavel Alexeev <pahan>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: nmurray, pahan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-11 15:57:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
q.png
none
a.jpg
none
b.jpeg none

Description Need Real Name 2011-11-26 17:07:50 UTC
when converting 
convert -verbose  /tmp/a.png /tmp/a.jpg
/tmp/a.png PNG 567x794 567x794+0+0 8-bit DirectClass 224KB 0.000u 0:00.009
/tmp/a.png=>/tmp/a.jpg PNG 567x794 567x794+0+0 8-bit GrayscaleMatte DirectClass 205KB 0.020u 0:00.019

the resulting a.jpg is negative

Comment 1 Need Real Name 2011-11-26 17:10:32 UTC
Created attachment 536813 [details]
q.png

rpm -qf `which convert`
ImageMagick-6.6.5.10-20.fc15.x86_64

Same thing with 
pngtopnm /tmp/a.png  |pnmtojpeg >/tmp/b.jpeg

rpm -qf `which pngtopnm`
netpbm-progs-10.56.04-1.fc15.x86_64

Comment 2 Need Real Name 2011-11-26 17:11:01 UTC
Created attachment 536814 [details]
a.jpg

Comment 3 Need Real Name 2011-11-26 17:12:00 UTC
Created attachment 536815 [details]
b.jpeg

pngtopnm /tmp/a.png  |pnmtojpeg >/tmp/b.jpeg

rpm -qf `which pngtopnm`
netpbm-progs-10.56.04-1.fc15.x86_64

Comment 4 Need Real Name 2011-11-26 17:13:43 UTC
Interestingly, firefox shows a.png correctly,
but document viewer does not

Comment 5 Need Real Name 2011-11-27 08:23:32 UTC
Same thing with 
rpm -qf `which convert`
ImageMagick-6.7.1.9-1.fc15.x86_64

Comment 6 Pavel Alexeev 2011-12-11 15:57:29 UTC
Thank you for your bugreport and willing make free software better!

Reported upstream: http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=19984

We close bug now, as it related to upstream developing. But we continue track changes and whatever it will be fixed ve consider make update in Fedora.