mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-28 03:27:36 +01:00
Turn off using temp file in ImageIO - our images are too small to do that
This commit is contained in:
parent
e479d04c85
commit
7fd2d5bf10
@ -152,6 +152,7 @@ public class FileLockManager {
|
||||
byte[] rslt;
|
||||
synchronized(baos_lock) {
|
||||
baos.reset();
|
||||
ImageIO.setUseCache(false); /* Don't use file cache - too small to be worth it */
|
||||
if(fmt.getFileExt().equals("jpg")) {
|
||||
WritableRaster raster = img.getRaster();
|
||||
WritableRaster newRaster = raster.createWritableChild(0, 0, img.getWidth(),
|
||||
|
Loading…
Reference in New Issue
Block a user