Re: Do PNG files come in 64-bit format ??

John Emmas <john-DXT9u3ndKiQNQS9/lJU/[email protected]> Mon, 14 Dec 2020 15:04:08 +0000
Newsgroups gmane.comp.graphics.png.devel
Message-ID <[email protected]>
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.!

John