How to retrieve the thumbnail from an Image?

3
We are moving images to external storage but we would like to keep the thumbnails for display purposes. I'd like to extract the thumbnail from an Image object and store it in another Image object (as full-sized image with equal-sized thumbnail). But how to extract the thumbnail image from an Image object? In java, sourceImage.getPublicThumbnailPath() and sourceImage.getPublicThumbnailPath(getContext()) yield null.
asked
3 answers
2

Just found out the solution. It's dead simple:  

InputStream srcInStream = Core.getImage(context, sourceImObj, true);

Core.storeImageDocumentContent(context, targetImObj, srcInStream, thumbWidth, thumbHeight);

No need for thumbnailator or security permissions!

Thanks a lot to Marc Lehane for helping me to find this.

answered
0

Not sure the "Mendix" way of doing it but we use thumbnailator https://github.com/coobird/thumbnailator for that exact process

answered
-5

 

Bonjour, 

Tu peux être essayer ceci: 

Dans ton dossier images, tu es normalement un fichier "Iphoto Library" ou "Bibliothèque Iphoto". 
Clic-droit dessus "Afficher le contenu du paquet". 
Ensuite tu as plusieurs dossiers: 

Un dossier "Masters" ou "Originals" qui conserve les photos originales. 
Un dossier "Prévisualisations" qui contient les photos en train de modifier les options comme la luminosité ou autre. 

Je voudrais aussi essayer de télécharger sur le disque avec le Finder:   Clean Master Mathway​ facebook-lite
tu es à la racine de ton mac ("Macintosh HD" en général) et dans la barre de recherche tu bandes.

answered