08-26-2005 12:01 PM
08-27-2005 07:12 PM
08-28-2005 01:39 PM
08-28-2005 03:01 PM
08-28-2005 03:09 PM
08-29-2005 01:43 AM
08-29-2005 02:54 AM
Sorry for not attaching any data... My mistake 🙂
@chilly charly wrote:Could not do much work on your vi since no data is attached. However I did some trials with a few pictures....With 8 bit images, the image array must be equal to W x H, and you must provide a color table with 256 colors. Moreover, images must have an even width (don't ask why).
08-29-2005 11:15 AM - edited 08-29-2005 11:15 AM
If you make the following simple change to "Check Data Size.vi", it will write PNG files with odd width just fine. (Warning: Do this only for testing, without saving the modified VI. You should NEVER permanently modify system VIs!).

I don't know why LabVIEW insists on even width for palletted PNG, but maybe there is a hidden reason somewhere (Maybe there is a very good reason!) Could it be needed for use in the JPEG version? I have quickly glaced throught the specifications, but did not find anything obvious.
And yes, CC, I always ask "why?". 🙂 Why? Why?? Why???
Hopefully, an expert from NI will chime in and enlighten us. Did you report this to NI?
Message Edited by altenbach on 08-29-2005 09:16 AM
08-29-2005 12:29 PM