Skip to content
Snippets Groups Projects
Commit 224b5366 authored by Jan Sladek's avatar Jan Sladek
Browse files

Dennis reported a bug, where the thumbnails hadn't the right color. Fixed this bug.

parent 704456de
No related merge requests found
...@@ -181,7 +181,7 @@ public class ImageUtils { ...@@ -181,7 +181,7 @@ public class ImageUtils {
byte[] imageData = Base64.decodeBase64(base64String); byte[] imageData = Base64.decodeBase64(base64String);
try { try {
BufferedImage originalImage = ImageIO.read(new ByteArrayInputStream(imageData)); BufferedImage originalImage = ImageIO.read(new ByteArrayInputStream(imageData));
BufferedImage newImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); BufferedImage newImage = new BufferedImage(width, height, originalImage.getType());
Graphics2D g = newImage.createGraphics(); Graphics2D g = newImage.createGraphics();
final double ratio = ((double) originalImage.getWidth()) / ((double) originalImage.getHeight()); final double ratio = ((double) originalImage.getWidth()) / ((double) originalImage.getHeight());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment