Viewnior "Couldn't recognise format" of JPG file from Android phone [SOLVED]

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Viewnior "Couldn't recognise format" of JPG file from Android phone [SOLVED]

Post 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
ViewniorError.jpg (14.15 KiB) Viewed 223 times
StrangeErrorComparisonNotSupportedAttributes_.jpg
StrangeErrorComparisonNotSupportedAttributes_.jpg (84.96 KiB) Viewed 223 times
MM-ReadsOK_.jpg
MM-ReadsOK_.jpg (37.88 KiB) Viewed 223 times
Last edited by greengeek on Tue Jan 10, 2023 8:57 am, edited 1 time in total.
User avatar
MochiMoppel
Posts: 1233
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 437 times

Re: Viewnior "Couldn't recognise format" of JPG file from Android phone

Post by MochiMoppel »

greengeek wrote: Tue Jan 10, 2023 5:10 am

Any 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

dogcat
Posts: 262
Joined: Fri Feb 18, 2022 11:14 pm
Has thanked: 70 times
Been thanked: 121 times

Re: Viewnior "Couldn't recognise format" of JPG file from Android phone

Post 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

Μακάριοι οι καθαροί στην καρδιά * επειδή, θα δουν τον Θεό.

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Viewnior "Couldn't recognise format" of JPG file from Android phone

Post 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!

User avatar
greengeek
Posts: 1383
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 534 times
Been thanked: 192 times

Re: Viewnior "Couldn't recognise format" of JPG file from Android phone

Post by greengeek »

dogcat wrote: Tue Jan 10, 2023 7:54 am

Some other information about extended file attribute problem between phone / Viewnior
https://github.com/hellosiyan/Viewnior/issues/66

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.

Post Reply

Return to “Users”