libheif icon indicating copy to clipboard operation
libheif copied to clipboard

suggesting to improve reading example in readme

Open vaifrax opened this issue 2 years ago • 1 comments

I started from the example in the readme. Unfortunately, error handling is not part of the example, this would be useful. But I consider it essential to include the clean up part, e.g. like this:

// done, clean up
heif_image_handle_release(handle);
heif_context_free(ctx);

At least this would have saved me a lot of debugging.

Thanks for your effort!

vaifrax avatar Jul 08 '22 21:07 vaifrax

plus

heif_image_release(img);

vaifrax avatar Jul 09 '22 22:07 vaifrax

Yes, please. Glad I found this :)

quiian avatar Jan 04 '23 10:01 quiian