sejda-pdf / webp-imageio

Java ImageIO WebP support
Apache License 2.0
198 stars 74 forks source link

Ignores offsets created by BufferedImage::getSubimage #10

Open manuel-hegner opened 3 years ago

davidekholm commented 3 years ago

I have problems with this too. We crop images within our imaging software (jAlbum) using getSubImage. When saved through this library, the resulting image is pushed to the right, leaving the left side black. The only workaround we have is the sometimes expensive operation of painting the cropped image to a fresh buffered image before saving it.

Hoping for a resolution to this soon. This is otherwise an excellent library!

mipastgt commented 10 months ago

Just stumbled over that too today and also found no other solution than to make an explicit copy of the cropped image. All other ImageIO writers I have used so far can handle this scenario correctly. So it is not a general ImageIO issue.