We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
final boolean isBMP = "bmp".equalsIgnoreCase(imageFormat); final BufferedImage bufferedImage = getBufferedImage(isBMP ? BufferedImage.TYPE_INT_RGB : BufferedImage.TYPE_INT_ARGB);
Using the above code to convert jpg images, it looks like the image will turn red. Can I change it to the following code?
BufferedImage bufferedImage = this.getBufferedImage(getImageType(imageFormat)); private int getImageType(String imageFormat){ if ("jpg".equalsIgnoreCase(imageFormat)){ return BufferedImage.TYPE_3BYTE_BGR; } if ("bmp".equalsIgnoreCase(imageFormat)){ return BufferedImage.TYPE_INT_RGB; } return BufferedImage.BITMASK; }
The text was updated successfully, but these errors were encountered:
Sounds right - and yes you are welcome
Sorry, something went wrong.
during my work i found a problem with jpg rendering and jvm threw an exception about "color bug" which i fixed.
So we should investigate again, because at the moment I can't reproduce this bug on the new committed version.
No branches or pull requests
Using the above code to convert jpg images, it looks like the image will turn red. Can I change it to the following code?
The text was updated successfully, but these errors were encountered: