Skip to content

Commit 7596e8d

Browse files
committed
Changed output to jpeg
1 parent c97b1e0 commit 7596e8d

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
lines changed

launch4j.log

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

src/FormPrompt.java

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public String getDescription() {
7979
public void updateList() {
8080
filelist.setListData(PhotoLayout.getImages().toArray());
8181
}
82+
8283
public void updateProgress(int progress) {
8384
prog.setValue(progress);
8485
}

src/META-INF/MANIFEST.MF

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Main-Class: PhotoLayout
3+

src/PhotoLayout.java

+6-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void run() {
6060
BufferedImage imgA = ImageIO.read(imagePair.fileA);
6161
BufferedImage imgB = ImageIO.read(imagePair.fileB);
6262

63-
BufferedImage imgBuffer = new BufferedImage(1200, 1800, BufferedImage.TYPE_INT_ARGB);
63+
BufferedImage imgBuffer = new BufferedImage(1200, 1800, BufferedImage.TYPE_INT_RGB);
6464

6565
AffineTransform topShift = buildTransform(imgA);
6666
AffineTransform bottomShift = buildTransform(imgB);
@@ -73,8 +73,11 @@ public void run() {
7373
graphics.dispose();
7474

7575
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+
7881
if (index > 0) {
7982
int prog = index * 100 / images.size();
8083
inst_prompt.updateProgress(prog);

0 commit comments

Comments
 (0)