Developer forum

Forum » CMS - Standard features » Getimage alternative image 404

Getimage alternative image 404

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi there,

We have upgraded a website to 9.6.5 and some images are not showing up - for some scenarios we load the img tag with primary image empty and getimage's alternative image parameter populated. It seems that the alternative image parameter is no longer being used when the primary image doesn't exist, since it always generates a 404.
There was an improvement made to send a 404 when the alternative image parameter is send: https://doc.dynamicweb.com/downloads/releases/bug-fixes/bug-fixes-for-9-6#9.6.2

How are we able to load the alternative image instead of returning a 404? Or what are we doing wrong? smiley

 

https://camilla.dw-demo2.com/Admin/Public/GetImage.ashx?Image=&Height=360&altFmImage_path=/Files/Templates/Designs/NewSunshine/images/alternativeImage.jpg&Crop=5

https://camilla.dw-demo2.com/Admin/Public/GetImage.ashx?Image=&Height=360&AlternativeImage=/Files/Templates/Designs/NewSunshine/images/alternativeImage.jpg&Crop=5

 

Thanks!
BR, Mario


Replies

 
Alexey Tanchenko Dynamicweb Employee
Alexey Tanchenko
Reply
This post has been marked as an answer

Hello.

In Dynamicweb 9.6.11 were added new settings which allows you to change this behavior. You can upgrade the solution and find it on "Settings -> Web & HTTP -> HTTP" page in "Image Handler" section.
Documentation page

Best regards
Alexey

 

Votes for this answer: 1
 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Alexey,

We will take a look, thanks.

BR, Mario

 

You must be logged in to post in the forum