From 8658959a99417e03d6e7ceb1042fc4090e37cdd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Gigandet?= Date: Mon, 9 Dec 2024 18:47:45 +0100 Subject: [PATCH] fix: new images path (#11096) new images symlinks were mistakenly created in /srv/off/products/new_images/ I will move them to /srv/off/new_images/ so that they get processed --- lib/ProductOpener/Images.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ProductOpener/Images.pm b/lib/ProductOpener/Images.pm index 85364f84f0479..339907f3eeeb5 100644 --- a/lib/ProductOpener/Images.pm +++ b/lib/ProductOpener/Images.pm @@ -1050,11 +1050,11 @@ sub process_image_upload ($product_id, $imagefield, $user_id, $time, $comment, $ # Create a link to the image in /new_images so that it can be batch processed by OCR # and computer vision algorithms - (-e "$BASE_DIRS{PRODUCTS}/new_images") or mkdir("$BASE_DIRS{PRODUCTS}/new_images", 0755); + (-e "$BASE_DIRS{CACHE_NEW_IMAGES}") or mkdir("$BASE_DIRS{CACHE_NEW_IMAGES}", 0755); my $code = $product_id; $code =~ s/.*\///; symlink("$target_image_dir/$imgid.jpg", - "$BASE_DIRS{PRODUCTS}/new_images/" . time() . "." . $code . "." . $imagefield . "." . $imgid . ".jpg"); + "$BASE_DIRS{CACHE_NEW_IMAGES}/" . time() . "." . $code . "." . $imagefield . "." . $imgid . ".jpg"); # Save the image file size so that we can skip the image before processing it if it is uploaded again $images_ref->{$size_orig} = $imgid;