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
When I use the Encoder to load a DynamicImage, and then encode that image to webp, the encode function returns WebPMemory. The issue is that I want to perform more actions with the image, like resizing and there is no easy way to convert WebPMemory back to DynamicImage.
I can see the WebPImage has a to_image function that converts back to DynamicImage but for some reason, it's not possible to create a WebPImage from WebPMemory, in fact, the WebPImage::new is not even public.
Is there a way to convert WebPMemory to DynamicImage? If not, how hard it is to implement that and release a new version to support this?
The text was updated successfully, but these errors were encountered:
When I use the
Encoder
to load aDynamicImage
, and then encode that image to webp, theencode
function returnsWebPMemory
. The issue is that I want to perform more actions with the image, like resizing and there is no easy way to convertWebPMemory
back toDynamicImage
.I can see the
WebPImage
has ato_image
function that converts back toDynamicImage
but for some reason, it's not possible to create aWebPImage
fromWebPMemory
, in fact, theWebPImage::new
is not even public.Is there a way to convert
WebPMemory
toDynamicImage
? If not, how hard it is to implement that and release a new version to support this?The text was updated successfully, but these errors were encountered: