Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-27 Thread Werner
> > > %wif convert -rotate 90 %p .tmp_%p; then mv .tmp_%p %p; else rm .tmp_%p;fi
> > 
> > why not using this:
> > 
> > %wif mogrify -rotate 90 %p ;fi

and why not 

  %w mogrify -rotate 90 %p

???

Greetings

Werner


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-24 Thread Martin Stolle
On Fri, Oct 24, 2008 at 06:37:14PM +0200, Sébastien Barthélemy wrote:
> Le vendredi 24 octobre 2008 à 07:52 -0400, Martin Stolle a écrit : 
> > %wif convert -rotate 90 %p .tmp_%p; then mv .tmp_%p %p; else rm .tmp_%p;fi
> 
> why not using this:
> 
> %wif mogrify -rotate 90 %p ;fi
> 

Because that would be too easy and I can never remember that mogrify
exists 8-).

Martin


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-24 Thread Sébastien Barthélemy
Le vendredi 24 octobre 2008 à 07:52 -0400, Martin Stolle a écrit : 
> %wif convert -rotate 90 %p .tmp_%p; then mv .tmp_%p %p; else rm .tmp_%p;fi

why not using this:

%wif mogrify -rotate 90 %p ;fi



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-24 Thread Werner
> ...

Hello Martin,

thanks for the help.

Martin Stolle <[EMAIL PROTECTED]> writes:
 
> The "i" is part of the "if".  The command starts right after the "w".
> 
> Anyways, try this:
> 
> %wif convert -rotate 90 %p .tmp_%p; then mv .tmp_%p %p; else rm .tmp_%p;fi

converts needs at first filenam, then options then output-filename

Since I don't really understand the syntax [nor the help-text for the
customising of these commands *) ], I realized, that the .tmp_%p doesn't work,
cause geeqie creates something like like 
.tmp_/path/to/current/directory/file.png

> (Unfortunately, adding _tmp to the end of the temporary file doesn't
> work, as imagemagick tries to deduce the file format from the extension
> and doesn't know what to do with it).

I tried
  %wif convert %p -rotate 90 %p_tmp; then mv %p_tmp %p; else rm %p_tmp;fi
and
  %wif convert %p -rotate 270 %p_tmp; then mv %p_tmp %p; else rm %p_tmp;fi
and it works fine.

So with the new commands as 6th and 7th and the lines
  (gtk_accel_path "/MenuActions/Editor7" "l")
  (gtk_accel_path "/MenuActions/Editor6" "r")
in ~/.geeqie/accels it seems to work.

Werner


*) 
  %p
means something like $f in bash 
  for f in "selected files" ; do command $f ; done
'right?

Maybe the help-text should be something like
"%p puts the first filename of the selected files to every place where it
appears in the commandline and runs the whole command, then the second and so
on."


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-24 Thread Laurent Monin

Martin Stolle a écrit :

On Fri, Oct 24, 2008 at 10:36:32AM +, Werner wrote:
  

Thanks for that hint

