Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebP images turn green #221

Open
filex88 opened this issue Jun 20, 2024 · 1 comment
Open

WebP images turn green #221

filex88 opened this issue Jun 20, 2024 · 1 comment

Comments

@filex88
Copy link

filex88 commented Jun 20, 2024

Expected behavior

response-tree

Actual behavior

response-green

Steps to reproduce the behavior

my code is:

Thumbnails.of(new ByteArrayInputStream(originalBytes))
					.size(targetWidth, targetHeight)
					.outputFormat("JPEG")
					.outputQuality(outputQuality)
					.scalingMode(ScalingMode.PROGRESSIVE_BILINEAR)
					.antialiasing(Antialiasing.ON)
					.useExifOrientation(true)
					.toOutputStream(outputStream);

i have also tried to set:

imageType(BufferedImage.TYPE_INT_ARGB)

or

imageType(BufferedImage.TYPE_INT_RGB)

and i already have ImageIO plugins imageio-core, imageio-jpeg, imageio-tiff, imageio-webp in my pom.

If I transform the image using other online tools before using it everything seems to work as it should.

The bug only appears with some webps and seems to be present also using other java image manipulation libraries that rely on ImageIO.

Environment

  • OS vendor and version: Mac
  • JDK vendor and version: 1.8
  • Thumbnailator version: 0.4.20
@swhyeon98
Copy link

swhyeon98 commented Sep 12, 2024

Has this issue been resolved?

I am using Thumbnailator version 0.4.8, and recently I have encountered an issue where images turn neon (bright colors) when generating thumbnails from uploaded images. This issue is not specific to certain images; even images that were processed correctly in the past are now affected.

For example, on September 11, when the issue occurred, images that had been processed without problems before September 10 also showed the same problem when re-uploaded on September 11.


OS vendor and version: CentOS 7
JDK vendor and version: 1.8
Thumbnailator version: 0.4.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants