Re: [Geeqie-devel] 2 things I miss from gqview

2015-11-18 Thread Ian Zimmerman
On 2015-11-18 13:32 -0500, Rodney D. Myers wrote:

> Does the script work within geeqie?

As I said, it is a command line program.  I run it from a terminal
window, usually on the same virtual desktop as geeqie when geeqie is
running at all.

It may be possible to set it up as one of the helper programs for
geeqie, but I have not done so, and I don't know if geeqie would
immediately notice the change of name and redisplay its lists.

It is written in python using the pyexiv2 library.  Let me know if you
still want it.

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.

--
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] 2 things I miss from gqview

2015-11-18 Thread Rodney D. Myers
On Wed, 18 Nov 2015 09:06:05 -0800
Ian Zimmerman  wrote:

> On 2015-11-18 06:37 -0500, Rodney D. Myers wrote:
> 
> > 2. the ability to auto-rename files on the fly. useful for
> > people/programs name their stuff with simple names
> 
> I have a nifty script to do this from the command line, if you're
> interested.  It renames each file according to its EXIF timestamp.  If
> you need some slightly more complex name you can then use
> e.g. prename(1).  IMO this is the Right Way (TM), and not adding this
> functionality to geeqie.
> 

Does the script work within geeqie?

Sure, I'd like a copy

-- 
Rodney D. Myers  - kg6anx

They that can give up essential liberty to obtain a
little temporary safety deserve neither liberty nor safety.
        Ben Franklin - 1759


signature.asc
Description: PGP signature
--
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] 2 things I miss from gqview

2015-11-18 Thread John Stoffel

I just use:

   jhead -n"%Y%m%d-%H%M%S"

on image files, if they have proper times.  Such as from cameras, etc.


--
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


[Geeqie-devel] New old features (Was: 2 things I miss from gqview)

2015-11-18 Thread Klaus Ethgen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi,

Am Mi den 18. Nov 2015 um 12:37 schrieb Rodney D. Myers:
> 1. the ability to rotate images, and have it write the image as a
> correctly identified image file. I get sent multiple images that
> worker claims are not valid images. I just rotate left, then back to
> get the file header corrected
> 
> 2. the ability to auto-rename files on the fly. useful for
> people/programs name their stuff with simple names

I recently thought of some thinks that was partly available in gqview
but isn't in geeqie and partly new.

- - Rename and copy method that is aware of metafiles (thumbnails,
  metadata, ...)
  We had that in gqview but when I move/rename files in geeqie, I loose
  all metadata. (I usually like to have the metadata in .metadata
  directory.)
  I think about also adding Lua methods for that.
- - Sorting by similarity, that is something new and I don't currently
  have an idea how to do it. I want to have a visible sorting by
  similarity.
  Likewise as before I want to implement some Lua hooks to make it easy
  to implement more sorting ways.
- - Pattern aware Rename as we had in old gqview. That should be more
  powerful to allow using image metadata. As before, with Lua
  integration.
- - Give a better way to use Lua at all on userside. I have no idea about
  how to do it but  it might be needed to encourage users to use it.

Regards
   Klaus
- -- 
Klaus Ethgen  http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16   Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQGcBAEBCgAGBQJWTNKOAAoJEKZ8CrGAGfasWbYL/0CZG4ovsWeoVS5VlVNkpVvr
MXFsEQS3K6frTx9NCZtDYOvXCK7cuCB8XpUFQVIGzAXGj6eFBlXCBUV1mSnNjNnY
cl8cln/hWuBbfzbCR1OBWXSgy6tuNzUoqIX+AFFSIFfK7HL9X5pb/boL6Xgufni6
ib8kMpVJOVEl9rMk1z/lUw3sPWPkPvCGbCu3yxcY66nmksKFIlgkzO5NrgMpOfy+
YDKURLzN4sCper1YgeK4keMJb7CAi4HigSCDZJcGYHsTU3dST+n0P+5Ye7F5R1lp
6RCtXqwdbYbnjtKGk68/ZDagbZfTTyTu03+xwZtcsTqcFsdd+wV9g529ouLQm3Ip
M8x4+30EqnORaoM7NcCBladuP4L2Zlwu6narVQjUP/nWto9tnOaOmO32yYcoMWCb
LSANhrQrmgWNBaRCYKRZp74i8PW00H7t0up3GAJ5B0rpnP99ceZhEtgJcwAsN9jM
AzxKBl0GX+ax0B50RcltyO6SVXmSu0JEuCCLXMnMwA==
=qARQ
-END PGP SIGNATURE-

--
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


[Geeqie-devel] 2 things I miss from gqview

2015-11-18 Thread Rodney D. Myers
2 things I miss from gqview

1. the ability to rotate images, and have it write the image as a
correctly identified image file. I get sent multiple images that
worker claims are not valid images. I just rotate left, then back to
get the file header corrected

2. the ability to auto-rename files on the fly. useful for
people/programs name their stuff with simple names


-- 
Rodney D. Myers  - kg6anx

They that can give up essential liberty to obtain a
little temporary safety deserve neither liberty nor safety.
        Ben Franklin - 1759


signature.asc
Description: PGP signature
--
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel


Re: [Geeqie-devel] 2 things I miss from gqview

2015-11-18 Thread Roger
> On Wed, Nov 18, 2015 at 11:01:05AM -0800, Ian Zimmerman wrote:
>On 2015-11-18 13:32 -0500, Rodney D. Myers wrote:
>
>> Does the script work within geeqie?
>
>As I said, it is a command line program.  I run it from a terminal
>window, usually on the same virtual desktop as geeqie when geeqie is
>running at all.
>
>It may be possible to set it up as one of the helper programs for
>geeqie, but I have not done so, and I don't know if geeqie would
>immediately notice the change of name and redisplay its lists.
>
>It is written in python using the pyexiv2 library.  Let me know if you
>still want it.

I do most of my basic image file manipulations via command line as well.

Items such as rotating photos according to EXIF information, to renaming the 
file name more accordingly.  Simply and basic tasks should not be made more 
difficult by using graphical interfaces.  These basic tasks can be completed 
far more exponentially faster and among many more files than using a graphical 
interface.

I use the following within a Bash script function for processing my photos 
downloaded from my USB connected camera using GPhoto.

# Change upper to lower case filenames using mv & tr.   


 
printf "Convert upper to lower case file names...\n"


 



 
for photo in ${TMPDIR}/*; do
mv $photo `echo $photo | tr [:upper:] [:lower:]` >>$LOGFILE 2>&1
done

# autorotate images according to the exif-flags
# also set modification time to exif-date/time
# exit codes of jhead: 0=OK, 1=Modified
#jhead -autorot -ft *.JPG >> $ERRORLOG

# 0x0112Orientation   left - bottom -> needs 270 deg rotation
# "top - left" -> is up right, no rotation needed.
## jhead -cmd 'jpegtran -rotate 270 -outfile  ' *.JPG

# auto rotate images in place according to orientation exif data.
# requires: media-libs/jpeg /usr/bin/exifautotran
printf "  auto rotating images\n"
exifautotran $TMPDIR/*.jpg >>$LOGFILE 2>&1

# Set time stamp according to time exif data
# requires: media-gfx/jhead /usr/bin/jhead
printf "  setting file time to image exif time\n"
jhead -ft ${TMPDIR}/*.jpg >>$LOGFILE 2>&1

# jhead returns "1" in case of unsuccessful modification (e.g. rotation)
if [ "$?" -lt "0" ]; then
error "Error in jhead setting timestamp on file, code: $?"
fi


-- 
Roger
http://rogerx.freeshell.org/

--
___
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel