Set cropped images to be stored in a non-cached web directory

This commit is contained in:
sigonasr2 2020-09-28 11:22:03 +09:00
parent d2a77614e0
commit 2321cddeb9
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -109,7 +109,7 @@ public class Guardian {
UPPERLEFTCORNER=new Point(crop2.x,crop1.y); UPPERLEFTCORNER=new Point(crop2.x,crop1.y);
LOWERRIGHTCORNER=new Point(crop1.x,crop2.y); LOWERRIGHTCORNER=new Point(crop1.x,crop2.y);
img = img.getSubimage(crop2.x, crop1.y, crop1.x-crop2.x, crop2.y-crop1.y); img = img.getSubimage(crop2.x, crop1.y, crop1.x-crop2.x, crop2.y-crop1.y);
ImageIO.write(img,"png",new File("cropped.png")); ImageIO.write(img,"png",new File("/var/www/html/divar/cropped/cropped"+USERID+".png"));
//System.out.println("Future Tone? "+MyRobot.FUTURETONE); //System.out.println("Future Tone? "+MyRobot.FUTURETONE);
return img; return img;
} }