Skip to content

Instantly share code, notes, and snippets.

@nahiyan
Last active September 10, 2020 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nahiyan/09f7b4a2f111d75e100c636e2b6a2af6 to your computer and use it in GitHub Desktop.
Save nahiyan/09f7b4a2f111d75e100c636e2b6a2af6 to your computer and use it in GitHub Desktop.
TIV error with JPEG image

TIV failed to work for me when I tried to use it to view a JPEG image. Giving me this error when I tried to view a JPEG image:

[CImg] *** CImgIOException *** [instance(0,0,0,0,(nil),non-shared)] CImg<unsigned char>::load(): Failed to recognize format of file 'raw_images/9.jpg'.

Here are the details of that file:

raw_images/9.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_imx219, xresolution=156, yresolution=164, resolutionunit=2, datetime=2019:08:03 11:11:14, width=0], baseline, precision 8, 1280x720, components 3

@Kennylives
Copy link

I had the same issue on my debian buster.

Imagemagick wasn't installed. Once installed the problem went away.

@nahiyan
Copy link
Author

nahiyan commented Sep 4, 2019

I was trying to view the image through SSH terminal. Apparently it requires some kind of windowing system or something; I bet that's the reason why I got that error.

@i-amgeek
Copy link

i-amgeek commented Sep 9, 2020

Thanks. Imagemagick solved the issue.

@nahiyan
Copy link
Author

nahiyan commented Sep 10, 2020

Great! I assume imagemagick is the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment