[ome-devel] Can I Add Thumbnails to BioFormats .ome.tiff File
Michael Ellis
michael.ellis at dsuk.biz
Mon Jun 26 16:00:14 BST 2017
Dear David Gault,
Firstly, Many thanks for your reply. Any support is over and above what I have paid for ;-)
In respect of my application, it looks like openThumbBytes() will be off limits to me since I have just erased the use of java.awt so I can still run headless if needed (at present headless is not a high priority requirement but I am trying to build in a future proof way).
Also for our purposes we would want a per image thumbnail, rather than a per channel thumbnail whether thumbnail represents a snapshot of how the XYCZT looked to the user subject to his selection of viewing parameters when last editing the image. It’s definitely work in progress for me.
Regards — Michael Ellis
> On 26 Jun 2017, at 15:03, David Gault (Staff) <d.gault at DUNDEE.AC.UK> wrote:
>
> Hi Michael,
>
> Currently the OME Data Model does not specifically support the storing of thumbnails although this is something that we would like to look into specifying in the future.
>
> Within the FormatTools utility class you can find the openThumbBytes method which provides a default implementation of generating a thumbnail from an existing image. The implementation can vary for different format readers but the default behaviour is to scale the image to a size of 128 x 128:
> http://downloads.openmicroscopy.org/bio-formats/5.5.2/api/loci/formats/FormatTools.html#openThumbBytes-loci.formats.IFormatReader-int- <http://downloads.openmicroscopy.org/bio-formats/5.5.2/api/loci/formats/FormatTools.html#openThumbBytes-loci.formats.IFormatReader-int->
>
> Additionally for TIFF format readers the default behaviour checks each TIFF IFD for the tag ‘IFD.NEW_SUBFILE_TYPE’. If the tag has a value of 1 then the IFD is added to a list of thumbnailIFDs rather than the standard IFD list. The 2 separate lists can then be read using ‘getIFDs’ and ‘getThumbnailIFDs’. If the thumbnailIFD list is present then it is used for openThumbBytes rather than the default FormatTools method above:
> http://downloads.openmicroscopy.org/bio-formats/5.5.2/api/loci/formats/in/MinimalTiffReader.html#getThumbnailIFDs-- <http://downloads.openmicroscopy.org/bio-formats/5.5.2/api/loci/formats/in/MinimalTiffReader.html#getThumbnailIFDs-->
> http://downloads.openmicroscopy.org/bio-formats/5.5.2/api/loci/formats/in/MinimalTiffReader.html#getIFDs-- <http://downloads.openmicroscopy.org/bio-formats/5.5.2/api/loci/formats/in/MinimalTiffReader.html#getIFDs-->
> http://downloads.openmicroscopy.org/bio-formats/5.5.2/api/loci/formats/in/MinimalTiffReader.html#openThumbBytes-int- <http://downloads.openmicroscopy.org/bio-formats/5.5.2/api/loci/formats/in/MinimalTiffReader.html#openThumbBytes-int->
>
> With Thanks,
> David Gault
>
>> On 23 Jun 2017, at 12:38, Michael Ellis <michael.ellis at dsuk.biz <mailto:michael.ellis at dsuk.biz>> wrote:
>>
>> I am exploring using BioFormat for our computer assisted microscope application.
>>
>> I need to store XYCZT image files and need to store meta data such as pixel size, channel names, microscope and camera information along with the image. Images could be large and I also would like to implement a gallery view that can display visual view of a whole directory of images.
>>
>> Is there a way to store a thumbnail images when saving an image file in .ome.tiff file that can be easily and quickly recovered from the image file for the purposes of displaying a gallery of images?
>>
>> Even better, are there any operating system extensions that allow this thumbnail to be accessible such that the thumbnail is viewable in the operating systems default file finder/browser… thus obviating the need for me to implement a graphic gallery of images?
>>
>> Michael Ellis (Managing Director)
>> Digital Scientific UK Ltd.
>> http://www.dsuk.biz <http://www.dsuk.biz/>
>>
>> _______________________________________________
>> ome-devel mailing list
>> ome-devel at lists.openmicroscopy.org.uk
>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel
>
>
> The University of Dundee is a registered Scottish Charity, No: SC015096
> _______________________________________________
> ome-devel mailing list
> ome-devel at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20170626/a14346d0/attachment.html>
More information about the ome-devel
mailing list