mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-12 20:11:55 +00:00
ImageIO disk cache disabled, it writes a lot of ImageIO* files to temp folder.
This commit is contained in:
@@ -43,6 +43,10 @@ import org.monte.media.jpeg.CMYKJPEGImageReaderSpi;
|
||||
*/
|
||||
public class ImageHelper {
|
||||
|
||||
static {
|
||||
ImageIO.setUseCache(false);
|
||||
}
|
||||
|
||||
public static BufferedImage read(byte[] data) throws IOException {
|
||||
return read(new ByteArrayInputStream(data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user