discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSImage and PNG


From: Alexander Malmberg
Subject: Re: NSImage and PNG
Date: Sat, 29 May 2004 23:43:04 +0200

Andreas Höschler wrote:
> Thanks for your response. I was using gui 0.9.0. After installing gui
> 0.9.2 I indeed was able to load a PNG. However, I can no longer load
> TIFFs with this version. I get no NSImageRep in the NSImage. Can you
> confirm that? I could provide you with sample code and data. I
> encounter this on Sun Solaris 9 (haven't checked otehr OSes yet).

Not sure if it's the same problem, but Riccardo Mottola had a similar
problem on (I think) solaris. It turned out that gcc was miscompiling
NSBitmapImageRep.m or NSBitmapImageRep+JPEG.m and caused the jpeg check
to return true for all images (and the load would later fail since the
tiff was not a jpeg). I'll see if I can get some more details on this.
As a workaround, you could try compiling those files without
optimizations (eg. by hacking config.make to remove -O2, touching those
files, and doing a 'make install' in gui/Source).

- Alexander Malmberg




reply via email to

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