Skip to content

Instantly share code, notes, and snippets.

@nahiyan
Last active Sep 10, 2020
Embed
What would you like to do?
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

@stefanhaustein
Copy link

stefanhaustein commented Aug 3, 2019

On which platform? Did you try installing imagemagik to make sure all codecs are installed?

@nahiyan
Copy link
Author

nahiyan commented Aug 8, 2019

Raspbian OS on Raspberry Pi 3 B+. And no, I didn't try installing imagemagik. I'll let you know if it resolves the issue.

@Kennylives
Copy link

Kennylives commented Sep 4, 2019

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