varnav / exifdate2fs Goto Github PK
View Code? Open in Web Editor NEWThis tool will recursively update file timestamps to information from EXIF tag DateTimeOriginal
License: MIT License
This tool will recursively update file timestamps to information from EXIF tag DateTimeOriginal
License: MIT License
Hi, Thanks for your code- it looks useful, however, can you sanitise your windows exe version, please? My PC is reporting this:
./ExifDate2FS.exe
Trojan:Win32/Wacatac.DB!ml
file: ExifDate2FS.exe
Cheers
Peter
It would be great to support videos as well. :)
They don't have exif data, but they do have metadata:
❯ ffmpeg -i video.MOV -dump
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.MOV':
Metadata:
major_brand : qt
minor_version : 0
compatible_brands: qt
creation_time : 2021-12-24T19:21:40.000000Z
Using ExifDate2FS on a Mac with Apple Silicon I get follwoing error when processing heic-files.
/tmp/IMG_3684.HEIC processing error: hdlr
Digging around exifread>=2.3.2 is specified in the requirements.txt and that results in version 3 to be installed which seems having issues, see #exif-py/issues/160
Solution from aapris in that issue is a simple
pip install "exifread<3"
Creating this as reference for others.
Breaks with the below error.
Traceback (most recent call last): File "/usr/local/bin/exifdate2fs", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/exifdate2fs/__init__.py", line 74, in main time_object = time.strptime(datetime_original, '%Y:%m:%d %H:%M:%S') File "/usr/lib/python3.8/_strptime.py", line 562, in _strptime_time tt = _strptime(data_string, format)[0] File "/usr/lib/python3.8/_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '2007:03:08 15:57: 7' does not match format '%Y:%m:%d %H:%M:%S'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.