Convert WebP image to Gif
Contents
[
Hide
]
Convert WebP image to Gif
Using Aspose.Imaging we can convert single paged or animated WebP image to Gif.
The following code snippet shows you how to convert WebP to Gif.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.aspose.imaging.Image; | |
import com.aspose.imaging.imageoptions.GifOptions; | |
try (com.aspose.imaging.fileformats.webp.WebPImage image = | |
(com.aspose.imaging.fileformats.webp.WebPImage)Image.load("Animation.webp")) | |
{ | |
GifOptions options = new GifOptions(); | |
image.save("Animation.gif", options); | |
} |