Invert colors of a ScreenShot
Ingo Klöcker
kloecker at kde.org
Wed Apr 2 08:21:46 BST 2025
On Mittwoch, 2. April 2025 08:45:30 Mitteleuropäische Sommerzeit bnacht wrote:
> HI,
>
> for documentation purpose I do ScreenShots with Spectacle. I want to
> invert the colours of the ScreenShots and use 'convert <infile> -channel
> RGB -negate <outfile>' at the CLI afterwards.
>
> I think this could be simpler ...
> How to create a entry in a context menu (e.g. from Dolphin) to call a
> little bash-Script to do this?
Neither Spectacle nor Dolphin are KDE PIM apps. You'd better use the general
kde at kde.org mailing list or the forum.
Anyway, you'll have to add a desktop file for a suitable bash-script to
~/.local/share/kio/servicemenus/
Something like this:
```
[Desktop Entry]
Actions=invertcolors
Type=Service
MimeType=application/png;
[Desktop Action invertcolors]
Name=Invert colors
Icon=image-png
Exec=convert %f -channel RGB -negate %f.inverted.png
```
If you do it right then you'll get a context menu entry "Invert colors" in
Dolphin in the Actions submenu.
Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdepim-users/attachments/20250402/cb95b903/attachment.sig>
More information about the kdepim-users
mailing list