I
Immich3w ago
Crad

Error loading image with Motion Photo (Pixel photos)

I got a problem with Immich (v2.2.3 build 19104095433) loading my photos made with Pixel - they look just fine in other photo apps (albeit often not loading the "motion" part due to lack of support) but Immich doesn't generate thumbnails nor does it display anything unfortunately. Just "Error loading image" error. Also doesn't load metadata. Log from immich-server that I believe is related to this error:
immich_server | [Nest] 7 - 11/07/2025, 12:00:00 AM ERROR [Microservices:{"id":"8046e19d-a2e4-46b1-aba9-b04b3bdad6a8"}] Unable to run job handler (AssetGenerateThumbnails): Error: VipsJpeg: premature end of JPEG image
immich_server | Error: VipsJpeg: premature end of JPEG image
immich_server | at Sharp.toBuffer (/usr/src/app/server/node_modules/.pnpm/sharp@0.34.4/node_modules/sharp/lib/output.js:163:17)
immich_server | at MediaRepository.decodeImage (/usr/src/app/server/dist/repositories/media.repository.js:105:68)
immich_server | at MediaService.decodeImage (/usr/src/app/server/dist/services/media.service.js:177:59)
immich_server | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
immich_server | at async MediaService.generateImageThumbnails (/usr/src/app/server/dist/services/media.service.js:190:44)
immich_server | at async MediaService.handleGenerateThumbnails (/usr/src/app/server/dist/services/media.service.js:116:25)
immich_server | at async JobService.onJobRun (/usr/src/app/server/dist/services/job.service.js:199:30)
immich_server | at async EventRepository.onEvent (/usr/src/app/server/dist/repositories/event.repository.js:91:13)
immich_server | at async /usr/src/app/server/node_modules/.pnpm/bullmq@5.61.2/node_modules/bullmq/dist/cjs/classes/worker.js:528:32
immich_server | [Nest] 7 - 11/07/2025, 12:00:00 AM ERROR [Microservices:{"id":"8046e19d-a2e4-46b1-aba9-b04b3bdad6a8"}] Unable to run job handler (AssetGenerateThumbnails): Error: VipsJpeg: premature end of JPEG image
immich_server | Error: VipsJpeg: premature end of JPEG image
immich_server | at Sharp.toBuffer (/usr/src/app/server/node_modules/.pnpm/sharp@0.34.4/node_modules/sharp/lib/output.js:163:17)
immich_server | at MediaRepository.decodeImage (/usr/src/app/server/dist/repositories/media.repository.js:105:68)
immich_server | at MediaService.decodeImage (/usr/src/app/server/dist/services/media.service.js:177:59)
immich_server | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
immich_server | at async MediaService.generateImageThumbnails (/usr/src/app/server/dist/services/media.service.js:190:44)
immich_server | at async MediaService.handleGenerateThumbnails (/usr/src/app/server/dist/services/media.service.js:116:25)
immich_server | at async JobService.onJobRun (/usr/src/app/server/dist/services/job.service.js:199:30)
immich_server | at async EventRepository.onEvent (/usr/src/app/server/dist/repositories/event.repository.js:91:13)
immich_server | at async /usr/src/app/server/node_modules/.pnpm/bullmq@5.61.2/node_modules/bullmq/dist/cjs/classes/worker.js:528:32
Some additional info: - Server has enabled quicksync HW acceleration - ML service has OpenVino HW acceleration Should I create an Issue on GitHub or maybe someone has some idea on what's wrong?
10 Replies
Immich
Immich3w ago
:wave: Hey @Crad, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Crad
CradOP3w ago
I am aware of this GH issue: https://github.com/immich-app/immich/issues/11886, but I haven't used immich-go, just straight upload through the web interface (or actually - tried both). If it's related issue and it's already known then I suppose I might try to submit a PR myself, although I've never worked with TS and Dart before :/
Immich
Immich3w ago
[Issue] Android motion pictures aren't recognized correcty, and the app has an unconsistant behavior (immich-app/immich#11886)
Zeus
Zeus3w ago
Looks like you have some corrupt source images based on the logs, if that ID is the image in question
Crad
CradOP3w ago
I don't really think that's the case - like I've mentioned, every other app opens the image correctly. Pixel photo library opens the animation correctly, so do other file browsers and photo viewers. Motion Photo Viewer (https://github.com/dj0001/Motion-Photo-Viewer) also opens the included animations just fine. I don't mind sharing a link to example photo (to my selfhosted filebrowser)
Mraedis
Mraedis3w ago
If you want to share an example, you'd have to zip up the original and add it here (or share a download link) FYI a lot of image viewer applications ignore corruptions and instead just show the corrupted image If only a small bit is corrupted you wouldn't notice it
Crad
CradOP3w ago
Attaching two MP photos A followup question: is support for corrupted images considered? I did notice that I have one corrupted normal JPG file that doesn't display in immich (in other browsers it has this cut off gray area at the bottom)
Zeus
Zeus3w ago
we are not considering supporting corrupt source images.
Crad
CradOP3w ago
Gotcha, not a problem, just asked out of curiosity
Zeus
Zeus3w ago
You can try using the invalid images env var actually https://docs.immich.app/install/environment-variables/#general

Did you find this page helpful?