Former-commit-id: 7600cebcbb
This commit is contained in:
Tour
2025-12-07 18:06:17 +01:00
parent 9cb19bbd8b
commit 270df601d2

View File

@@ -38,6 +38,9 @@ class ImageProcessingService {
*/
boolean processImage(int imageId, String localPath, long lotId) {
try {
// Normalize path separators (convert Windows backslashes to forward slashes)
localPath = localPath.replace('\\', '/');
// Check if file exists before processing
var file = new java.io.File(localPath);
if (!file.exists() || !file.canRead()) {