Webreaper / Damselfly

Damselfly is a server-based Photograph Management app. The goal of Damselfly is to index an extremely large collection of images, and allow easy search and retrieval of those images, using metadata such as the IPTC keyword tags, as well as the folder and file names. Damselfly includes support for object/face detection.
GNU General Public License v3.0
1.45k stars 76 forks source link

Failed conversion on CR3 files #520

Closed terath199 closed 5 months ago

terath199 commented 5 months ago

Receiving the following error in the logs on all .CR3. CR2s are processing perfectly.

[08:14:31.845-.NET TP Worker-ERR] Failed commandline was: convert -define jpeg:size=120x120 "/pictures/Matt/3-13-24_2/IMG_0684.CR3" -quality 90 -unsharp 0.5x0.5+1.25+0.0 -thumbnail 120x120 -auto-orient "/thumbs/Matt/3-13-24_2/IMG_0684_s.JPG"

Failed commandline was: convert -define jpeg:size=120x120 "/pictures/Matt/3-13-24_2/IMG_0680.CR3" -quality 90 -unsharp 0.5x0.5+1.25+0.0 -thumbnail 120x120 -auto-orient "/thumbs/Matt/3-13-24_2/IMG_0680_s.JPG"

Docker image on Unraid. v4.1.1.0

Webreaper commented 5 months ago

It sounds like the ImageMagick conversion isn't working for some reason - not sure why, as this has been tested elsewhere. What version of ImageMagick does the startup logs report?

terath199 commented 5 months ago

Showing: ImageMagick 7.1.1-29

Webreaper commented 5 months ago

Are you able to attach the image to this issue (or email to info@damselfly.info) so I can test on my installation?

terath199 commented 5 months ago

Sure, I had to pick one that worked within the file size limit, but this is happening to all CR3 files. IMG_0201.zip

Webreaper commented 5 months ago

Okay, interesting - looks like it works on my Mac, but not on my linux box. I suspect there's an add-in I need to include with the version of imagemagick I build for the base container. Let me investigate.

Webreaper commented 5 months ago

Okay, so I built a new base image with a rebuilt imagemagick that includes lib-raw, which apparently should support CR3. But when I run the new image (webreaper/damselfly:dev) it still doesn't work.

Running convert identify -list formats in the container, it states CR3 is supported. So I've no idea. May have to raise an issue on the ImageMagick github.

Webreaper commented 5 months ago

Weird thing is, it was confirmed as working in #516. I wonder if there's more than one variant of CR3?

Webreaper commented 5 months ago

Okay, so I've pushed a version to dev which now works for me. Please can you try it and confirm?

terath199 commented 5 months ago

Okay, so I've pushed a version to dev which now works for me. Please can you try it and confirm?

That did it! Everything is showing up correctly now. Thank you!!!