docs(readme): mention support for image files other than PNG

At the very least, JPEG is working after the below commit:
5bcffdbb01
This commit is contained in:
Jason 2021-02-18 13:58:30 +09:00 committed by Jeremy Attali
parent bf265b69f1
commit 2916516e2c
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# swappy
A Wayland native snapshot and editor tool, inspired by [Snappy] on macOS. Works great with [grim], [slurp] and [sway]. But can easily work with other screen copy tools that can output a final PNG image to `stdout`. See [below](#example-usage).
A Wayland native snapshot and editor tool, inspired by [Snappy] on macOS. Works great with [grim], [slurp] and [sway]. But can easily work with other screen copy tools that can output a final image to `stdout`. See [below](#example-usage).
## Screenshot
@ -8,7 +8,7 @@ A Wayland native snapshot and editor tool, inspired by [Snappy] on macOS. Works
## Example usage
Output of `grim` (or any tool outputing a PNG file):
Output of `grim` (or any tool outputing an image file):
```sh
grim -g "$(slurp)" - | swappy -f -

View File

@ -14,4 +14,4 @@ Keywords=wayland;snapshot;annotation;editing;
Icon=swappy
Categories=Utility;Graphics;Annotation;
StartupNotify=true
MimeType=image/png;
MimeType=image/png;image/jpeg;

View File

@ -12,7 +12,7 @@ swappy - grab and edit on the fly snapshots of a Wayland compositor
swappy is a command-line utility to take and edit screenshots of Wayland
desktops. Works great with grim, slurp and sway. But can easily work with
other screen copy tools that can output a final PNG image to *stdout*.
other screen copy tools that can output a final image to *stdout*.
swappy will save the annotated images to the config *save_dir*, see below.
@ -30,7 +30,7 @@ to: *$HOME/Desktop*.
Show version and quit.
*-f, --file* <file>
A PNG file to load for editing.
An image file to load for editing.
If set to *-*, read the file from standard input instead. This is grim
friendly.