bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #34740] gnustep has problems with PNGs that have a sRGB colorspace


From: julian
Subject: [bug #34740] gnustep has problems with PNGs that have a sRGB colorspace
Date: Sun, 06 Nov 2011 21:25:26 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22

Follow-up Comment #5, bug #34740 (project gnustep):

i am using the art backend. actually i'd like to use the plain x backend but i
don't see any fonts when using it ... is this a known issue?

ok following your suggestions i added

 NSLog(@" bpp %i %i %i %i %i %i %i", bpp, (int)[theImg size].width,
(int)[theImg size].height, (int)[bitmap size].width, (int)[bitmap
size].height, (int)[bitmap bytesPerRow], (int)[bitmap bitsPerPixel]);

for the "broken" png this prints:

bpp 4 191 191 192 192 768 32

and in the good case

bpp 4 192 192 192 192 768 32

so we see that the problem is that:
1.) loading PNGs with NSImage results in images that are 1 pixel smaller in
both dimensions in some cases like BUG.png and BUG2.png (thats the real bug)
2.) generating a NSBitmapImageRep via initWithFocusedViewRect can have larger
dimensions than the passed rect (does the specification allow this? seems like
a bug to me too)

 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34740>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]