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

imagepipe: Don't know how to decode image #3

Open
zucchiniEvader opened this issue Oct 16, 2023 · 7 comments
Open

imagepipe: Don't know how to decode image #3

zucchiniEvader opened this issue Oct 16, 2023 · 7 comments

Comments

@zucchiniEvader
Copy link

I want to convert ARW files to JPG format, and I used the command raw-to-img -o ./jpeg ./_DSC6738.ARW. However, I encountered the following issue:

Decoding "./_DSC6738.ARW"
Unable to decode "./_DSC6738.ARW": "imagepipe: Don't know how to decode image"
Found no files to process in "./_DSC6738.ARW"

What could be the problem?

@jzbor
Copy link
Owner

jzbor commented Oct 16, 2023

I think there are three main issues here:

  1. If you only convert one image raw-to-img expects a filename (not directory) as -o parameter. It might work with ./jpeg, but definitely not the way you would expect it to.
  2. Found no files to process in "./_DSC6738.ARW" is clearly wrong, as it has found files, but wasn't able to convert them. This bug should fixed in b76c180, but it only regards the message.
  3. As for your actual problem ("imagepipe: Don't know how to decode image") I am afraid I cannot help you without a sample file. I have tried converting an .ARW file without issue. Maybe your file is somehow corrupted?

@zucchiniEvader
Copy link
Author

I've uploaded a sample file on Google Drive Could you please help me test it?

Also, I'm using an M1 MacBook, and I'm not sure if that's relevant.

@jzbor
Copy link
Owner

jzbor commented Oct 16, 2023

Hello, I can reproduce your issue. Sadly I think there is nothing I can do, except reporting the issue upstream. I will give you an update once I have opened a ticket there.

One other question just out of curiosity: Is this the only file you cannot convert or do you have the same issue with all your files?

EDIT: Reported the issue upstream

@zucchiniEvader
Copy link
Author

I've tested a folder of files, roughly around 100 in total, and all of them failed to convert. These files were taken via a Sony A6400.

@zucchiniEvader
Copy link
Author

I tried another file, which was taken with a Sony A7M3, and it converted successfully.
image

@jzbor
Copy link
Owner

jzbor commented Oct 18, 2023

So according to the libraries developer some camera models are not supported yet in imagepipe. It seems like support may be added in the future though. See pedrocr/imagepipe#18.

I am sorry, but I don't think there is anything I can do in this case. I will keep this issue open though and report if there is any progress...

@zucchiniEvader
Copy link
Author

Thank you very much for your reply. So, I won't rush to use this component for now since I only have an A6400.

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