Skip to content
Snippets Groups Projects
Commit f406e83e authored by Jan Sladek's avatar Jan Sladek Committed by Björn
Browse files

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

parent 82ff54c3
No related merge requests found
......@@ -181,7 +181,7 @@ public class ImageUtils {
byte[] imageData = Base64.decodeBase64(base64String);
try {
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();
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