1
재생 프레임 워크 1.2.4를 사용 중입니다. png 이미지의 투명도를 제거하는 Image.resize() 메서드에 문제가 있습니까?재생 프레임 워크 Image.resize on png 투명성 손실
내 코드는 다음과 같습니다
public static void uploadPhoto(int user_id, File picture) throws IOException{
Images.resize(picture, picture, 200, 200, true);
FileInputStream f = new FileInputStream(picture);
user.getPerson().setPicture(IOUtils.toByteArray(f));
user.getPerson().save();
...
}
내가 PNG의 투명성을 잃지 않고 크기를 조정하는 방법을 알고 싶습니다
?
감사합니다.