Problem with imageSharpen function

My DEVELOPMENT box has

  • Windows 10 Pro x64 (16 Gb RAM)
  • IIS
  • Lucee 6.1.1.118
  • Image Extension 2.0.0.26

My PRODUCTION box has

  • VPS - Windows Server 2022 Standard x64 (4 Gb RAM)
  • IIS
  • Lucee 6.1.1.118
  • Image Extension 2.0.0.28

In my code I had the 4 image functions below among other lines of code. Please note that only 3 of these funcs change the image.

<cfset imageResize( Arguments.Img, Arguments.Width, “” )>
<cfset H = imageGetHeight( Arguments.Img )>
<cfset imageCrop( Arguments.Img, 0, Gap, Arguments.Width, Arguments.Height)>
<cfset imageSharpen( Arguments.Img, 1 )>

As input I had the file: THE_INITIAL_PHOTO.jpg

I was uploading the initial photo and my code was resizing, cropping and sharpening the photo according to the code above. The final photo was JUST FINE.

(file THE_IMAGE_OUTCOME_FROM_DEV_BOX.jpg)

When I uploaded my code to the server and run it giving the same photo as input, the outcome was a photo ok resized but TOO MUCH LIGHTENED or something. See
(file THE_IMAGE_OUTCOME_FROM_PROD_BOX.jpg)

So, In my production server I did the works below

  1. I tried giving other photos as input and always the outcome photos had the same problem.

  2. I updated the Image Extension 2.0.0.28 to the newest 2.0.0.29 and tried again. I got the same problem.

  3. I downgraded the Image Extension to my development box version which is 2.0.0.26 but to my surprise the problem was there again!!

  4. So after that I deleted the function imageSharpen because it was the least important, and run the code again. The problem was disappeared. The outcome image was exactly the same with the outcome image from my dev box, and it was just fine.

So the problem was made by the imageSharpen, but I still don’t know why it works fine in my dev box, and it does not in the production server using the same Lucee server and Image Extension version.

Maybe I don’t need help indeed, but I make this post in case it is useful to the community. If anyone has the answer It would be nice to see it.

THE_INITIAL_PHOTO (INPUT)

THE_INITIAL_PHOTO

THE_OUTCOME_FROM_DEV_BOX (JUST FINE)

THE_IMAGE_OUTCOME_FROM_DEV_BOX

THE_OUTCOME_FROM_PRODUCTION SERVER (TOO MUCH LIGHTENED)

THE_IMAGE_OUTCOME_FROM_PROD_BOX

That’s quite an interesting problem, especially given they are both running windows

Are they both on the same version of java?

I recently refactored the image extension tests to leave the artifacts in the temp dir for visual checks

Thank you for your response.

My dev box has
java 18.0.1.1 2022-04-22

and for my prod box,
I have not installed standalone java there.
I just installed Lucee 6.1.1.118
In Lucee Administrator and Overview section it says
Java 21.0.5 (Eclipse Adoptium) 64bit
Servlet Container Apache Tomcat/9.0.98

I hope it helps
Anastasios