Update ExtractImageScansController.java

This commit is contained in:
Ludy87 2025-07-19 01:44:02 +02:00
parent d7885fd773
commit e874450049
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -78,6 +78,7 @@ public class ExtractImageScansController {
} }
String pythonVersion = CheckProgramInstall.getAvailablePythonCommand(); String pythonVersion = CheckProgramInstall.getAvailablePythonCommand();
Path pngToWebpScript = GeneralUtils.extractScript("png_to_webp.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)) {
@ -120,7 +121,7 @@ public class ExtractImageScansController {
new ArrayList<>( new ArrayList<>(
Arrays.asList( Arrays.asList(
pythonVersion, pythonVersion,
"./scripts/split_photos.py", pngToWebpScript.toAbsolutePath().toString(),
images.get(i), images.get(i),
tempDir.toString(), tempDir.toString(),
"--angle_threshold", "--angle_threshold",