imagemagick.net - GIF image loses its animation in Magick.net -


i reading gif image , creating imagemagick object in c#. write same image output. in output static image without animation.

               magickimage image = new magickimage(imagepath);                 byte[] buffer = image.tobytearray();                                                         httpcontext.current.response.contenttype = "image/gif";                                                 httpcontext.current.response.outputstream.write(buffer, 0, buffer.length);                     httpcontext.current.response.statuscode = 200;  

a magickimage single image. when read .gif file first frame of animation. if want preserve animation should create magickimagecollection instead.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -