10

Whenever an image is resized on Stack Exchange using URL modifiers, any transparent elements or backgrounds will be lost in the conversion.

Exactly how the missing transparency is handled can vary depending on the modifier being used, and the size of the image being converted

When testing with a 1000x298 image:

  • l, m, t: Transparent background was converted to black
  • b, s, ?s=xyz: Transparent background was converted to white
  • h: Image was not modified (Image was smaller than 1024×1024)
  • HTML modifier: Transparency is preserved

When testing with a 5525x1275 image:

  • h l, m, t, b, s, ?s=xyz: Transparent background was converted to black
  • HTML modifier: Transparency is preserved

A similar issue involving profile pictures was marked as status-completed back in 2013, so it seems odd that this issue would still be around.


Original (1000x298): https://i.stack.imgur.com/s1dWm.png

SE Logo - Full


Large Thumbnail (640x191): https://i.stack.imgur.com/s1dWml.png

SE Logo - Large


Medium Thumbnail (320x95): https://i.stack.imgur.com/s1dWmm.png

SE Logo - Medium


Small Thumbnail (160x48): https://i.stack.imgur.com/s1dWmt.png

SE Logo - Tiny


Big Square (160x160): https://i.stack.imgur.com/s1dWmb.png

SE Logo - Big


Small Square (90x90): https://i.stack.imgur.com/s1dWms.png

SE Logo - Small


?s=64 (64x64): https://i.stack.imgur.com/s1dWm.png?s=64

SE Logo - ?s=64


Custom HTML: <img src="https://i.stack.imgur.com/s1dWm.png" width="400">


-Thanks to Awesome Poodles, Emanuel Ve, and a cat for documenting imgur's URL modifiers

8

I'm declining this formally because it's been ongoing for years and incredibly unlikely to ever be fixed.

The decision to make this change is up to Imgur and Imgur alone. In order to resize and create new images, they have to do image processing themselves. It's their decision whether or not they want to attempt to preserve transparency in those resized images. Given that this issue has been discussed many times with the only change being an apparent flip back and forth between black and white backgrounds, I doubt it's going to change.

As an aside, losing transparency is explicitly by-design when the image size is over 1MB, according to this response from their staff. Sadly that's old, but I don't really see any further documentation regarding these issues from Imgur, and they don't appear to have active meta-like support anymore.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .