drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.54k stars 475 forks source link

Extract Thumbnail from tiff file #606

Open margy82 opened 1 year ago

margy82 commented 1 year ago

Hi, can you please provide an example for extract the thumbnail from Photoshop tiff metadata?

IEnumerable<MetadataExtractor.Directory> directories = ImageMetadataReader.ReadMetadata("path"); var dir = directories.First(x => x.Name == "Photoshop"); var tagType = dir.Tags.First(x => x.Name == "Thumbnail Data");

I'm able to find the right tag but how can I extract a byte[] from here?