4
$\begingroup$

When answering a question, I've wanted to include large images that have an alpha channel, but not necessarily at their original size. When I append an m to the image URL to shrink it, the alpha channel disappears, and it looks ugly. Example:

Original: https://i.stack.imgur.com/vAsYY.png
enter image description here

Shrunk: https://i.stack.imgur.com/vAsYYm.png
enter image description here

Can I fix this?

$\endgroup$
4
$\begingroup$

This is because imgur provides a jpeg for the smaller version (yes, it still has the .png extension, but don't let that fool you). Jpeg doesn't support an alpha channel, so imgur replaces it with a solid color.

The only way around this is to resize yourself and upload two pngs, then link them like this:

[![Blender logo](https://small/image.png)](https://large/image.png)

Example:

Blender logo

$\endgroup$
  • $\begingroup$ That wasn't the answer I was hoping for :-( , but thanks! $\endgroup$ – Scott Milner Sep 17 '17 at 0:23
  • $\begingroup$ Nice, I didn't know that despite compiling the posting images post years ago. Heh. $\endgroup$ – iKlsR Nov 2 '17 at 1:54

You must log in to answer this question.

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