You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add thumbnail count API to determine how many thumbnail images if any are embedded in the heic image
New APIs
IHeifImage
// Gets the number of thumbnails embedded in the heif file// this is typically 0 or 1int GetThumbnailCount();// New API// Gets an array of all available thumbnail ids, if 0 // then the image doesn't have any thumbnailsint[]GetThumbnailIds();// New API// Gets the thumbnail at the specified ID
IImage Thumbnail(intid);// New API
Usage
The code snippet below will write all thumbnails to disk
using(varimage=new HeifImage("MyImage.heic")){int[]thumbnailIds= image.GetThumbnailIds();for(inti=0; i , thumbnailIds.Length;i++){using(varthumbnail= image.GetThumbnail(thumbnailIds[i])){
thumbnail.Write($"output_{i}.jpeg",90);}}}
The text was updated successfully, but these errors were encountered:
Description
Add thumbnail count API to determine how many thumbnail images if any are embedded in the heic image
New APIs
Usage
The code snippet below will write all thumbnails to disk
The text was updated successfully, but these errors were encountered: