-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F41 timed transitions broken (again) due to alpha channel (again) #67
Comments
Oh, see also-also my report against |
Another option, thinking about this a bit more, would be to install a CI workflow on the repo that checks the image formats, and fail any PRs that cause RGBA PNGs to be installed. I'd be willing to work on a PR along those lines, if that solution would be agreeable. |
Hello @ferdnyc, |
@luyatshimbalanga Done and done. (The Python script used in the CI workflow would require a bit of tweaking for GitLab, since their CI doesn't support the same annotation markup as GitHub. But I could make the output of the script configurable with just a few additional lines of code. And even without those changes, the exit status of the process is the main thing that determines success or failure, and that'll work the same whether it's being run on GitHub, GitLab, or any other CI system.) |
See #51 for a previous report of this issue during the F38 timeframe, and my Fedora Discussions thread for the journey I've been on to get here, with F41.
So it appears (from #51) that the issue with RGBA images not working, and needing to convert them to RGB (without alpha channel) is sorta-known, but in the past the fix has been to replace the images in the repo with corrected ones.
IMHO that's not a real solution, because people will keep forgetting that the images need to be RGB and that's totally understandable. So, given that it's a technical limitation of the GNOME timed-background implementation, my proposal would be to implement a technical solution, and just ensure that the images are alpha-channel-free by converting them during the build/packaging process. If the image is already in the right format, then the conversion won't take very long.
@hrismarin mentioned (@ the Fedora Discussions thread) using
optipng
to process the images, but its lack of control over the processing gives me pause. I'd personally prefer to use ImageMagick, with which it's possible to say "ONLY remove the alpha channel from this image, and do nothing else to it".(Specifically, that would take a form something like:)
...in place of the current Makefile
install
rule. But it does mean making ImageMagick a package dependency /BuildRequires
.The text was updated successfully, but these errors were encountered: