java.lang.IllegalStateException: No compression type set!

GitHub | GoogleCodeExporter | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Problem with resize gif images when output quality is set

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.IllegalStateException: No compression type set!

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No compression type set!

      at javax.imageio.ImageWriteParam.setCompressionQuality()
    2. Java RT
      ImageWriteParam.setCompressionQuality
      1. javax.imageio.ImageWriteParam.setCompressionQuality(ImageWriteParam.java:1241)
      1 frame
    3. net.coobird.thumbnailator
      Thumbnails$Builder.toFile
      1. net.coobird.thumbnailator.tasks.io.FileImageSink.write(Unknown Source)
      2. net.coobird.thumbnailator.tasks.SourceSinkThumbnailTask.write(Unknown Source)
      3. net.coobird.thumbnailator.Thumbnailator.createThumbnail(Unknown Source)
      4. net.coobird.thumbnailator.Thumbnails$Builder.toFile(Unknown Source)
      4 frames
    4. Unknown
      ImageResize.main
      1. ImageResize.resizeImage(ImageResize.java:26)
      2. ImageResize.main(ImageResize.java:18)
      2 frames