How to add command line command to KDE context menu?

Well, I’m not sure how to formulate my question.

The problem is I need from time to time run a command to compress a jpg image:

$magick convert -quality 55 image.jpg image.jpg

I use Krusader and I’d like to run the command at any file quickly. Is there any way to do so?

I’ve solved the problem for Krusader.

I’ve added to Useractions an action with the following command:

convert -quality 50 %aCurrent% %aCurrent%

and assigned it to a shortcut. Now I can compress a jpg only by a shortcut.

Thanks.