You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is a wrapper for ImageMagick. Therefore, you need to install ImageMagick from the official website before using this project. This project supports Windows, macOS, Linux, and Docker environments.
val info:ImageMagick.create()
.resize(120, 120)
.webpCompression()
.convert(File("/tmp/example.gif"), File("/tmp/example-resize-gif.webp"))
Assertions.assertTrue(info.isSuccess)
val info =ImageMagick.create()
.getImageInfo(File("/tmp/example.gif"))
Assertions.assertTrue(info.isSuccess)
val data = info.data!!Assertions.assertEquals(data.size, 31)
val first = data[0]
Assertions.assertEquals(first.width, 600)
Assertions.assertEquals(first.height, 600)
Assertions.assertEquals(first.format, "GIF")