phase1geo / Annotator

Image annotation for Elementary OS
GNU General Public License v3.0
209 stars 22 forks source link

Added the option for transparent PNG export #89

Closed peterwilli closed 12 months ago

peterwilli commented 12 months ago

The ability to export with transparency (alpha channel) has various use-cases. For example, some screenshot apps such as Gnome Screenshot adds transparent shadows to the windows, omitting any background.

Demo of the UI (Ironically made with Annotator): demo

With this PR, such screenshots (after annotating) go from this: non-transparent

To this: transparent

I made the PR such that the default setting is non-transparent (so default behaviour will not break). I also had to fix a bug where the boolean setting didn't autosave, it does now!

What is still TODO after this PR is the translation of the 'transparency' keyword.

This is my first PR for this project, I'm open for any feedback. Have a nice weekend!

peterwilli commented 12 months ago

This change looks very good. Nice work!

So glad to hear! I tried to keep the formatting the same as the rest of the application to make sure it fit well