Turn off using temp file in ImageIO - our images are too small to do that
This commit is contained in:
parent
da5771174a
commit
368c6b0c45
1 changed files with 1 additions and 0 deletions
|
|
@ -152,6 +152,7 @@ public class FileLockManager {
|
||||||
byte[] rslt;
|
byte[] rslt;
|
||||||
synchronized(baos_lock) {
|
synchronized(baos_lock) {
|
||||||
baos.reset();
|
baos.reset();
|
||||||
|
ImageIO.setUseCache(false); /* Don't use file cache - too small to be worth it */
|
||||||
if(fmt.getFileExt().equals("jpg")) {
|
if(fmt.getFileExt().equals("jpg")) {
|
||||||
WritableRaster raster = img.getRaster();
|
WritableRaster raster = img.getRaster();
|
||||||
WritableRaster newRaster = raster.createWritableChild(0, 0, img.getWidth(),
|
WritableRaster newRaster = raster.createWritableChild(0, 0, img.getWidth(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue