<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
First of all I'd like to thank you for the "bfconvert" BioFormats tool. It makes my life so much easier.<br>
<br>
However, it seems that in version 5.x it produces corrupted png files (I have tried it on versions 5.0.6 and 5.1.2).<br>
<br>
The problem can be reproduced using the command below on your sample ome.tiff file.<br>
<br>
$ bfconvert multi-channel-4D-series.ome.tif S%s_C%c_Z%z_T%t.png<br>
<br>
If I try to open these png files using a simply Python script (attached). I get the error:<br>
<br>
$ python open_png.py 5.1.2/S0_C0_Z0_T0.png<br>
Traceback (most recent call last):<br>
File "open_png.py", line 3, in <module><br>
im = Image.open(sys.argv[1])<br>
File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 2013, in open<br>
raise IOError("cannot identify image file")<br>
IOError: cannot identify image file<br>
<br>
Whereas if I doe the same with one of the images converted using bfconvert version 4.4.2 everything works fine.<br>
<br>
Opening the files using an in-house tool that makes use of libpng gives some more descriptive feedback:<br>
<br>
libpng warning: acTL: CRC error<br>
<br>
Comparing the sizes of the files generated using version bfconvert 5.1.2 and 4.4.2 reveal that the former is smaller.<br>
<font size="2"><span style="font-size:10pt;"><br>
</span></font>$ ls -l 5.1.2/S0_C0_Z0_T0.png <br>
-rw-r--r-- 1 olssont olssont 2226 Jun 24 08:50 5.1.2/S0_C0_Z0_T0.png<br>
$ ls -l 4.4.2/S0_C0_Z0_T0.png <br>
-rw-r--r-- 1 olssont olssont 2238 Jun 24 08:30 4.4.2/S0_C0_Z0_T0.png<br>
<br>
I have attached the sample converted png files.<br>
<br>
Any ideas what is going on?<br>
<br>
Cheers,<br>
<br>
Tjelvar<br>
</div>
</body>
</html>