如果您想從 Google Photos 遷移到其他平台/解決方案,匯出所有照片的最快選擇是 Google Takeout 嗎?
但是當你下載它時,你會發現自己的 zip 中有數百個小資料夾,裡面有奇怪的.json
檔案?如果您只想擁有一個包含所有照片(按時間順序排列)的資料夾怎麼辦?複製所有這些祝你好運嗎?
這個腳本就是這樣做的 - 它為您組織和清理您的外賣?
它將獲取所有這些資料夾,找到其中的所有照片,正確設定它們和file last modified
,然後將其放入大資料夾(或除以一個月的資料夾)中?
從v3.2.0
開始, gpth
是互動的? - 您不需要輸入任何複雜的參數 - 只需獲取您的外賣,運行 gpth,然後按照提示的說明進行操作即可?
如果您想在 Synology 上執行它、互動有問題或只是喜歡 cmd,請參閱「使用 cmd 手動執行」。否則,只需:
“取消全選”,然後只選擇 Google 相冊
注意:保留原始的拉鍊,如果出現問題,您可能需要它們
gpth
.exe
即可? - 告訴windoza Defender它是安全的,並按照提示進行操作?cd
到包含下載的可執行檔的資料夾並執行它: # if you have Mac with M1/M2 chip, you need to enable x86 emulation
# otherwise, just skip it
softwareupdate --install-rosetta
cd Downloads # probably
# add execute permission for file
chmod +x gpth-macos # or gpth-linux
# tell MacOS Gatekeeper to not worry
xattr -r -d com.apple.quarantine gpth-macos
# run it ?
./gpth-macos # or ./gpth-linux
# follow prompted instructions ?
有趣的事實: gpth
預設會移動檔案 - 所以如果中途出現任何問題,請再次重新匯出 zip
exiftool
將它們插入到任何地方,這樣你就不會浪費它們的創建時間 # cd to folder where you downloaded exiftool
cd Downloads
# run it on your output folder:
# (the '-r' means "run on all files/in sub-folders" aka recursively)
# (Make sure you didn't change file modify dates aka didn't do anything with the files after running gpth
exiftool -overwrite_original -r -if ' not defined DateTimeOriginal ' -P " -AllDates<FileModifyDate " " your/output/folder/ALL_PHOTOS/ "
完畢!欣賞你的照片!
如果出現以下情況,您可能仍需要此模式:
在這種情況下:
# psst: in windoza cmd, you can just drag and drop files/folders to type them in
# 1. change working directory to where gpth.exe is:
cd Downloads # Most probably
# run it, selecting input and output folders with options like this:
# (you can try to drag and drop them)
gpth.exe --input " Downloadsyouinputfolder " --output " C:someotherlocation " --albums " shortcut "
# select which album solution you like - see --help for all of them
# remember to use "" !
# ssh/whatever to where you're running it
cd Downloads # folder with gpth
chmod +x gpth # add execute permission
# tell MacOS Gatekeeper to not worry
xattr -r -d com.apple.quarantine gpth-macos
./gpth --input " /some/input/folder " --output " other/output/folder " --albums " shortcut "
# select which album solution you like - see --help for all of them
您可以透過執行gpth --help
檢查所有 cmd 標誌 - 例如--divide-to-dates
標誌
我花了很多時間修復錯誤並使這項工作穩定? - 會非常感謝任何捐款嗎?
(99% 的情況下),如果您在 Android 中移動某些文件,它們的建立和修改時間將重設為當前時間。
「Simple Gallery」應用程式在移動和複製時通常會保留原始檔案建立時間(但我不保證)。它也很酷 - 看看:https://github.com/SimpleMobileTools/Simple-Gallery
我強烈建議您使用 Syncthing 跨裝置同步照片和檔案。它透過您本地的 Wi-Fi 實現這一點,因此您不依賴任何服務或網路連線。它還將保留原始文件創建日期和元數據,因此它解決了我之前提到的 Android 問題。
Immich 的目標是完全成熟的 GPhotos 替代品 - 它仍在開發中,但看起來已經很棒了!
與 Photoprism 相同,不過這個開發時間更長(可能更成熟)
如果您想要更集中但又自架的東西,Nextcloud 是一個不錯的選擇,但它的照片處理方法仍然不完美。 (並且需要搭建自己的伺服器)
我使用這個工具將我的筆記匯出到 Markdown - 然後你可以使用任何你喜歡的 Markdown 編輯器來編輯它們:)
https://github.com/vHanda/google-keep-exporter
是的,整個事情都用 Dart 重寫了,現在它更加穩定和更快。如果您出於某種原因仍然需要 Python,請查看版本/標籤中的 v2.x
.json
中的數據寫回EXIF
數據