I changed now %vif to %wif and get no more annoying message-window and it works
in fullscreen-mode too. (Since I don't know what the i in wif means.)

I've got the command 
  %wif jpegtran -rotate 90 -copy all -outfile %p_tmp %p; then mv %p_tmp %p;else

rm %p_tmp;fi
now.
But the program jpegtran seems to work only for jpeg. Mostly this is enough, but
I would be glad to have such command also for png, gif ...

Does somebody have a line for such converting (e.g. via convert from
ImageMagick?)?




The "i" is part of the "if".  The command starts right after the "w".

Anyways, try this:

%wif convert -rotate 90 %p .tmp_%p; then mv .tmp_%p %p; else rm .tmp_%p;fi

(Unfortunately, adding _tmp to the end of the temporary file doesn't
work, as imagemagick tries to deduce the file format from the extension
and doesn't know what to do with it).

Martin

  

Note that latest geeqie supports "%w if convert..." syntax.
It was introduced by me in revision 763, here is the svn log message:

Improve editors a bit:
- allow whitespaces before and after %v, %V, %w
- allow % escaping using %% (mandatory to use shell commands than 
contain % characters)
- display a dialog on execution if a syntax error is detected (only for 
generic editors)

- update README editors section

Best regards,

--
Laurent Monin aka Zas
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-24 Thread Martin Stolle
On Fri, Oct 24, 2008 at 10:36:32AM +, Werner wrote:
> Thanks for that hint
> 
> I changed now %vif to %wif and get no more annoying message-window and it 
> works
> in fullscreen-mode too. (Since I don't know what the i in wif means.)
> 
> I've got the command 
>   %wif jpegtran -rotate 90 -copy all -outfile %p_tmp %p; then mv %p_tmp 
> %p;else
> rm %p_tmp;fi
> now.
> But the program jpegtran seems to work only for jpeg. Mostly this is enough, 
> but
> I would be glad to have such command also for png, gif ...
> 
> Does somebody have a line for such converting (e.g. via convert from
> ImageMagick?)?
> 

The "i" is part of the "if".  The command starts right after the "w".

Anyways, try this:

%wif convert -rotate 90 %p .tmp_%p; then mv .tmp_%p %p; else rm .tmp_%p;fi

(Unfortunately, adding _tmp to the end of the temporary file doesn't
work, as imagemagick tries to deduce the file format from the extension
and doesn't know what to do with it).

Martin


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-24 Thread Werner
Thanks for that hint

I changed now %vif to %wif and get no more annoying message-window and it works
in fullscreen-mode too. (Since I don't know what the i in wif means.)

I've got the command 
  %wif jpegtran -rotate 90 -copy all -outfile %p_tmp %p; then mv %p_tmp %p;else
rm %p_tmp;fi
now.
But the program jpegtran seems to work only for jpeg. Mostly this is enough, but
I would be glad to have such command also for png, gif ...

Does somebody have a line for such converting (e.g. via convert from
ImageMagick?)?

greetings

Werner


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple?shortcuts)

2008-10-23 Thread Martin Stolle
On Thu, Oct 23, 2008 at 07:52:42PM +, Werner wrote:
> > > Editors shortcut keys are Alt+E+[0-9]
> 
> And unfortunately this seems to not work in fullscreen mode - does it somehow?

At least for me, +1 through +9 also active the "editor"
commands, and it also works from full screen.  If you want to avoid
quitting full screen, add "%w" as the first two letters in the edit
command (this is explained in the "Help" of the Editors-preferences
pane).

Martin

> 
> 
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Geeqie-devel mailing list
> Geeqie-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geeqie-devel
> 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-23 Thread Werner
> > Editors shortcut keys are Alt+E+[0-9]

And unfortunately this seems to not work in fullscreen mode - does it somehow?


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-23 Thread Werner
Laurent MONIN <[EMAIL PROTECTED]> writes:

> - through Edit configurable menu, rotation is done through external programs 
> which will modify the original image
> 
> Editors shortcut keys are Alt+E+[0-9]

Fine. Thank you for the explanation. 
Only there always appears an annoying message-window. And I don't find a
possibility to affect that behavior.
Any hints for that?




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-23 Thread Laurent MONIN
On Thu, 23 Oct 2008 16:44:36 + (UTC)
Werner <[EMAIL PROTECTED]> wrote:

> 
> I defined shortcuts to rotate (r and l) but I want also to save the image
> rotated. Therefore would be good a simple shortcut like s, ctrl+s or shift+s.
> But it seems, geeqie can't do that, does it???
> 

Hi Werner,

 geeqie has two ways to rotate images:

- through Adjust contextual menu, it only displays the image rotated (actions 
in Adjust menu affect only the display not the original image)
- through Edit configurable menu, rotation is done through external programs 
which will modify the original image

Using Edit > Preferences > Editors, you can configure whatever you want as 
transformation programs (ie. using jpegtran).
Editors shortcut keys are Alt+E+[0-9]

Best regards,

-- 
Laurent MONIN aka Zas

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


[Geeqie-devel] rotate and save the rotated image (via simple shortcuts)

2008-10-23 Thread Werner

I defined shortcuts to rotate (r and l) but I want also to save the image
rotated. Therefore would be good a simple shortcut like s, ctrl+s or shift+s.
But it seems, geeqie can't do that, does it???


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel