you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 3 years ago (3 children)

If you're on Linux exiftool can get the creation date for you: exiftool -p '$CreateDate' -d '%Y-%m-%d' FILENAME, and you could run tgat in a loop over your files, something like:

mkdir -p out
for f in *.jpg
do
createdate=$(exiftool -p '$CreateDate' -d '%Y-%m-%d' "${f}")
cp -p "${f}" "out/${createdate} - ${f}"
done

Obviously don't justbgo running code some stranger just posted on the internet, especially as I haven't tested it, but that should copy images from the current directory to a subdirectory called 'out' with the correct filenames.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 3 years ago (2 children)

    ok I think I finally need to ask

    What the fuck is up with the html code? Ive seen this in a lot of posts and it just throws me every time.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 3 years ago

    I don't see any HTML when I look at that comment from Lemmy, but kbin seems to make a real mess of rendering code blocks. Basically that bit had a few lines of code they could yse to do what they wanted.

  • source
  • parent