Page 1 of 1
Viewnior "Couldn't recognise format" of JPG file from Android phone [SOLVED]
Posted: Tue Jan 10, 2023 5:10 am
by greengeek
I uploaded a photo from my Android phone to the filesystem of my Tahr32 based Puppy and tried to view it but when I clicked it Viewnior came up with an error saying: "Couldn't recognise the image file format for file '20230110_123618.jpg".
However - if I open the image with MtPaint or MM-view it seems to be normal.
Also - if I then copy the "faulty" file from the filesystem to a disk drive - I can read it fine with viewnior.
If I look at the properties of both files the only difference I can see is that the "faulty" file shows extended attributes as "not supported" whereas the good file (on disk) says extended attributes are "none" (see pic).
On my system the file manager that pops up when I connect my Android phone is xfe.
Any ideas what causes Viewnior to be unhappy with this file, and why this occurs?
- ViewniorError.jpg (14.15 KiB) Viewed 221 times
- StrangeErrorComparisonNotSupportedAttributes_.jpg (84.96 KiB) Viewed 221 times
- MM-ReadsOK_.jpg (37.88 KiB) Viewed 221 times
Re: Viewnior "Couldn't recognise format" of JPG file from Android phone
Posted: Tue Jan 10, 2023 7:23 am
by MochiMoppel
greengeek wrote: ↑Tue Jan 10, 2023 5:10 amAny ideas what causes Viewnior to be unhappy with this file, and why this occurs?
It's because the file is saved to '/' , i.e. the root of your filesystem.
I don't know why Viewnior is unhappy. All I know is that Viewnior will produce an error when you try to open it by clicking in ROX or open it from its menu. But since the MMview screenshot shows that you have more than 1 files in this location, you can simply ignore the message and use the arrow buttons to proceed to the next image. Viewnior will show it. Now you can go back to the "faulty" image and Viewnior will show that too.
Bottomline: Save your files to any other location than '/'. You and Viewnior will be happy ever after
Re: Viewnior "Couldn't recognise format" of JPG file from Android phone
Posted: Tue Jan 10, 2023 7:54 am
by dogcat
Maybe phone creates extended attributes and viewnior hates them evil things?
Some other information about extended file attribute problem between phone / Viewnior
https://github.com/hellosiyan/Viewnior/issues/66
Just food for thoughts
Re: Viewnior "Couldn't recognise format" of JPG file from Android phone
Posted: Tue Jan 10, 2023 8:52 am
by greengeek
MochiMoppel wrote: ↑Tue Jan 10, 2023 7:23 am
But since the MMview screenshot shows that you have more than 1 files in this location, you can simply ignore the message and use the arrow buttons to proceed to the next image. Viewnior will show it. Now you can go back to the "faulty" image and Viewnior will show that too.
Haha - exactly right. Yes it is just as you suggest. Many thanks!
Re: Viewnior "Couldn't recognise format" of JPG file from Android phone
Posted: Tue Jan 10, 2023 8:56 am
by greengeek
Thanks for the suggestion.
Actually - it turns out that the same problem occurs with any image that is in / (not just camera images)
If I drag any other image from any other location and place a copy in / it seems that Viewnior has the same problem.
As MochiMoppel suggested - the first image loaded by Viewnior gives the "could not recognise format" error but if I use the arrow key or click the viewnior arrow to step through the images they will all display correctly (even when it loops around to the first).
Marked solved.