stefanhaustein / TerminalImageViewer

Small C++ program to display images in a (modern) terminal using RGB ANSI codes and unicode block graphics characters
Other
1.56k stars 111 forks source link

unrecognized file format #134

Closed sysadminpower2019 closed 7 months ago

sysadminpower2019 commented 8 months ago

Describe the Bug

tiv will not working when trying to view a jpg downloaded from the internet

error is

[CImg] CImgIOException [instance(0,0,0,0,(nil),non-shared)] CImg::load(): Failed to recognize format of file '300.jpg'. Error: '300.jpg' has an unrecognized file format

To Reproduce

download image run tiv 300.jpg

Expected Behavio(u)r

image should work

Screenshots

No response

Version/Commit Hash

latest

OS Specifics

Linux house 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

aaronliu0130 commented 8 months ago

Did you install libjpg or ImageMagick? If so, are you sure that the image is a valid JPG?

stefanhaustein commented 7 months ago

Closing as we can't repro without the image in question. If the problem persists, please provide an image to debug.