Open SkyeHoefling opened 3 years ago
The resize api is only available after decoding an image. Adding resize will not provide us with a performance improvement on thumbnail generation as the decode operation still needs to be invoked.
// Currently, heif_scaling_options is not defined yet. Pass a NULL pointer.
LIBHEIF_API
struct heif_error heif_image_scale_image(const struct heif_image* input,
struct heif_image** output,
int width, int height,
const struct heif_scaling_options* options);
Description
Add ability to resize the primary image or thumbnail using the libheif native resize api.
New APIs
Usage
The code below would generate a 200x200 square thumbnail. This use case is valuable for heic images that don't have an embedded thumbnail.