On fre, 2011-07-15 at 12:28 -0700, Eric Gregory wrote: > On Fri, Jul 15, 2011 at 5:20 AM, Thomas Novin <[email protected]> > wrote: > On tor, 2011-07-14 at 11:20 -0700, Eric Gregory wrote: > > > > > > Hi Thomas, > > > > Any chance you could send us one of the JPGs that has this > problem? > > (Note: this mailing list doesn't allow attachments.) > > > > > Sure, the image that is pictured in the screenshot can be > downloaded > from here: > > https://xyz.pp.se/~thnov/up/IMAG0100.jpg > > Rgds > > > Great! Turns out the image stores its date in a slightly nonstandard > format. I opened a bug to add support for this format here: > http://trac.yorba.org/ticket/3850 > > I also attached the image to the ticket (which I hope is okay.) >
Ok great! Sounds like it could be an easy fix. As a temporary workaround I created a little bash-script to fix the EXIF-data. Requires the command 'exiftool'. -- #!/bin/bash # Ugly script to fix EXIF-data from photos taken with my HTC Sensation # Looks for files with name IMAG*.jpg with dates given with YYYY/MM/DD-format # and changes the ones found to YYYY:MM:DD-format. #!/bin/bash for i in `ls IMAG*.jpg`; do OLD=`exiftool $i | grep "Date/Time Original" | cut -c35-` if [[ $OLD =~ .*[0-9][0-9][0-9][0-9]/.* ]]; then NEW=`echo $OLD | sed 's/\//:/g'` echo "Fixing $i with incorrect date ($OLD to $NEW)" exiftool -P -overwrite_original_in_place -DateTimeOriginal="$NEW" $i else echo "Skipping $i with already correct date" fi done -- Rgds//Thomas _______________________________________________ Shotwell mailing list [email protected] http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell
