Closed torrobinson closed 3 years ago
After an extensive search I found that nothing really supports clientside gif cropping.
What I did was, rather than actually perform the crop clientside, I sent up the crop points from:
let cropPoints = croppieInstance.croppie('get');
to the server, and then, serverside, I used ImageMagick to iterate through each frame of the MagickImageCollection
and manually cropped each frame before saving.
Same effect, just a little more work serverside.
Edit: Do NOT try to use Magick.Net, it was a total nightmare that introduced artifacts and glitches into every gif. Use ImageSharp instead. It worked flawlessly.
Since Croppie doesn't support animated gifs, can anyone suggest an alternative to Croppie that supports
gif
?Allowing animated gifs as an avatar/profile picture is more and more common these days, and I need something like Croppie that supports selecting and cropping an animated image.
Does anyone know if any alternatives?