Discussion:
run script on a picture
Olivier R-D
2010-04-21 12:35:02 UTC
Permalink
I am looking for a way to apply custom operation to selected image files
(copy and resize then move to a hardcoded path, then apply some changes
using jhead on the original file). How can I do that using gwenview ?

I see old versions of gwenview could call an external script but it does
not seem to be available in the current gwenview version.

I see I could write a kipi plugin but it seems a bit overkill to install
a system plugin just for some custom operations.

I currently use a custom eog plugin(in python), but I would like to try
using gwenview.

Thank you for ideas :-)

Olivier

------------------------------------------------------------------------------
Aurélien Gâteau
2010-04-24 12:55:53 UTC
Permalink
Post by Olivier R-D
I am looking for a way to apply custom operation to selected image files
(copy and resize then move to a hardcoded path, then apply some changes
using jhead on the original file). How can I do that using gwenview ?
I see old versions of gwenview could call an external script but it does
not seem to be available in the current gwenview version.
I see I could write a kipi plugin but it seems a bit overkill to install
a system plugin just for some custom operations.
I currently use a custom eog plugin(in python), but I would like to try
using gwenview.
Hi Olivier,

It's true external tools are not available in Gwenview 2. What you can
do is to add your script to the list of programs which can be used to
open images. This can be done from System Settings. Then you should be
able to run your script from within Gwenview by using "Open With...".

Aurélien

------------------------------------------------------------------------------
Karl Günter Wünsch
2010-04-24 19:39:58 UTC
Permalink
Post by Aurélien Gâteau
It's true external tools are not available in Gwenview 2.
In fact the decision to have gwenview use the standard external program list
for it's "open with" menu has destroyed the workflow that made gwenview 1
worthwhile for me...
No I use it to view images at times (I'm on the verge of abandoning KDE
completely because of the amount of misguided decisions along the same lines
as the one that messed up the gwenview workflow), but I rather have the old
functionality back which allows me to have gwenview open the image externally
with the gimp as primary option without having to resort to changing the
global "open with" list - which usually get's in the way of showing images in
konqueror, kmail or other programs...
So please please bring back that old functionality of having custom actions
that doesn't rely on some global setting which is simply not suitable in the
context of gwenview!
regards
Karl Günter

------------------------------------------------------------------------------
Aurélien Gâteau
2010-04-27 09:42:41 UTC
Permalink
Post by Karl Günter Wünsch
Post by Aurélien Gâteau
It's true external tools are not available in Gwenview 2.
In fact the decision to have gwenview use the standard external program list
for it's "open with" menu has destroyed the workflow that made gwenview 1
worthwhile for me...
No I use it to view images at times (I'm on the verge of abandoning KDE
completely because of the amount of misguided decisions along the same lines
as the one that messed up the gwenview workflow), but I rather have the old
functionality back which allows me to have gwenview open the image externally
with the gimp as primary option without having to resort to changing the
global "open with" list - which usually get's in the way of showing images in
konqueror, kmail or other programs...
I don't understand what you mean: you do not have to change the global
"open with" list to open a file with gimp. When Gimp is installed it
should show up in the "open with" list, no need to add it yourself. And
when this is done, you can use the "open with" button in Gwenview
sidebar (or context menu) to open the image with Gimp from within Gwenview.
Post by Karl Günter Wünsch
So please please bring back that old functionality of having custom actions
that doesn't rely on some global setting which is simply not suitable in the
context of gwenview!
I didn't say it won't come back. It's just that for now it is not very
high in my list because I don't have a strong need for it ("open with"
works with me). Right now I am using my limited times working on aspects
I consider more important. That does not mean I won't add "external
tools" back or I won't accept (or help someone writing) the code to get
it back.

Aurélien

------------------------------------------------------------------------------
Karl Günter Wünsch
2010-04-27 10:01:52 UTC
Permalink
Post by Aurélien Gâteau
I don't understand what you mean: you do not have to change the global
"open with" list to open a file with gimp.
I do if I want that to be the first option presented. Having the gimp way down in the list - where it belongs in the context of other applications such as KMail or Konqueror - is simply not helpful and only leads to a lot of frustration.
Post by Aurélien Gâteau
Post by Karl Günter Wünsch
So please please bring back that old functionality of having custom actions
that doesn't rely on some global setting which is simply not suitable in the
context of gwenview!
I didn't say it won't come back. It's just that for now it is not very
high in my list because I don't have a strong need for it ("open with"
works with me).
Well it doesn't for me and the loss of the scripting abilities is only adding insult to injury...
IMHO gwenview should strive to be what pixie - and gwenview - once was - a lightweight and fast image viewer. I still rue the disappearance of the setting to allow disabling the smoothing after scaling as this slows down operations considerably and makes judging the image quality pretty much impossible at any scale level smaller than 100%...
regards
Karl Günter Wünsch

------------------------------------------------------------------------------
Olivier R-D
2010-04-26 12:52:46 UTC
Permalink
Post by Aurélien Gâteau
It's true external tools are not available in Gwenview 2. What you can
do is to add your script to the list of programs which can be used to
open images. This can be done from System Settings. Then you should be
able to run your script from within Gwenview by using "Open With...".
Thank your for the tips. I will have a look. Althoug, I suppose it will
be a problem/impossible to assign a shortcut to it

In a more general basis, May I suggest that gwenview would benefit from
a more closely integrated plugin system that allows setting up
shortcuts, modify the UI(add icons on toolbar for ex) and support
scripting language. That way you would avoid having to implement all the
feature that everybody request. I think that this kind of plugins really
fits a generic simple program like an image viewer.


------------------------------------------------------------------------------
Loading...