3

My goal: To download 131 JPEGs and save them in a file name format that is relative to the date/time format rather than their file name.

I have already tried things that involve changing the files' names after they have already been downloaded. However, these methods do not work because it seems like exif data is not being kept. For example: jhead -n%Y%m%d-%H%M%S *.jpg just returns a bunch of errors saying:

Possible new names for for '{filename}.jpg' already exist
File '{filename}.jpg' contains no exif date stamp.  Using file date

Usually, as in this case, I wind up with less files than I started out with.

So is there some command I can pass to wget instead? I have already tried the --timestamp option with no success. (The man page is not to clear about what that does.)

  • EXIF data is kept inside the file. The filesystem has no say on the matter. – user1686 Oct 27 '13 at 1:01
  • Oh, ok. Perhaps there's no way to solve it, then, unless there's a way to do it without using EXIF data. – Richard Oct 27 '13 at 1:09
  • Why not use the files' creation date and a renaming software that sorts by date created. – Doktoro Reichard Oct 27 '13 at 1:23
  • As I stated in my question: I tried that. – Richard Oct 27 '13 at 1:41
  • 1
    @searchfgold6789: Your question states you tried the EXIF timestamp embedded in the photo (which some websites simply remove to reduce file size, or never add in the first place), not the same as timestamps of the file itself. – user1686 Oct 27 '13 at 2:53
8
wget url -O `date +"%Y%m%d-%H%M%S"`.jpg

Don't really know how to change the download URLs, that's something you have to figure out yourself.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.