This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git

commit a4a296a1534d02660e6b4d7f74a79f2c32758b51
Author: Jacques Le Roux <[email protected]>
AuthorDate: Fri Sep 19 09:22:32 2025 +0200

    Improved: improves ImageManagementServices code (OFBIZ-13292)
    
    It's about better code and information in log when uploading several images.
---
 .../apache/ofbiz/product/imagemanagement/ImageManagementServices.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/applications/product/src/main/java/org/apache/ofbiz/product/imagemanagement/ImageManagementServices.java
 
b/applications/product/src/main/java/org/apache/ofbiz/product/imagemanagement/ImageManagementServices.java
index 2c5e35e73e..16702bdea4 100644
--- 
a/applications/product/src/main/java/org/apache/ofbiz/product/imagemanagement/ImageManagementServices.java
+++ 
b/applications/product/src/main/java/org/apache/ofbiz/product/imagemanagement/ImageManagementServices.java
@@ -87,6 +87,7 @@ public class ImageManagementServices {
         Locale locale = (Locale) context.get("locale");
 
         if (UtilValidate.isNotEmpty(uploadFileName)) {
+            Debug.logInfo("================== This is about file: " + 
uploadFileName +" ==================", MODULE);
             String imageServerPath = 
FlexibleStringExpander.expandString(EntityUtilProperties.getPropertyValue("catalog",
                     "image.management.path", delegator), context);
             String imageServerUrl = 
FlexibleStringExpander.expandString(EntityUtilProperties.getPropertyValue("catalog",
@@ -182,7 +183,7 @@ public class ImageManagementServices {
                 }
             }
             // Scale Image in different sizes
-            if (UtilValidate.isNotEmpty(imageResize)) {
+            else {
                 fileToCheck = imageServerPath + "/" + productId + "/" + 
imageName;
                 File fileOriginal = new File(fileToCheck);
                 fileOriginal = checkExistsImage(fileOriginal);

Reply via email to