PlayFramework1.2.4を使用しています。png画像の透明度を削除するImage.resize()メソッドに問題がありますか?
私のコードは次のようになります:
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の透明度を失わずにサイズ変更する方法を知りたいですか?
ありがとう。