Re: Invert colors of a ScreenShot
bnacht <[email protected]> Wed, 2 Apr 2025 14:41:01 +0200
| Newsgroups | gmane.comp.kde.users.pim |
|---|---|
| Message-ID | <[email protected]> |
Thx, for the help. Runs great! ... and sorry for the wrong location. Next Time i chosse the correct list. BErnd Am 02.04.25 um 09:21 schrieb Ingo Klöcker: > 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 > [email protected] 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