Re: Invert colors of a ScreenShot
Ingo Klöcker <[email protected]> Wed, 02 Apr 2025 09:21:46 +0200
| Newsgroups | gmane.comp.kde.users.pim |
|---|---|
| Message-ID | <2299240.vFx2qVVIhK@daneel> |
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
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTbjgIOMowwlCBgvyGxb1mVFkdKugUCZ+zligAKCRCxb1mVFkdK um6BAP4g2IGfptDP01oT44RNl+Jq1GAhSVgwVIXDZTAjTsYo4wD/fNMMVGmHe6Mz OQJVsd2hpkO4K447NuOudIw9SdQAYQU= =UZSb -----END PGP SIGNATURE-----