magick-rust icon indicating copy to clipboard operation
magick-rust copied to clipboard

Resize/stretch GIFs

Open Arthex1 opened this issue 1 year ago • 3 comments

Hello, i have recently started working on a wallpaper daemon and had to deal with resizing GIFs. Using the other crates resulted in a long, resource-consuming process, I didn't want to deal with. So I am trying to use magick-rust instead.

Now the normal read_image + resize + write doesn't seem to work, and results in a static image instead. If i even just read a image, and write it instantly, it still results in a static image. So i am curious on how i can resize a gif image?

Thats all, thanks.

Arthex1 avatar Jun 23 '23 12:06 Arthex1

Are you referring to an animated gif? And by "static" you mean the result is not animated? In any case, I have no idea on the proper usage of MagickWand for this, but if you do know which functions and options should be used, we can make sure those are exposed via this crate.

nlfiedler avatar Jun 25 '23 02:06 nlfiedler

write_images_blob seems to give the right result

vpzomtrrfrt avatar Sep 29 '23 21:09 vpzomtrrfrt

@Arthex1, try using coalesce() before write_images(), it works for me.

ohno104 avatar Feb 27 '24 08:02 ohno104