-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Added AVIF support #691
base: master
Are you sure you want to change the base?
Added AVIF support #691
Conversation
Does this need any new dependency? Looking at the code, why do we need so much custom code if the only thing different between different formats is the name of the setting where the quality is stored? |
Indeed, it requires I just did a copy&paste from the recently merged PR where I implemented the WEBP support, but actually you are right, I will try to simplify the code! |
I'm out of ideas how to further simplify the code. It's still a bit ugly in some places, but I think, the biggest chunks should be taken care of now. |
Please test and review, ready to merge from my end! |
One remark: After getting rid of the On my machine, the order is Before the refactoring the order for default file type priority was Line 1196 in bce8db8
jpg and png respectively, but the other file types relied on the order in the Pixbuf.get_formats list as well, as far as I understand.
We get a problem if a lib supporting a new format is installed and then the number in the settings file doesn't suit any more. Say, without I'm not sure if this is acceptable or we should try to assign a number to each supported file format globally (which will probably make the code a bit uglier again, but more stable). |
Added AVIF support as requested in #690.