Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Old-style JPEG compression support is not configured (.CR2) #5035

Closed
1 of 3 tasks
traktuner opened this issue Nov 14, 2023 · 11 comments
Closed
1 of 3 tasks

[BUG] Old-style JPEG compression support is not configured (.CR2) #5035

traktuner opened this issue Nov 14, 2023 · 11 comments

Comments

@traktuner
Copy link
Contributor

traktuner commented Nov 14, 2023

The bug

With a lot of assets, I get this error when generating missing thumbnails. I can click the "generate missing thumbnails" button many times, it always goes up to about 16k of "missing" thumbnails and this is the log output:

[Nest] 2376  - 11/14/2023, 11:11:33 AM   ERROR [JobService] Unable to run job handler (thumbnailGeneration/generate-jpeg-thumbnail): Error: Input file has corrupt header: source input: Old-style JPEG compression support is not configured
source input: Old-style JPEG compression support is not configured
source input: Old-style JPEG compression support is not configured
source input: Old-style JPEG compression support is not configured
source input: Old-style JPEG compression support is not configured
MissingRequired: TIFF directory is missing required "ImageLength" field
source input: Old-style JPEG compression support is not configured
tiff2vips: subsampled images not supported
[Nest] 2376  - 11/14/2023, 11:11:33 AM   ERROR [JobService] Error: Input file has corrupt header: source input: Old-style JPEG compression support is not configured
source input: Old-style JPEG compression support is not configured
source input: Old-style JPEG compression support is not configured
source input: Old-style JPEG compression support is not configured
source input: Old-style JPEG compression support is not configured
MissingRequired: TIFF directory is missing required "ImageLength" field
source input: Old-style JPEG compression support is not configured
tiff2vips: subsampled images not supported
[Nest] 2376  - 11/14/2023, 11:11:33 AM   ERROR [JobService] Object:
{
  "id": "d0823cdc-3b54-4f8c-a12a-493eeebc4be1"
}

Those are all Canon EOS 1-Dx (mark 1) images, pictures are fine and all pictures are part of an external library.

In web and mobile, those pictures have no thumbnail, also after re-running the generate thumbnail job.

Some pictures have GPS embedded, some don't, and all are .CR2 files

SAMPLE:
(I removed the sample because a contributor already downloaded and analyzed it)

The OS that Immich Server is running on

docker

Version of Immich Server

1.85.0

Version of Immich Mobile App

1.85.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

default imagenius AIO image (ghcr.io/imagegenius/immich:1.85.0) with separate typesense container.

Your .env content

not relevant

Reproduction steps

see my description above

Additional information

No response

@traktuner
Copy link
Contributor Author

traktuner commented Nov 14, 2023

Also I see some of those errors related to heic/heif:

[Nest] 850  - 11/14/2023, 12:44:25 PM   ERROR [JobService] Unable to run job handler (thumbnailGeneration/generate-jpeg-thumbnail): Error: /photos/library/xyzuser/2023/2023-11-01/IMG_6039.HEIC: bad seek to 1903521
heif: Unsupported feature: Unsupported codec (4.3000)
[Nest] 850  - 11/14/2023, 12:44:25 PM   ERROR [JobService] Error: /photos/library/xyzuser/2023/2023-11-01/IMG_6039.HEIC: bad seek to 1903521
heif: Unsupported feature: Unsupported codec (4.3000)
[Nest] 850  - 11/14/2023, 12:44:25 PM   ERROR [JobService] Object:
{
  "id": "069dea53-28f4-4d92-8d91-f5c871eb8f9a"
}
[Nest] 850  - 11/14/2023, 12:44:25 PM   ERROR [JobService] Unable to run job handler (thumbnailGeneration/generate-jpeg-thumbnail): Error: heif: Unsupported feature: Unsupported codec (4.3000)
[Nest] 850  - 11/14/2023, 12:44:25 PM   ERROR [JobService] Error: heif: Unsupported feature: Unsupported codec (4.3000)
[Nest] 850  - 11/14/2023, 12:44:25 PM   ERROR [JobService] Object:
{
  "id": "733d2dfe-7d8c-4f1e-a08f-7f64efde1061"
}

@martabal
Copy link
Member

martabal commented Nov 14, 2023

Closing as it's not an Immich error.
I tried with both the Immich stack and the AIO image (with the latest image)
Got the same error with AIO image

@traktuner
Copy link
Contributor Author

Hello! No, non-noml version (v1.85.0-ig205)

@traktuner
Copy link
Contributor Author

Closing as it's not an Immich error. I tried with both the Immich stack and the AIO image (with the latest image) Got the same error with AIO image

Glad it's also not working for you :)

@martabal
Copy link
Member

Thanks for the report, I will take a look later

@traktuner
Copy link
Contributor Author

This is also the error I get with standard iphone HEIC images - so there is more than one thumb generation error:

[Nest] 850  - 11/14/2023, 6:31:13 PM   ERROR [JobService] Unable to run job handler (thumbnailGeneration/generate-jpeg-thumbnail): Error: /photos/library/xyzuser/2023/2023-11-14/IMG_0976.HEIC: bad seek to 1018051
heif: Unsupported feature: Unsupported codec (4.3000)
[Nest] 850  - 11/14/2023, 6:31:13 PM   ERROR [JobService] Error: /photos/library/xyzuser/2023/2023-11-14/IMG_0976.HEIC: bad seek to 1018051
heif: Unsupported feature: Unsupported codec (4.3000)
[Nest] 850  - 11/14/2023, 6:31:13 PM   ERROR [JobService] Object:
{
  "id": "9b021dc6-bbe1-4b9c-86be-d900b258f5b9"
}
[Nest] 850  - 11/14/2023, 6:31:13 PM   ERROR [JobService] Unable to run job handler (thumbnailGeneration/generate-jpeg-thumbnail): Error: heif: Unsupported feature: Unsupported codec (4.3000)
[Nest] 850  - 11/14/2023, 6:31:13 PM   ERROR [JobService] Error: heif: Unsupported feature: Unsupported codec (4.3000)
[Nest] 850  - 11/14/2023, 6:31:13 PM   ERROR [JobService] Object:
{
  "id": "0290d405-2ca0-4108-a3ed-85edb7bff209"
}

@martabal
Copy link
Member

Yeah I figured it out. There's an issue with the migration to the base image. I opened a PR to revert the changes imagegenius/docker-immich#210

@traktuner
Copy link
Contributor Author

Thanks a bunch!

@martabal
Copy link
Member

sorry for the inconvenience 😅

@traktuner
Copy link
Contributor Author

All good, hope the PR get's merged soon :)
I reverted back to v1.85.0-ig204 in the meantime.

@TransRapid
Copy link

TransRapid commented Dec 4, 2024

Still an issue with v.121.0, seems to be related to Sharp.

CR2 That has GPS tags. Image is fine. I have used this camera many times and had no such issues.

SixLabors/ImageSharp#2665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants