{"id":6143,"date":"2018-12-25T03:12:43","date_gmt":"2018-12-25T03:12:43","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=6143"},"modified":"2018-12-28T22:47:37","modified_gmt":"2018-12-28T22:47:37","slug":"konbini-kdes-little-photo-helper","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/25\/konbini-kdes-little-photo-helper\/","title":{"rendered":"Konbini: KDE&#8217;s Little Photo Helper"},"content":{"rendered":"<p>If you happen to use KDE as your preferred graphical desktop, <a href=\"https:\/\/gitlab.com\/dmpop\/konbini\">Konbini<\/a> might be right up your alley. It adds several useful image manipulation actions to the Dolphin file manager as well as installs and configures a handful of photography-related tools.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/writing.tokyoma.de\/content\/1-blog\/6-konbini\/konbini.png\" alt=\"\" \/><\/p>\n<p>The supplied installer does the donkey job of fetching and installing the required pieces. It also adds the dedicated Konbini item to the right-click context menu in Dolphin. This menu gives you quick access to several useful commands that let you recompress and resize the currently selected image file, rename the file using date and time values extracted from its EXIF metadata, quickly geotag the selected photo, show the selected geotagged photo on OpenStreetMap, and more.<\/p>\n<p>Installing Konbini is supremely easy. In the Terminal, run the curl -sSL https:\/\/is.gd\/konbini | bash command for the installer to finish. The installer script is designed for use with openSUSE, Ubuntu, and Debian. But it can be easily modified to work with other Linux distributions.<\/p>\n<p>In the <em>template<\/em> folder in the <em>konbini<\/em> directory you&#8217;ll find example files that you can use to create your own actions. Let&#8217;s say you want to create an action that uploads the currently selected photo to an FTP server. First, rename the <em>example<\/em> file in the <em>template\/script<\/em> folder to something more descriptive like <em>upload-ftp<\/em>. Open the file for editing, remove the existing commands, and add the following code (replace the example values with the actual FTP server address or domain name, user name, and password):<\/p>\n<p>curl -T &#8220;$file&#8221; ftp:\/\/ftp.example.com\/path\/to\/dir\/ &#8211;user user:password<br \/>\nnotify-send &#8220;It works!&#8221;<\/p>\n<p>Save the changes, then move the file to the <em>\/usr\/local\/bin\/<\/em> directory, and make the script executable:<\/p>\n<p>sudo mv upload-ftp \/usr\/local\/bin\/<br \/>\nsudo chown root:root \/usr\/local\/bin\/upload-ftp<br \/>\nsudo chmod 755 \/usr\/local\/bin\/upload-ftp<\/p>\n<p>Next, rename the <em>example.png<\/em> icon in the <em>template\/icon<\/em> folder to <em>upload-ftp.png<\/em> and move it to the <em>\/usr\/share\/icons\/konbini-icons\/<\/em> directory:<\/p>\n<p>mv upload-ftp.png \/usr\/share\/icons\/konbini-icons\/<\/p>\n<p>Instead of the supplied generic example icon, you can use a more appropriate icon from the <a href=\"https:\/\/feathericons.com\/\">Feather Icons<\/a> set.<\/p>\n<p>Finally, rename the <em>example.desktop<\/em> file in the <em>template\/desktop<\/em> folder to <em>upload-ftp.desktop<\/em>, open it for editing and replace the example values:<\/p>\n<p>[Desktop Entry]<br \/>\nType=Service<br \/>\nX-KDE-Priority=TopLevel<br \/>\nX-KDE-Submenu=Konbini<br \/>\nServiceTypes=KonqPopupMenu\/Plugin<br \/>\nMimeType=image\/jpeg;image\/JPG;image\/JPEG;image\/jpg;<br \/>\nActions=UploadFTP<br \/>\n[Desktop Action UploadFTP]<br \/>\nName= Upload via FTP<br \/>\nExec=\/usr\/local\/bin\/upload-ftp %f<br \/>\nIcon=\/usr\/share\/icons\/konbini-icons\/upload-ftp.png<\/p>\n<p>Save the changes, and move the file to the <em>\/usr\/share\/kservices5\/ServiceMenus<\/em> directory:<\/p>\n<p>mv upload-ftp.desktop \/usr\/share\/kservices5\/ServiceMenus\/<\/p>\n<p>Launch Dolphin, right-click on a JPEG image, and you should see the newly-added action in the Konbini menu.<\/p>\n<p><em>This is an excerpt from the <a href=\"https:\/\/gumroad.com\/l\/linux-photography\">Linux Photography<\/a> book. Get your copy from <a href=\"https:\/\/play.google.com\/store\/books\/details\/Dmitri_Popov_Linux_Photography?id=cO70CwAAQBAJ\">Google Play Store<\/a> or <a href=\"https:\/\/gumroad.com\/l\/linux-photography\">Gumroad<\/a>.<\/em><\/p>\n<p><a href=\"http:\/\/lxer.com\/module\/newswire\/ext_link.php?rid=264171\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you happen to use KDE as your preferred graphical desktop, Konbini might be right up your alley. It adds several useful image manipulation actions to the Dolphin file manager as well as installs and configures a handful of photography-related tools. The supplied installer does the donkey job of fetching and installing the required pieces. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/25\/konbini-kdes-little-photo-helper\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Konbini: KDE&#8217;s Little Photo Helper&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6143","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/6143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=6143"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/6143\/revisions"}],"predecessor-version":[{"id":6759,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/6143\/revisions\/6759"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=6143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=6143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=6143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}