Skip to content

Commit

Permalink
Added test for #245
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel committed Feb 26, 2022
1 parent de08bb5 commit 1de7ea7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.sksamuel.scrimage.webp

import com.sksamuel.scrimage.ImmutableImage
import com.sksamuel.scrimage.nio.ImageIOReader
import io.kotest.core.spec.style.FunSpec

class Issue245Test : FunSpec({

// https://github.com/sksamuel/scrimage/issues/245
test("Can't load PNG, JPEG Images with scrimage-webp #245") {

ImmutableImage.loader()
.fromResource("/issue245.jpg")

ImmutableImage.loader()
.withImageReaders(listOf(WebpImageReader(), ImageIOReader()))
.fromResource("/issue245.jpg")
}
})
Binary file added scrimage-webp/src/test/resources/issue245.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1de7ea7

Please sign in to comment.