Skip to content

Release v0.23.0-alpha4 πŸ—οΈ Work in progress πŸ—οΈ

Pre-release
Pre-release
Compare
Choose a tag to compare
@simulot simulot released this 06 Nov 21:01
· 3 commits to main since this release

New features

New command archive

This command aims is to store photos and videos into a plain folder structure. The folder structure is YYYY/YYYY-MM/files, as following:

tree .
.
β”œβ”€β”€ 2011
β”‚Β Β  └── 2011-04
β”‚Β Β      β”œβ”€β”€ 20110430.CR2
β”‚Β Β      β”œβ”€β”€ 20110430.CR2.xmp
β”‚Β Β      β”œβ”€β”€ 20110430.jpg
β”‚Β Β      β”œβ”€β”€ 20110430.jpg.xmp
β”‚Β Β      β”œβ”€β”€ IMG_2477.CR2
β”‚Β Β      β”œβ”€β”€ IMG_2477.CR2.xmp
β”‚Β Β      β”œβ”€β”€ IMG_2478.CR2
β”‚Β Β      β”œβ”€β”€ IMG_2478.CR2.xmp
β”‚Β Β      β”œβ”€β”€ IMG_2479.CR2
β”‚Β Β      └── IMG_2479.CR2.xmp
└── 2023
    β”œβ”€β”€ 2023-06
    β”‚Β Β  β”œβ”€β”€ PXL_20230607_063000139.jpg
    β”‚Β Β  └── PXL_20230607_063000139.jpg.xmp
    └── 2023-10
        β”œβ”€β”€ PXL_20231006_063029647.jpg
        β”œβ”€β”€ PXL_20231006_063029647.jpg.xmp
        β”œβ”€β”€ PXL_20231006_063851485.jpg
        └── PXL_20231006_063851485.jpg.xmp

XMP files present in the source folder are copied in the destination folder.
Google Photos takeout JSON files are translated into customized XMP files and copied in the destination folder.
Those XMP files use a custom schema to store the Google Photos metadata:

<?xpacket begin='?' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:digikam="http://www.digikam.org/ns/1.0/" xmlns:immichgo="http://ns.immich-go.com/immich-go/1.0/" x:xmptk="immich-go version:dev, commit:none, date:unknown">
  <rdf:RDF>
    <rdf:Description>
      <immichgo:ImmichGoProperties>
        <immichgo:title>This is a title</immichgo:title>
        <immichgo:DateTimeOriginal>2023-10-10T01:11:00.000-04:00</immichgo:DateTimeOriginal>
        <immichgo:trashed>False</immichgo:trashed>
        <immichgo:archived>False</immichgo:archived>
        <immichgo:fromPartner>False</immichgo:fromPartner>
        <immichgo:favorite>True</immichgo:favorite>
        <immichgo:rating>3</immichgo:rating>
        <immichgo:albums>
          <rdf:Bag>
            <rdf:Li>
              <immichgo:album>
                <immichgo:title>Vacation 2024</immichgo:title>
                <immichgo:description>Vacation 2024 hawaii and more</immichgo:description>
                <immichgo:latitude>19,49.23661N</immichgo:latitude>
                <immichgo:longitude>155,28.39525W</immichgo:longitude>
              </immichgo:album>
            </rdf:Li>
          </rdf:Bag>
        </immichgo:albums>
      </immichgo:ImmichGoProperties>
    </rdf:Description>
  </rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>

The general syntax is:

.\immich-go archive from-xxx [from-xxx flags...] --write-to-folder <destination> <source> 
The command archive --from-google-photos archives a Google Photos takeout into a folder structure

This command create a folder structure in /path/to/destination with the result of the takeout analysis.
The resulting folder structure can be re-imported into immich-go with the command upload from-google-photo path/to/archived-folder.

The command archive --from- archives a Google Photos takeout into a folder structure

Example:

.\immich-go archive from-google-photos  --include-partner  --write-to-folder /path/to/destination /path/to/takeout*.zip

Coming soon:

  • archiving an immich server into a folder.

Handling of scanned photos by Epson FastFoto

  • --manage-epson-fastfoto Manage Epson FastFoto file (default: false)

    Group scanned photos in stacks
    • Scan_0001.jpg Original photo
    • Scan_0001_a.jpg Enhanced photo, the cover of the stack
    • Scan_0001_b.jpg Back of the photo