Found out that PNGs do not write correctly to file on windows, at least not on vista. Solution is to change file open flags to "wb+" in method write(), as follows:
def write(io_or_file=@@file_name)
return io_or_file.write(fetch) if io_or_file.respond_to?(:write)
open(io_or_file, "wb+") { |io| io.write(fetch) }
end
thanks to the clear explanation of why the PNG header is like it is on wikipedia.
Found out that PNGs do not write correctly to file on windows, at least not on vista. Solution is to change file open flags to "wb+" in method write(), as follows:
thanks to the clear explanation of why the PNG header is like it is on wikipedia.
Cheers, Victor