<div dir="ltr">Hi Tjelvar,<div><br></div><div><div>> Does anyone know if there is a "Java free" Python library for working</div><div>> with OME Tiff files?</div></div><div><br></div><div>OME-TIFF is just XML inside a TIFF file [1]. So you could use Pillow [2] and ElementTree [3].</div><div><br></div><div>Longer term, an OME-XML library for Python would probably be handy. Fortunately, the current approach is to autogenerate the OME-XML library classes from the XML schema via a Python script [4]. The autogenerator currently supports Java and C++; I'm guessing that adding Python too would be feasible. </div><div><br></div><div>Regards,</div><div>Curtis</div><div><br></div><div>[1] <a href="https://www.openmicroscopy.org/site/support/ome-model/ome-tiff/specification.html">https://www.openmicroscopy.org/site/support/ome-model/ome-tiff/specification.html</a></div><div>[2] <a href="https://github.com/python-pillow/Pillow">https://github.com/python-pillow/Pillow</a></div><div>[3] <a href="https://docs.python.org/2/library/xml.etree.elementtree.html">https://docs.python.org/2/library/xml.etree.elementtree.html</a></div><div>[4] <a href="https://github.com/openmicroscopy/bioformats/tree/v5.0.5/components/xsd-fu">https://github.com/openmicroscopy/bioformats/tree/v5.0.5/components/xsd-fu</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 27, 2014 at 4:13 AM, Tjelvar Olsson (JIC) <span dir="ltr"><<a href="mailto:Tjelvar.Olsson@jic.ac.uk" target="_blank">Tjelvar.Olsson@jic.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
Is anyone aware of a Python library for working with OME Tiff files?<br>
<br>
I noticed that there is a Python BioFormats project, which provides a<br>
wrapper around the BioFormats Java libraries.<br>
<a href="https://github.com/CellProfiler/python-bioformats" target="_blank">https://github.com/CellProfiler/python-bioformats</a><br>
<br>
However, I have not managed to find a Python library that can read and<br>
manipulate OME Tiff files without the need for Java.<br>
<br>
Does anyone know if there is a "Java free" Python library for working<br>
with OME Tiff files?<br>
<br>
Thanks,<br>
<br>
Tjelvar<br>
_______________________________________________<br>
ome-users mailing list<br>
<a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>
</blockquote></div><br></div>