cancel
Showing results for 
Search instead for 
Did you mean: 

Want to change missing image background color to black

Former Member
0 Kudos

When the image for the product is missing, it outputs a white image by default.

I want to have this white image to be a black image or another color. Is there a way to change that ... can someone help?

The image is generated by thumbnail.ashx control which has netpoint.handlers.ThumbnailHandler class in it.

I have already checked for an option to configure in the setup section.

Mike

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Why not just make your own image then populate the field using a SQL script to point to that image?

Update partsmaster set StaticThumbnail = 'myimage.jpg' where (MMImage = '') OR (MMImage IS NULL)

This will populate the thumbnail field for all items that have no main image(that the thumbnail is then generated from)

Former Member
0 Kudos

I understand.

In terms of for the initial Ecommerce switchover we mass updated the MMIMAGE field in partsmaster so that the assumed naming convention of the image files are ITEMCODE.jpg.

Your solution is good which covers the instance where the image file field is empty and then putting in a empty image field in there.

The other scenario is that the MMIMAGE field is filled put the physical .jpg file is missing in the file system. Is there a way to handle that.

I checked already the netpoint thumbnail handler .dll and browsed over the available member properties / methods but I don't think such a config exists.

Mike

Answers (0)