Convert gif to png sprite. #106
-
Can I use this library the same way I can use SkiaSharp? I currently use SkiaSharp to convert a gif to a sprite as followed:
But SkiaSharp doesn't have a Gif encoder. So I'm using this library to scale gif's. I was wondering if I could replace SkiaSharp entirely. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It would be possible, but it would be very inefficient with the API as currently designed because you'd have to start the decode process over for each extracted frame. In general, I don't have plans to expand the API to cover all general-purpose image manipulation (SkiaSharp or ImageSharp will be your best bets for that), but this is kind of an interesting case for a custom image encoder because you're outputting them stacked/wrapped vertically so they wouldn't have to be in memory all at once. I'll add this to my list of considerations for when I open up those APIs to public. |
Beta Was this translation helpful? Give feedback.
It would be possible, but it would be very inefficient with the API as currently designed because you'd have to start the decode process over for each extracted frame.
In general, I don't have plans to expand the API to cover all general-purpose image manipulation (SkiaSharp or ImageSharp will be your best bets for that), but this is kind of an interesting case for a custom image encoder because you're outputting them stacked/wrapped vertically so they wouldn't have to be in memory all at once. I'll add this to my list of considerations for when I open up those APIs to public.