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

Failed to recognize format #56

Closed
AsyDynamics opened this issue Apr 24, 2019 · 3 comments
Closed

Failed to recognize format #56

AsyDynamics opened this issue Apr 24, 2019 · 3 comments
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@AsyDynamics
Copy link

I build the c++ version on raspbian and ubuntu 18, both give me such error

[CImg] *** CImgIOException *** [instance(0,0,0,0,(nil),non-shared)] CImg<unsigned char>::load(): Failed to recognize format of file 'image.jpg'. File format is not recognized for 'image.jpg'.

Also tried the png file but still not work. Any clue?

@histefanhere
Copy link

I'm having the same issue with both png's and jpg's, would love for this to be fixed.

@stefanhaustein
Copy link
Owner

Cimg relies on other packages (libpng, libjpeg) to handle the corresponding file formats. Can you check if you have them installed (typically cimg should depend on them). Did you check if imagemagic is installed and works properly with png and jpeg images?

@pidjey
Copy link

pidjey commented Jun 25, 2019

Had this problem on a fresh Ubuntu install. Solved this by installing imagemagick, as stefan said

@aaronliu0130 aaronliu0130 added bug Something isn't working invalid This doesn't seem right labels Jun 30, 2022
@aaronliu0130 aaronliu0130 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2022
SFrijters added a commit to SFrijters/nixpkgs that referenced this issue Mar 21, 2023
Required for e.g. jpg and png support, c.f. stefanhaustein/TerminalImageViewer#56
SFrijters added a commit to SFrijters/nixpkgs that referenced this issue Mar 21, 2023
Required for e.g. jpg and png support, c.f. stefanhaustein/TerminalImageViewer#56
SFrijters added a commit to SFrijters/nixpkgs that referenced this issue Mar 21, 2023
Required for e.g. jpg and png support, c.f. stefanhaustein/TerminalImageViewer#56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

5 participants