dragon66 / icafe

Java library for reading, writing, converting and manipulating images and metadata
Eclipse Public License 1.0
204 stars 58 forks source link

Is it possible to store multiple small size (thumbnail) in one photo? #89

Closed ivanooi closed 5 years ago

ivanooi commented 5 years ago

Hi,

Is it possible to store multiple small size (thumbnail) in one photo? I'm thinking to do facial recognition indexing..

Thanks

dragon66 commented 5 years ago

Not the public way but you can define your own private XMP schema to suite your requirement. Google has done that to embed depth map and other information in images.

ivanooi commented 5 years ago

you mean store thumbnail as binary array in XMP?

dragon66 commented 5 years ago

It doesn't matter how you save them as long as you can retrieve them back.

Google saves them as Base64 encoded PNG images. You can do similar thing or even save them as Base64 encoded multiple image Tiff. ICAFF can create multiple image Tiffs with different compression algorithms.

It won't be an easy work but doable.

dragon66 commented 5 years ago

Here is a link to StackOverflow question I answered a while ago related to Google Cardboard Camera app and Cardbox Camera images: Reading JPG file's XMP metadata

ivanooi commented 5 years ago

good point! I think that what I need. I can store faces in XMP.

Thanks