mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 09:45:50 +03:00
[GH-ISSUE #334] Transparency in PNG image turns black, when setting output to JPG #755
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#755
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jeroenbach on GitHub (May 24, 2022).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/334
We're using PNG images with transparent backgrounds, but in some cases we want the transparent background to become white. When changing the output to JPG the transparency is removed, but it becomes black, even when setting the background to white.
I've added our used PNG here:


And then when I change the output to JPG (and for the example rotated the image 45 degrees), I get this picture:
Here you see the transparency is black and then the background behind the black is white (because I rotated the image)
@sadok-f commented on GitHub (May 24, 2022):
Thank you @jeroenbach for reporting this issue!
Please update your repo to the latest version, it should be fixed!