Product Thumbnail Image Size (Catalog) Error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
When ever I change the product thumbnail image size catalog to anything other than 415 I get this error when opening the catalog pages.

Bit depth is not supported or not valid.


System.NotSupportedException: Bit depth is not supported or not valid.
   at SixLabors.ImageSharp.Formats.Png.PngEncoderCore.Encode[TPixel](Image`1 image, Stream stream)
   at SixLabors.ImageSharp.Formats.Png.PngEncoder.Encode[TPixel](Image`1 image, Stream stream)
4 years ago
i assumed you are running with 4.20.



However, tell me your current version of your store.

Thank you,
Smiten Kalathiya
4 years ago
We are using 4.2 and I replaced default-image.png with a 1px by 1px image.
3 years ago
I have the same problems
OS : centOs 8
nopcommerce : 4.3
libgdiplus -inslalled

Bit depth is not supported or not valid.
error message:
System.NotSupportedException: Bit depth is not supported or not valid.
   at SixLabors.ImageSharp.Formats.Png.PngEncoderOptionsHelpers.CalculateBitDepth[TPixel](PngEncoderOptions options, Image`1 image, IndexedImageFrame`1 quantizedFrame)
   at SixLabors.ImageSharp.Formats.Png.PngEncoderCore.Encode[TPixel](Image`1 image, Stream stream)
   at SixLabors.ImageSharp.Formats.Png.PngEncoder.Encode[TPixel](Image`1 image, Stream stream)
   at Nop.Services.Media.PictureService.EncodeImage[TPixel](Image`1 image, IImageFormat imageFormat, Nullable`1 quality) in C:\andrei\nop_sources\src\Libraries\Nop.Services\Media\PictureService.cs:line 405
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.