custom filter for files

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: custom filter for files

Peter Albrecht
Hello,

On 24.10.2013 12:09, Jean-François Rabasse wrote:
> Well, I think I see what Yuri means with « custom tool »,
> for I happen
> to have similar issues.
> Custom tool could be any user defined processor, accepting
> one or more
> images files on input, and producing ... something.

Another "dirty" solution, I use:
I write a shell/perl/... script doing the processing stuff,
I want. And then I register this script in KDE as
application for "MimeType=image/jpeg". This way, my custom
script appears in the "Open With" part of the context menu.

So I select the photos I want to be affected. Click right
and select "Open With -> myAction" from the context menu.

From one of my earlioer postings:
> http://mail.kde.org/pipermail/digikam-users/2013-July/017898.html

-------------------------- 8< --------------------------
So in the directory "~/.local/share/applications" I added a
file "myAction.desktop".

  --------------------- 8< ---------------------
> [Desktop Entry]
> Name=myAction
> GenericName=Cool photo tool
> Comment=some comment to set
> Icon=resizeimages
> Exec=/usr/bin/konsole --noclose -e perl /usr/local/bin/myAction.pl %F
> Type=Application
> MimeType=image/jpeg
> Terminal=false
  --------------------- >8 ---------------------
-------------------------- >8 --------------------------

Maybe that helps.

Regards,
        Peter
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: custom filter for files

kinnalru@gmail.com
Realy good solution!


2013/10/25 Peter Albrecht <[hidden email]>
Hello,

On 24.10.2013 12:09, Jean-François Rabasse wrote:
> Well, I think I see what Yuri means with « custom tool »,
> for I happen
> to have similar issues.
> Custom tool could be any user defined processor, accepting
> one or more
> images files on input, and producing ... something.

Another "dirty" solution, I use:
I write a shell/perl/... script doing the processing stuff,
I want. And then I register this script in KDE as
application for "MimeType=image/jpeg". This way, my custom
script appears in the "Open With" part of the context menu.

So I select the photos I want to be affected. Click right
and select "Open With -> myAction" from the context menu.

From one of my earlioer postings:
> http://mail.kde.org/pipermail/digikam-users/2013-July/017898.html

-------------------------- 8< --------------------------
So in the directory "~/.local/share/applications" I added a
file "myAction.desktop".

  --------------------- 8< ---------------------
> [Desktop Entry]
> Name=myAction
> GenericName=Cool photo tool
> Comment=some comment to set
> Icon=resizeimages
> Exec=/usr/bin/konsole --noclose -e perl /usr/local/bin/myAction.pl %F
> Type=Application
> MimeType=image/jpeg
> Terminal=false
  --------------------- >8 ---------------------
-------------------------- >8 --------------------------

Maybe that helps.

Regards,
        Peter
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
12