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

improvable error message #1977

Closed
paolobenve opened this issue Oct 20, 2021 · 2 comments
Closed

improvable error message #1977

paolobenve opened this issue Oct 20, 2021 · 2 comments
Assignees
Milestone

Comments

@paolobenve
Copy link

exiv built without -DEXIV2_ENABLE_BMFF=1:

$ exiv2 -pp "/home/paolo/image.CR3"
Exiv2 exception in print action for file /home/paolo/image.CR3:
/home/paolo/image.CR3: The file contains data of an unknown image type

I think that the error message is correct, but could be better: actually exiv2 cannot find the preview because it hasn't the rights to process CR3 files. A check on CR3 type would permit to add a suggestion that maybe EXIV2_ENABLE_BMFF support isn't enabled.

@clanmills
Copy link
Collaborator

clanmills commented Oct 20, 2021

This was discussed and investigated a couple of weeks ago. The message results from the BMFF parser not being in the code base and therefore the file type is unknown. I looked at moving some of the BMFF code into every build so the image type would be recognised and a message such as you have suggested could be issued. I didn't want to restructure the code at v0.27.3 RC3.

The reason 0.27-maintenance uses a default of -DEXIV2_ENABLE_BMFF=0 is discussed here: https://github.com/Exiv2/exiv2/wiki/BMFF-Legals

The default for branch 'main' is -DEXIV2_ENABLE_BMFF=1 and therefore future exiv2 versions will support BMFF by default. So, this message will disappear.

@clanmills clanmills added this to the v0.27.5 milestone Oct 21, 2021
@clanmills clanmills self-assigned this Oct 21, 2021
@clanmills
Copy link
Collaborator

clanmills commented Oct 21, 2021

@paolobenve I'm going to close this. The changes required to fix this would require v0.27.5 RC4 and a three week delay. I'm sure you and the darktable folks prefer to have 0.27.5 now with the CR3/preview code.

As you know, Paolo we don't always get what we want. Team Exiv2 have worked well on your behalf and delivered CR3/preview for you.

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

2 participants