Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Tuesday, May 10, 2016 at 20:11

KIM (KDE Image Menu) is a third party plugin for KDE to add context menu (the right-click) able to do convert and resize to image file. KIM is very useful because it adds those convert and resize options into the right-click in Dolphin when you browse image files. It can do those manipulations to both every single image and many images simultaneously. Just click and done. This article introduce how to install KIM in KDE 5 because it needs special treatment compared to KDE 4. KIM is free software and licensed as GNU GPL 2.



Obtain KIM


Download KIM for KDE 4 from http://kde-apps.org/content/show.php?content=11505&forumpage=15. You will get an archive file named more or less kim4-0.9.5.tar.gz. We use KIM 0.9.5 version because at this time there is no version for KDE 5.

Extract KIM Archive


Extract it in you $HOME directory (to make it easy). You should get a folder named kim4 later in your $HOME. So the path address for it is ~/kim4.

Install KIM


To install KIM, don't run the shell script named install.sh. That is the script for KDE 4, not for KDE 4. Instead, perform these commands manually based on the same script but for KDE 5:

  1. sudo cp ~/kim4/src/kim_*.desktop /usr/share/kservices5/ServiceMenus/
  2. sudo cp ~/kim4/src/bin/kim_* /usr/bin/
Explanation: KIM installation is essentially just to place the .desktop file into KDE ServiceMenus directory and to place the KIM shell scripts into /usr/bin/ directory. The only one problem between KIM and KDE 5 is around KIM installs the .desktop files into KDE 4 ServiceMenus directory, while KDE 5 has different location for ServiceMenus. So the first command did the job for KDE 5. ServiceMenus more or less is a directory containing .desktop files associated with every single right-click menu in Dolphin. See picture below.




Additional Installation (Optional)


Actually, KIM includes some other files like license file, documentation, and gallery. You may install them if you want. To install them, please do the following:

  1. mkdir /usr/share/kim
  2. cp ~/kim4/COPYING /usr/share/kim/kim_about.txt
  3. mkdir /usr/share/kim/slideshow/
  4. cp ~/kim4/src/slideshow/* /usr/share/kim/slideshow/
  5. mkdir /usr/share/kim/gallery
  6. cp ~/kim4/src/gallery/* /usr/share/kim/gallery
Explanation: those six commands do creating directory and placing the correct file to the corresponding directory.

Use KIM


Right-click to any image file (JPEG, PNG, GIF, etc.) see Actions > Compress & Resize and see Actions > Convert & Rotate and see Actions > Treatment.

Acknowledgement 


I'd like to say thank you to KIM developer Charles Bouveyron because I use it for years and truly it helps me a lot. and to DanielBull for showing how to install KIM in KDE 5.