imgscalr with background red
I'm using ( org.imgscalr.Scalr ) libraries to resize some images, but when after resizing the background turns red . My code is: BufferedImage imagemPng = ImageIO.read(image); BufferedImage imagemJpg = Scalr.resize(imagemPng, Method.QUALITY, 1920, 937); can you help me? Thank you The remainder of the code you omitted (the ImageIO save) and if the PNG you are reading in has a transparent channel or not (as @Daft Punk pointed out) are the important bits here. I am willing to bet $1 that your PNG has an alpha channel in it and JPG does not support alpha; unfortunately Java's JPG encoder does not