Update ExtractImageScansController.java

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

View File

@ -79,7 +79,7 @@ public class ExtractImageScansController {
}
String pythonVersion = CheckProgramInstall.getAvailablePythonCommand();
Path pngToWebpScript = GeneralUtils.extractScript("split_photos.py");
Path splitPhotosScript = GeneralUtils.extractScript("split_photos.py");
try {
// Check if input file is a PDF
if ("pdf".equalsIgnoreCase(extension)) {
@ -122,7 +122,7 @@ public class ExtractImageScansController {
new ArrayList<>(
Arrays.asList(
pythonVersion,
pngToWebpScript.toAbsolutePath().toString(),
splitPhotosScript.toAbsolutePath().toString(),
images.get(i),
tempDir.toString(),
"--angle_threshold",