File tree 4 files changed +36
-3
lines changed
4 files changed +36
-3
lines changed Original file line number Diff line number Diff line change
1
+
2
+
3
+ Version: 3.9
4
+ CmdLine: C:\temp\Dom\PhotoLayout\PhotoLayout.exe --l4j-debug
5
+ WOW64: yes
6
+ Working dir: C:\temp\Dom\PhotoLayout\.
7
+ 64-bit search: SOFTWARE\JavaSoft\Java Runtime Environment...
8
+ Check: SOFTWARE\JavaSoft\Java Runtime Environment\1.8
9
+ Ignore: 1.8
10
+ Check: SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_111
11
+ Check launcher: C:\Program Files\Java\jre1.8.0_111\bin\javaw.exe (OK)
12
+ Match: 1.8.0_111
13
+ Check: SOFTWARE\JavaSoft\Java Runtime Environment\1.8.0_77
14
+ Ignore: 1.8.0_077
15
+ 64-bit search: SOFTWARE\JavaSoft\Java Development Kit...
16
+ Check: SOFTWARE\JavaSoft\Java Development Kit\1.8
17
+ Ignore: 1.8
18
+ Check: SOFTWARE\JavaSoft\Java Development Kit\1.8.0_111
19
+ Ignore: 1.8.0_111
20
+ Check: SOFTWARE\JavaSoft\Java Development Kit\1.8.0_77
21
+ Ignore: 1.8.0_077
22
+ Runtime used: 1.8.0_111 (64-bit)
23
+ Launcher: C:\Program Files\Java\jre1.8.0_111\bin\javaw.exe
24
+ Launcher args: -jar "C:\temp\Dom\PhotoLayout\PhotoLayout.exe"
25
+ Args length: 46/32768 chars
26
+ Exit code: 0
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ public String getDescription() {
79
79
public void updateList () {
80
80
filelist .setListData (PhotoLayout .getImages ().toArray ());
81
81
}
82
+
82
83
public void updateProgress (int progress ) {
83
84
prog .setValue (progress );
84
85
}
Original file line number Diff line number Diff line change
1
+ Manifest-Version : 1.0
2
+ Main-Class : PhotoLayout
3
+
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public void run() {
60
60
BufferedImage imgA = ImageIO .read (imagePair .fileA );
61
61
BufferedImage imgB = ImageIO .read (imagePair .fileB );
62
62
63
- BufferedImage imgBuffer = new BufferedImage (1200 , 1800 , BufferedImage .TYPE_INT_ARGB );
63
+ BufferedImage imgBuffer = new BufferedImage (1200 , 1800 , BufferedImage .TYPE_INT_RGB );
64
64
65
65
AffineTransform topShift = buildTransform (imgA );
66
66
AffineTransform bottomShift = buildTransform (imgB );
@@ -73,8 +73,11 @@ public void run() {
73
73
graphics .dispose ();
74
74
75
75
String name = imagePair .fileA .getName ().substring (0 , 5 ) + imagePair .fileB .getName ().substring (0 , 5 );
76
- File output = new File (PhotoLayout .getSavePath ().getAbsoluteFile () + File .separator + name + ".png" );
77
- ImageIO .write (imgBuffer , "png" , output );
76
+ File output = new File (PhotoLayout .getSavePath ().getAbsoluteFile () + File .separator + name + ".jpg" );
77
+
78
+ ImageIO .write (imgBuffer , "JPEG" , output );
79
+
80
+
78
81
if (index > 0 ) {
79
82
int prog = index * 100 / images .size ();
80
83
inst_prompt .updateProgress (prog );
You can’t perform that action at this time.
0 commit comments