1000 FAQ, 500 tutoriales y vídeos explicativos. ¡Aquí sólo hay soluciones!
Importar las fotos de Google a kDrive
Esta guía detalla cómo importar tus fotos desde Google Photos (https://photos.google.com/) a kDrive Infomaniak.
1. Exportar tus fotos de Google
Para recuperar en el disco duro de tu ordenador todas las fotos almacenadas en Google Photos, debes utilizar el servicio Google Takeout. Este te permite, entre otras cosas, elegir qué álbumes recuperar si deseas proceder por etapas:
- Inicia sesión en Google Takeout.
- Deselecciona todos los productos para conservar solo Google Photos:
- Si es necesario, desmarque los álbumes que no deseas exportar:
- Pase al siguiente paso al final de la página:
- Configure la exportación por archivos ZIP:
- Haga clic en la parte inferior en el botón “Crear una exportación” para iniciar la exportación.
- Espere (varias horas o incluso varios días) hasta recibir un correo electrónico con los enlaces de exportación en ZIP.
- Descargue y descomprime el contenido en tu ordenador:
- Limpie y combine, si es necesario, sus diferentes carpetas de fotos.
2. Corregir las fechas de las fotos exportadas…
Durante la exportación, las fechas de creación de los archivos se modifican y se reemplazan por la fecha de exportación en lugar de la fecha original de captura. Por lo tanto, es necesario corregir las fechas mediante un script adecuado.
Este es un script para usuarios avanzados que permite restaurar los datos correctos de sus archivos a partir de la información EXIF (se recomienda procesar lotes de 7000-8000 fotos como máximo para evitar un bloqueo):
… en macOS
- Descargue ExifTool https://exiftool.org/index.html (Paquete macOS).
- Instale la aplicación permitiendo su apertura de antemano si es necesario:
- Abra Script Editor (ubicado en su carpeta Aplicaciones > Utilidades):
- Haga clic en Nuevo documento.
- Pegue y pegue el largo script propuesto a continuación en la ventana de Script Editor.
- Haga clic en Ejecutar para iniciar el script, se abrirá una ventana:
- Selecciona la carpeta a analizar.
- Deje luego que el script se ejecute, modificará las fechas o escribirá los errores en un archivo
errors.txt
en el escritorio.
El script para copiar y pegar completamente:
-- replace file date with EXIF creation date or date from name after the first dash -
tell application "Finder"
set FolderPath to choose folder with prompt "Select the folder containing the files to update"
my processFolder(FolderPath)
end tell
on processFolder(aFolder)
tell application "Finder"
-- process files:
set fileList to files of aFolder
repeat with eachFile in fileList
-- process a single file
set theFile to eachFile
set AppleScript's text item delimiters to {""}
set fileName to name of eachFile --get the file name
set eachFile to eachFile as string --file path
set hasDate to true --initialize date found flag
try
--get date if available
set photoDate to do shell script "/usr/local/bin/exiftool -DateTimeOriginal " & quoted form of POSIX path of eachFile
if photoDate is "" then set photoDate to do shell script "/usr/local/bin/exiftool -CreationDate " & quoted form of POSIX path of eachFile
if photoDate is "" then set photoDate to do shell script "/usr/local/bin/exiftool -CreateDate " & quoted form of POSIX path of eachFile
if photoDate is "" then
set hasDate to false --check if date was found
end if
on error
set hasDate to false -- error retrieving date
set photoDate to ""
end try
if length of photoDate > 20 then
--format extracted date
set x to (length of photoDate) - 33
set OriginalDate to text -x thru -1 of photoDate
set formattedDate to text 1 thru 5 of OriginalDate
set theYear to formattedDate
set formattedDate to formattedDate & text 7 thru 8 of OriginalDate
set theMonth to text 7 thru 8 of OriginalDate
set formattedDate to formattedDate & text 10 thru 11 of OriginalDate
set theDay to text 10 thru 11 of OriginalDate
set formattedDate to formattedDate & text 13 thru 14 of OriginalDate
set theHour to text 13 thru 14 of OriginalDate
set formattedDate to formattedDate & text 16 thru 17 of OriginalDate
set theMinute to text 16 thru 17 of OriginalDate
set formattedDate to formattedDate & "." & text 19 thru 20 of OriginalDate
set theSecond to text 19 thru 20 of OriginalDate
set newName to theYear & "-" & theMonth & "-" & theDay & " " & theHour & "." & theMinute & "." & theSecond
set testValue to formattedDate as string --check if found date is 000
if testValue is " 000000000000.00" then
set hasDate to false
else
-- set file date to original EXIF date and write to log
do shell script "touch -t " & formattedDate & " " & quoted form of POSIX path of eachFile
set logFile to open for access ((path to desktop folder as text) & "Date Found.txt") as text with write permission
write "Original date found for file: " & OriginalDate & " " & eachFile & return to logFile starting at eof
close access logFile
end if
end if
if hasDate is false then
-- get date from file name after first dash
set nb to ""
set nameDate to ""
set fileName to fileName as string
set savedDelimiters to AppleScript's text item delimiters --save delimiters
set AppleScript's text item delimiters to {"-"} --split on "-"
set nb to offset of "-" in fileName
if nb is not 0 then
set AppleScript's text item delimiters to savedDelimiters --restore delimiters
set nameDate to characters (nb + 1) thru (nb + 8) of fileName as string
set nameDate to nameDate & "1200.00"
set cmd1 to "/usr/local/bin/exiftool -datetimeoriginal=" & nameDate & " " & quoted form of POSIX path of eachFile
set cmd2 to "/usr/local/bin/exiftool -createdate=" & nameDate & " " & quoted form of POSIX path of eachFile
end if
try
-- write date from name to EXIF
do shell script cmd1
do shell script cmd2
do shell script "touch -t " & nameDate & " " & quoted form of POSIX path of eachFile
do shell script "rm " & quoted form of POSIX path of (eachFile & "_original")
on error
-- if date from name is invalid, log the error
set logFile to open for access ((path to desktop folder as text) & "Date Error.txt") as text with write permission
write "No valid date found in file name: " & eachFile & return to logFile starting at eof
close access logFile
end try
end if
end repeat
-- process folders:
set folderList to folders of aFolder
repeat with eachSubfolder in folderList
-- process a subfolder
my processFolder(eachSubfolder)
end repeat
end tell
end processFolder
tell application "Finder"
display dialog "Done! All files processed." buttons {"Close"}
end tell
… en Windows
- Descargue ExifTool https://exiftool.org/index.html (ejecutable Windows)
- Colóquelo en una carpeta accesible (por ejemplo
C:\ExifTool
). - Renombra
exiftool(-k).exe
aexiftool.exe
. - Tome nota de su ruta (por ejemplo
C:\ExifTool\exiftool.exe
). - Pegue y pegue el largo script propuesto a continuación en un archivo de texto tipo bloc de notas en su computadora.
- Modifique, si es necesario, la ruta especificada en el archivo con la que anotó en el punto 4.
- Guárdelo con la extensión
.ps1
, por ejemploUpdateExifDates.ps1
. - Haga clic derecho en el archivo
.ps1
para ejecutarlo con PowerShell (un entorno de intérprete de comandos y escritura de scripts, preinstalado en las versiones modernas de Windows). - Seleccione la carpeta para analizar.
- Deje que el script se ejecute, modificará las fechas o escribirá los errores en un archivo
DateError.txt
en el escritorio.
PowerShell puede bloquear los scripts. Para permitir su ejecución (si es necesario), abra PowerShell como administrador y escriba Set-ExecutionPolicy RemoteSigned
.
El script para copiar y pegar completamente:
# === Configuration ===
$exifToolPath = "C:\ExifTool\exiftool.exe"
$desktop = [Environment]::GetFolderPath("Desktop")
$logFound = Join-Path $desktop "DateFound.txt"
$logError = Join-Path $desktop "DateError.txt"
# === Folder Selection Dialog ===
$folder = (New-Object -ComObject Shell.Application).BrowseForFolder(0, "Select the folder to process", 0).Self.Path
function Process-Folder {
param ([string]$path)
Get-ChildItem -Path $path -Recurse -File | ForEach-Object {
$file = $_
$filePath = $file.FullName
$fileName = $file.Name
$hasDate = $true
# Try reading EXIF date
$photoDate = & $exifToolPath -DateTimeOriginal "$filePath"
if (-not $photoDate) { $photoDate = & $exifToolPath -CreateDate "$filePath" }
if (-not $photoDate) { $hasDate = $false }
if ($hasDate -and $photoDate -match "\d{4}:\d{2}:\d{2} \d{2}:\d{2}:\d{2}") {
$dateString = $matches[0] -replace "[:]", "", 1, 2 -replace "[:]", "", 1, 1 -replace " ", ""
$formattedDate = $dateString.Substring(0, 12) + "." + $dateString.Substring(12, 2)
try {
$newDate = [datetime]::ParseExact($photoDate.Trim(), "yyyy:MM:dd HH:mm:ss", $null)
[System.IO.File]::SetCreationTime($filePath, $newDate)
[System.IO.File]::SetLastWriteTime($filePath, $newDate)
Add-Content -Path $logFound -Value "EXIF date set for: $fileName → $photoDate"
} catch {
$hasDate = $false
}
}
if (-not $hasDate) {
if ($fileName -match "-(\d{8})") {
$nameDate = $matches[1] + "1200.00"
try {
& $exifToolPath "-datetimeoriginal=$nameDate" "$filePath"
& $exifToolPath "-createdate=$nameDate" "$filePath"
$touchDate = $nameDate.Substring(0,12) + "." + $nameDate.Substring(12,2)
$newDate = [datetime]::ParseExact($touchDate, "yyyyMMddHHmm.ss", $null)
[System.IO.File]::SetCreationTime($filePath, $newDate)
[System.IO.File]::SetLastWriteTime($filePath, $newDate)
Add-Content -Path $logFound -Value "Date from filename set for: $fileName → $newDate"
} catch {
Add-Content -Path $logError -Value "Invalid date in filename: $fileName"
}
} else {
Add-Content -Path $logError -Value "No valid date found for: $fileName"
}
}
}
}
# Execute processing
Process-Folder -path $folder
[System.Windows.Forms.MessageBox]::Show("Done! All files processed.")
3. Importar las fotos a kDrive
Una vez que sus fotos estén listas, si su número no es demasiado grande (unos pocos miles de elementos) y su conexión a Internet es adecuada, simplemente puede abrir la aplicación web kDrive (servicio en línea kdrive.infomaniak.com) y elegir importar la carpeta que contiene sus fotos al lugar deseado:
- Haga clic aquí para acceder a la app Web kDrive Infomaniak (servicio en línea kdrive.infomaniak.com).
- Navega hasta el lugar donde se alojarán tus fotos.
- Haga clic en el botón Nuevo en la esquina superior izquierda.
- Haga clic en Importar una carpeta.
- Seleccione la carpeta que contiene sus fotos en su computadora.
- Espere hasta que la importación de tus datos esté completa (el registro de actividades se desplaza en la esquina inferior derecha):
Si en cambio sincronizas tus datos usando la app de escritorio, simplemente coloca tus fotos en la estructura de carpetas de tu carpeta kDrive en la computadora. La sincronización comenzará y tus fotos se enviarán de manera segura a los servidores Infomaniak.
4. Acceder a las fotos desde sus dispositivos
Ahora puede acceder a sus fotos en sus diferentes dispositivos conectados a kDrive (hasta que se sincronicen si se trata de la aplicación de escritorio kDrive).
En la app Web kDrive (servicio en línea kdrive.infomaniak.com), puedes modificar la presentación para visualizar mejor tus fotos con una vista ampliada de las miniaturas: