[IMPLEMENTED] Background color when resizing images

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ x] Documentation issue or request

Current behavior

When getting an Image with BoxPad query parameter, the Background of the image is black.
https://cloud.squidex.io/api/assets/ikonity/64352e74-5e18-4c58-ba42-254ee8d9e8e2?width=200&height=200&mode=BoxPad

Expected behavior

Possibility of changing the Background color, or a white Background color of the image.

Minimal reproduction of the problem

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [x ] Cloud version

Version: [VERSION]

Browser:

  • [x ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Thank you in advance! :slight_smile:

All the Best
Matthias Dollfuss

Thank you very much. Does it also happen with PNG?

Thanks for the fast reply, yes these are png’s :confused:

It happens when the png has no alpha channel.

Implemented and deployed:

@Sebastian you are great! :slight_smile: thanks a lot! :slight_smile:

1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.