Hugin / generic panorama injector for immich

Last Updated or created 2026-11-17

I have a bunch of panorama’s, made with phones or my Nikon DLSR stitched with Hugin.
These are not being detected as panorama by Immich, due to missing panorama tags …
Here is my fix

./makepanorama2.sh '750_5488_resize - 750_5532_resize.jpg' --flip
Input:       750_5488_resize - 750_5532_resize.jpg
Orientation: Horizontal (normal)
Applying EXIF orientation...
Flipping image vertically...
Image size:  8712 x 846
Full panorama: 8712 x 4356
Crop:          8712 x 846
Crop top:      1755
    1 image files updated

Created: ./injected-750_5488_resize - 750_5532_resize.jpg

GPano:
[File]          ImageWidth                      : 8712
[File]          ImageHeight                     : 846
[IFD0]          Orientation                     : Rotate 180
[XMP-GPano]     ProjectionType                  : equirectangular
[XMP-GPano]     FullPanoWidthPixels             : 8712
[XMP-GPano]     FullPanoHeightPixels            : 4356
[XMP-GPano]     CroppedAreaImageWidthPixels     : 8712
[XMP-GPano]     CroppedAreaImageHeightPixels    : 846
[XMP-GPano]     CroppedAreaLeftPixels           : 0
[XMP-GPano]     CroppedAreaTopPixels            : 1755

From:

To:

Immich media fixer

Last Updated or created 2026-10-08

I’ve got a bunch of media in my library with the following issues:

  • Images : too dark (rotation can be done within Immich)
  • Videos : too dark, interlaced or rotated

I used to fix these by removing from Immich, change original media, and upload again.
Then I had to fix the date of media with missing exif dates, using touch command.

Now I have a script which is doing the following:

  • Copy the URL containing the media
  • It downloads the media using API calls
  • It downloads the metadata for dates and tags
  • I calls a second python script in which you can do the following:
    Change contrast/brightness, rotate CW or CCW, and select deinterlace when needed.
  • Write the new image or movie to a temp file
  • When exiting the editor the first called python script uploads the altered media and fixes tags and dates
  • After that some jobs are being started: Thumbnail recreation, Encoded videos, metadata and face recognition.

Takes only a few seconds to fix an asset

No code, because of some Vibe coding.
PM me if interested ..