|FROM ||John Emmas
|SUBJECT ||Re: [Hangout - NYLXS] [png-mng-implement] Do PNG files come in
|On 13/12/2020 17:54, J Decker wrote:
> I've built libpng 32 and 64 bit for a long time with no modifications
> and no issues....
It turned out to be an error on my part... I'd forgotten that when
libraries use functions like _fopen() / _fdopen() etc you can't just use
them "as is" (not in MSVC anyway). First, you need to set a translation
variable called '_fmode' (which determines whether to open files as text
files or binary files). It's one of those annoying "Windows things" that
I'd totally forgotten about - so what was happening was that image files
would sometimes get opened in text mode, which then made them
unreadable. I've now set things up for binary mode and that's fixed it.!
png-mng-implement mailing list
Hangout mailing list