> 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

    # 0x0112    Orientation   left - bottom -> needs 270 deg rotation
    # "top - left" -> is up right, no rotation needed.
    ## jhead -cmd 'jpegtran -rotate 270 -outfile &o &i' *.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

Reply via email to