mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
Update ExtractImageScansController.java
This commit is contained in:
parent
d3bc5ee97f
commit
fcfab2a7e1
@ -79,7 +79,7 @@ public class ExtractImageScansController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String pythonVersion = CheckProgramInstall.getAvailablePythonCommand();
|
String pythonVersion = CheckProgramInstall.getAvailablePythonCommand();
|
||||||
Path pngToWebpScript = GeneralUtils.extractScript("split_photos.py");
|
Path splitPhotosScript = GeneralUtils.extractScript("split_photos.py");
|
||||||
try {
|
try {
|
||||||
// Check if input file is a PDF
|
// Check if input file is a PDF
|
||||||
if ("pdf".equalsIgnoreCase(extension)) {
|
if ("pdf".equalsIgnoreCase(extension)) {
|
||||||
@ -122,7 +122,7 @@ public class ExtractImageScansController {
|
|||||||
new ArrayList<>(
|
new ArrayList<>(
|
||||||
Arrays.asList(
|
Arrays.asList(
|
||||||
pythonVersion,
|
pythonVersion,
|
||||||
pngToWebpScript.toAbsolutePath().toString(),
|
splitPhotosScript.toAbsolutePath().toString(),
|
||||||
images.get(i),
|
images.get(i),
|
||||||
tempDir.toString(),
|
tempDir.toString(),
|
||||||
"--angle_threshold",
|
"--angle_threshold",
|
||||||
|
Loading…
Reference in New Issue
Block a user