RE: can't load pixbufs with GTK+ 2.14 - win32

> -----Oorspronkelijk bericht-----
> Van: tlillqvist gmail com [mailto:tlillqvist gmail com] Namens Tor Lillqvist
> I can reproduce the problem with some JPEG files and not with others.
> I tested using the pixbuf-read program in gtk+'s tests folder. Based
> on initial testing it seems, incredibly enough, that if the size of
> the JPEG file is larger that around 60 KB, then loading fails. Could
> some 16-bit limit be haunting us somewhere inside GDI+? What actually
> fails is a call to GdipBitmapGetPixel() in io-gdip-utils.c.
Not sure. I have some larger jpeg files and some of them load just fine.
The files from digital photo cameras seem to work. These files are
typically 600-800 kB and around 2300x1500 pixels.
Moreover, I have also files of 45 kB size and they don't work. If you
want I can send you samples of both.

> I have no idea how to fix this... Unless somebody who knows more about
> undocumented gotchas in GDI+ comes up with something, I guess I will
> have to revert having the GDI+-based loaders as the default, and go
> back to using the "normal" libjpeg and libtiff -using pixbuf loaders.
> (For PNG, the libpng-based loader is still used anyway, as you can't
> get the PNG tags through the GDI+ API, and the gdk-pixbuf API needs to
> get the tags.)
It would indeed be nice to get rid of the unnecesary dependencies on 
libjpeg and libtiff. As I am not really familiar with GDI+, I hope that
someone else knows how to fix this.

> --tml


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