gabm / Satty

Satty - Modern Screenshot Annotation. A tool inspired by Swappy and Flameshot.
Mozilla Public License 2.0
385 stars 18 forks source link

Support the `ppm` image format #78

Open SimonBrandner opened 2 months ago

SimonBrandner commented 2 months ago

Grim supports outputting images in the ppm image format which is much faster since it does not compress the data. It would be nice for Satty to support ppm as input since it would make the screenshot-taking process a bit faster

gabm commented 2 months ago

nice observation! I realised the long loading times and suspected that it's png - but I didn't confirm that...

Mind contributing such a functionality?

gabm commented 2 months ago

I think libvips might be a good option for iamge loading: https://github.com/olxgroup-oss/libvips-rust-bindings

SimonBrandner commented 2 months ago

nice observation! I realised the long loading times and suspected that it's png - but I didn't confirm that...

A few days ago I was attempting to make an AGS lockscreen with a screenshot as a background which is when I found https://github.com/emersion/grim/issues/47

Mind contributing such a functionality?

I am busy for the next month or so (due to graduation exams etc.) but I might look into it then if no one beats me to it. I don't know much about working with images though I assume most of the heavy lifting can be done using a library...