[KPhotoAlbum] Importing Pictures from Camera

Joe josephj at main.nc.us
Wed Nov 10 20:02:52 GMT 2010


On 11/09/2010 06:19 PM, jedd wrote:
>   Hi Joe,
>
>   Ahh .. of course, I see I misunderstood the granularity question.
>
>> These tools look very useful. I looked them up (and a few like them) on
>> the web, but when I went to my package manager, they were either in a
>> library or not there at all.
>   "
> exiflist V2.4.9 - 05-December-2003
> For usage information enter 'exiflist -h'
> This program is licensed to: Not Licensed
> Copyright (c) 2000-2003 Hugh Maxwell Thomas. All rights reserved.
> Web  : http://www.hugsan.com/
>   "
>
>   I think the full set I have includes:
>   exifcopy  exifdate  exifedit  exiffile  exifkey  exiflist
>
>   It looks like hugsan.com is now just parked, and full of adverts.
>
>   It'd be nice to find out that Hugh decided to release his source
>   as GPL .. but I think if he had, these utilities would have popped
>   up in Debian by now - and, like you, I've not found anything quite
>   as effective as them the past few years.  I do occasionally ponder
>   writing my own using some exif libraries under python - good learning
>   experience and all that.
>
>   On Hugh's linkedin page, he cites two URL's - including one to:
>   http://www.hugsan.com/EXIFutils/ - which is still active.
>
>   You might want to try those - it suggests that they're similarly
>   limited to the versions I have - namely you can't process more
>   than 10 files in a single command.  This has never been a
>   problem for me thanks to bash's 'for ; do ; done' feature.  ;)
>
>   If they're a bit more restricted, let me know and we can work
>   out some way of zapping across the 2.4.9 version I have.
>
>   My 'exif-panofilefix.sh' script is very simple, but a good example
>   of the use of these tools:
>
> #!/bin/bash
> if [ "$1" == ""  -o  "$2" == "" ]
>          then
>          echo "Usage: " `basename $0` " SOURCE.jpg DESTINATION.jpg"
>          echo "       Copies EXIF data from SOURCE to DESTINATION,"
>          echo "       advances DESTINATION.jpg's TIME by 5 seconds,"
>          echo "       and finally runs exiffile -t against DESTINATION."
>          exit
> fi
> echo Copying exif data from \"$1\" to \"$2\"
> exifcopy -bo "$1" "$2">  /dev/null
> echo Advancing timestamp on \"$2\" by 5 seconds
> exifdate -a "0000:00:00 00:00:05" "$2">  /dev/null
> echo Setting file time for \"$2\"
> exiffile -t "$2">  /dev/null
>
>
>   Similarly simple is my 'fix-exif-and-orientation.sh' script:
>          for i in *jpg *JPG
>          do
>                  jpegexiforient -n -1 "$i"
>                  exifedit -b -s "$i"
>                  exiffile -t "$i"
>                  chmod 664 "$i"
>          done
>
>   Happily, jpegexiforient is a freeby - part of the libjpeg-progs
>   package on Debian.  I find a lossless rotate to the 'right'
>   way manually of my photos followed by this means that the
>   image will always appear the right way up, no matter what tool
>   I use to display it in the future.  Plus it appeals to my OCD-ish
>   sense of neatness.
>
>   cheers,
>   Jedd.
>
> On 11/09/2010 06:19 PM, jedd wrote:
>>   Hi Joe,
>>
>>   Ahh .. of course, I see I misunderstood the granularity question.
>>
>>> These tools look very useful. I looked them up (and a few like them) on
>>> the web, but when I went to my package manager, they were either in a
>>> library or not there at all.
>>   "
>> exiflist V2.4.9 - 05-December-2003
>> For usage information enter 'exiflist -h'
>> This program is licensed to: Not Licensed
>> Copyright (c) 2000-2003 Hugh Maxwell Thomas. All rights reserved.
>> Web  : http://www.hugsan.com/
>>   "
>>
>>   I think the full set I have includes:
>>   exifcopy  exifdate  exifedit  exiffile  exifkey  exiflist
>>
>>   It looks like hugsan.com is now just parked, and full of adverts.
>>
>>   It'd be nice to find out that Hugh decided to release his source
>>   as GPL .. but I think if he had, these utilities would have popped
>>   up in Debian by now - and, like you, I've not found anything quite
>>   as effective as them the past few years.  I do occasionally ponder
>>   writing my own using some exif libraries under python - good learning
>>   experience and all that.
>>
>>   On Hugh's linkedin page, he cites two URL's - including one to:
>>   http://www.hugsan.com/EXIFutils/ - which is still active.
>>
>>   You might want to try those - it suggests that they're similarly
>>   limited to the versions I have - namely you can't process more
>>   than 10 files in a single command.  This has never been a
>>   problem for me thanks to bash's 'for ; do ; done' feature.  ;)
>>
>>   If they're a bit more restricted, let me know and we can work
>>   out some way of zapping across the 2.4.9 version I have.
>>
>>   My 'exif-panofilefix.sh' script is very simple, but a good example
>>   of the use of these tools:
>>
>> #!/bin/bash
>> if [ "$1" == ""  -o  "$2" == "" ]
>>          then
>>          echo "Usage: " `basename $0` " SOURCE.jpg DESTINATION.jpg"
>>          echo "       Copies EXIF data from SOURCE to DESTINATION,"
>>          echo "       advances DESTINATION.jpg's TIME by 5 seconds,"
>>          echo "       and finally runs exiffile -t against DESTINATION."
>>          exit
>> fi
>> echo Copying exif data from \"$1\" to \"$2\"
>> exifcopy -bo "$1" "$2">  /dev/null
>> echo Advancing timestamp on \"$2\" by 5 seconds
>> exifdate -a "0000:00:00 00:00:05" "$2">  /dev/null
>> echo Setting file time for \"$2\"
>> exiffile -t "$2">  /dev/null
>>
>>
>>   Similarly simple is my 'fix-exif-and-orientation.sh' script:
>>          for i in *jpg *JPG
>>          do
>>                  jpegexiforient -n -1 "$i"
>>                  exifedit -b -s "$i"
>>                  exiffile -t "$i"
>>                  chmod 664 "$i"
>>          done
>>
>>   Happily, jpegexiforient is a freeby - part of the libjpeg-progs
>>   package on Debian.  I find a lossless rotate to the 'right'
>>   way manually of my photos followed by this means that the
>>   image will always appear the right way up, no matter what tool
>>   I use to display it in the future.  Plus it appeals to my OCD-ish
>>   sense of neatness.
>>
>>   cheers,
>>   Jedd.
>>
> Thanks a lot.  I'll study your reply and see how far I get with it.
>
> I think a bit of "ocd" is a prerequisite for being a good programmer ;)
> And it really helps even being a successful user.
>
> I really don't like having almost half of my pictures displaying 
> sideways, but I left them that way because I didn't want to "jpeg" 
> them again and lose anything.
>
> Once I figure out how to use these lossless transformation tools (with 
> your help above), I'll get them all right side up!
>
> Joe




More information about the Kphotoalbum mailing list