i am new to coding and i actually learned something here, thanks.
@pavelow364 жыл бұрын
cool. wouldn't it be better to get the actual EXIF metadata versus just the file metadata? as copying the files from different folders may change the file metadata but not the EXIF data. also would be better to work on a backup of the images first just for safety as photos are irrepleacable. just my 2c :) cool channel man.
@scottfraser41652 жыл бұрын
Thank you very useful, not new to coding but new to python and hoping to use it on synology nas. 1.Any ideas on how it would handle duplicate timestamps? - i.e. burst images or duplicated images? or can you add some form of error loop in to deal with this? 2.Is there a way of accessing the Exif Data instead of Created/Modified? Alot of my files have been "modified" and moved over the years so these dates are bs, while date taken under exif is much better. (ideally I want to try Date Taken / Media Created if nulls then use smallest of Created Date / Modified Date.
@jonathans.8650 Жыл бұрын
Thank you! 😍 Can I just add to the final file name the name of the camera from the metadata?
@jsovercomer2 жыл бұрын
After applying the same codes, the value returned from unix2datetime for modification time of my image is "2022-03-06 02.56.26", however in the windows pop-up window of properties, that image is modified on "Saturday, March 5, 2022, 8:56:26 PM", so could you please help why there is discrepancy between these two times?
@MrPragmaticLee3 жыл бұрын
Excellent tutorial & video, but that background "music" has got to be the most annoying thing I have every heard.
@xitech52834 жыл бұрын
so cool, i want to learn phyton
@TucaniUrbani4 жыл бұрын
Great!
@melg.6194 жыл бұрын
Is it possible to omit the else statement unless there is an instance where mtime > ctime?
@huhulili90214 жыл бұрын
You could omit the if/else statement by saying date_created=ctime*(mtime > ctime) +mtime*(ctime>ctime) Or smth to that nature, if u wanna omit the if/else statement, but in the grand scale of optimisation I highly doubt it makes a huge difference in run time.
@blue_serenade4 жыл бұрын
Hello bro, could you help me python, when I run python via CGI it run well in windows, but in ubuntu it won't work, what settings usually so that I can run python via CGI?
@zetazephyr4 жыл бұрын
Hey bro, make sure you install the correct version of Python. I was using Python 3.7 in my example but any Python 3.x should work. When calling the interpreter from the CGI, you usually have to write "python3" unless you created an alias for it. Hope that helps! See: askubuntu.com/questions/320996/how-to-make-python-program-command-execute-python-3
@XenolVlatriX3 жыл бұрын
more coding videos pls!
@peen2k4 жыл бұрын
This tutorial is really helpfull and exactly what i was looking for! Thank you for that! However, when i run the script is only renames the .py file in my folder to the YYYYMMDD and leaves the .jpg's untouched and i can't really figure out why😢 .. Any sugestions? Thank you in advance!
@zetazephyr4 жыл бұрын
Try checking for the file extension of ".jpg" as well as ".JPG" in the if statement to target the file type you're after, note that file extensions are case sensitive. Hope this helps! :)
@peen2k4 жыл бұрын
@@zetazephyr Works like a charm now! Thank you! :)
@liveworsei56813 жыл бұрын
@@peen2k or just set the file_extension to lower then check