Developer forum

Forum » Dynamicweb 10 » ImageHandler adding grey pixels to some images

ImageHandler adding grey pixels to some images

Jóhannes Þorkell Tómasson
Reply

Hi.

Here's an example of what's happening:

The image source is clean, both in the folder and if you direclty access the it by a link to /Files/Images/...

This only happens to a few pictures but all the malformed images have a white background and are jpg, but again this only happens to a minority of images fulfilling those criteriea.

DW version is 10.14.3.

Best regards, Jóhannes


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You will need to give us the source image that have this issue.

Then we can try to create a bug with the vendor of the image component.

BR Nicolai

 
Jóhannes Þorkell Tómasson
Reply

Hi Nicolai.

Here's an image where these grey pixels are added (seemingly) by the imagehandler:

...And here are a couple of images that look very similar to eachother yet one breaks but the other doesn't. Image that adds these pixels:

...And a similar one where these pixels aren't added:

Hope this helps.

Best Regards, Jóhannes

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Just running this on a test environment - I do not have the issue.

Tried these

  • /Admin/Public/GetImage.ashx?height=475&quality=95&format=jpg&image=/Files/Images/Content/download.jpg
  • /Admin/Public/GetImage.ashx?height=500&quality=95&format=webp&image=/Files/Images/Content/download.jpg
  • /Admin/Public/GetImage.ashx?height=475&quality=50&format=jpg&image=/Files/Images/Content/download.jpg

Try to clean the folder /Files/Cache.net/Images/

Then try again - if it persist, please give me the full parameter set to the image.

 
Jóhannes Þorkell Tómasson
Reply

I cleared the Cache.net folder (although there wasn't one under Files/Images, only directly under Files) but that didn't work. I also tried using the same ImageHandler parameters as you did in your exmple but to no avail.

Here's a link to the image through the ImageHandler (has grey line): https://backend.s4s.is/Admin/Public/GetImage.ashx?Width=500&Height=500&Compression=99&Quality=99&Image=/Files/Images/V%C3%B6rumyndir/NIKHQ7901-104-a.jpg

...And here's a direct link to the image in the file system (no grey line): https://backend.s4s.is/Files/Images/V%C3%B6rumyndir/NIKHQ7901-104-a.jpg

*Edit: Like I said we're using version 10.14.3 of Dynamicweb. When we tried to update the version some important stuff broke.

Best Regards, Jóhannes

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Cannot reproduct that here...

Here is your image:

http://swift.main.public2.dynamicweb.dk/Admin/Public/GetImage.ashx?height=500&quality=95&format=webp&image=/Files/Images/Content/NIKHQ7901-104-a.jpg

What broke when upgrading? Things should not brake - then it is a problem in our end if we broke APIs or similar.

We did do an update of the image component not that long ago - but I am wondering if it is something else. It seems like you are hosting on a rather old windows - what happens if you run the same image on your local machine on same version - and new version?

 
Jóhannes Þorkell Tómasson
Reply

I upgraded to dw 10.18.7 and everything seems to work (some integrations broke on 10.14.something but works now).

The problem is still there. The service is hosted on windows server 2019 but the problem also happens when I run the project locally on Windows 11 enterprise.

Edit*: It seems to be working now, I cleared the cache again and the images don't have the grey line anymore. Thank you Nicolai.

Best Regards, Jóhannes

 

You must be logged in to post in the forum