POV-Ray : Newsgroups : povray.general : Povray writes wrong PNG image size info to partially rendered images : Povray writes wrong PNG image size info to partially rendered images Server Time
5 Nov 2024 13:23:17 EST (-0500)
  Povray writes wrong PNG image size info to partially rendered images  
From: George Pantazopoulos
Date: 1 Apr 2003 00:05:45
Message: <3e891e29@news.povray.org>
This bug is related to, and probably the cause of, Christoph Hormann's
observed bug on 21 Jan 2003:
http://news.povray.org/povray.bugreports/29976/

Using povray 3.5 (precompiled binary) (though I suspect this bug is in all
flavors of 3.5)

When using the Partial Output Options +sc +ec +sr +er povray incorrectly
writes the full image size info to the PNG file it generates.

For example, if we did a render with "povray +w1024 +h768 +sc0 +ec255 +sr0
+er255 +fn +otile0.png cornell.pov",
the resulting tile0.png incorrectly reports a width and height of 1024 and
768, respectively. In this case it should be 256 for both cases.

This has the effect of confusing several image readers I've tried, with some
being unable to load the image at all. I came across this bug and confirmed
it while writing libpng code for a program of mine (even libpng refuses to
load the image).

The images CAN be viewed with ACDSee, which reports a corrupt data stream.

Thanks,
George Pantazopoulos


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.