Bug overview description.
Black thumbnail generated for image with transparency (and otherwise only black content).
What part(s) of the site page(s) are affected?
Uploaded images.
https://e621.net/post/index/1/alpha_channel%20line_art though it also affects every other image with an alpha_channel tag.
What is the expected behavior?
Generate a thumbnail in a similar or upward compatible format to the uploaded image, including with alpha layers if the source image had them.
What actual behavior is given instead?
All thumbnails are jpeg format, and thus lack alpha layer. Replacing the transparent background with black seems to be the default.
I'd have coded it to maintain the extension and format and then fall back to a conservative catch all if the first attempt failed.
Time of incident (if applicable).
Here's an example: https://e621.net/post/show/1462378/
Can you reproduce the bug every time?
Yes, it is easy to find examples thanks to: https://e621.net/post/index/1/alpha_channel%20line_art though it also affects every other image with an alpha_channel tag.
What steps did you take to replicate this bug?
Upload an image with transparency to e621.
Errors or other messages returned (if any).
None that I recall.
Updated by savageorange