If saving a thumbnail image fails, delete the resulting file.

OpenJDK throws "javax.imageio.IIOException: Invalid argument to native writeImage", because it
does not support transparency, and that results in zero-sized thumbnail files being created.
This commit is contained in:
LoneFox 2015-06-11 09:17:05 +03:00
parent 658daa65e3
commit 90486afdbb

View file

@ -298,6 +298,7 @@ public class ImageCache {
} }
} catch (IOException e) { } catch (IOException e) {
log.error(e,e); log.error(e,e);
imageFile.delete();
} }
return image; return image;
} }