-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resize API #12
Labels
⚒ Enhancement
New feature or request
Comments
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: