Bug 467914 - Every file type Krita is set to open by default is labeled simply "Image File" with no distinction
Summary: Every file type Krita is set to open by default is labeled simply "Image File...
Status: ASSIGNED
Alias: None
Product: krita
Classification: Applications
Component: File formats (other bugs)
Version First Reported In: 5.1.5
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Alvin Wong
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-29 04:58 UTC by unduemarmot
Modified: 2024-03-14 16:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Three photos each of two image files (a PNG on the left and a JPEG on the right) being labeled in different ways, put together into a collage. (2.27 MB, image/png)
2023-03-29 04:58 UTC, unduemarmot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description unduemarmot 2023-03-29 04:58:04 UTC
Created attachment 157679 [details]
Three photos each of two image files (a PNG on the left and a JPEG on the right) being labeled in different ways, put together into a collage.

SUMMARY
Every single file type is labeled in File Explorer as just "Image File" if the user has set Krita to open files with their extensions onto by default.

For example, if you have Windows set to open both .png and .jpg files in Krita, the "Type" section in relevant viewports (like the Details view, as well as the Details pane in the right sidebar if that's turned on) simply labels each file as just "Image File". This, despite the file types having multiple well-known differences in how image data is stored.

Other apps don't give each file type a name, so the Windows File Explorer default is just "$EXTENSION File", like "PNG File" or "JPG File". (See attachments 5 and 6 for the Windows 10|11 built-in Photos app.)

Certain programs, like LibreOffice Draw, go out of their way to provide more detailed descriptions of a file's type, like labeling a .png as "Portable Network Graphics". (See attachments 3 and 4).

STEPS TO REPRODUCE
1. Open File Explorer.
2. Go to a folder with both a .png file and a .jpg file on them.
3. Make sure Windows is set to open Krita for both file types by default. (To be sure, right-click, then "Open with >", then "Choose another app", then select "Krita", then "Always" button.)
4. In File Explorer's top bar, click the "View" dropdown, select "Details". (Alternatively or additionally, "View" then "Show >" then check "Details pane".)

OBSERVED RESULT
See both of them labeled under "Type" column as "Image File", with no distinction between PNGs and JPEGs. (See attachments 1 and 2.)

EXPECTED RESULT
See the .png file labeled as "PNG File", or much better, "Portable Network Graphics File". Then see the .jpg file labeled as "JPG File" or "Joint Photographic Experts Group File".

SOFTWARE/OS VERSIONS
Windows: 11 22H2 (detected by System Information log as "10.0.22621"?)
KDE Frameworks Version: 5
Qt Version: 5.12.12

(I'm on Krita 5.1.5)

ADDITIONAL INFORMATION
Reported on the subreddit 3 years ago(!!): https://www.reddit.com/r/krita/comments/fucfas/file_types/ (I can't blame him tbh)
Comment 1 unduemarmot 2023-04-23 08:31:09 UTC
Hi, I see there's been an assignee for weeks.

Then what?
Comment 2 unduemarmot 2024-03-06 11:31:16 UTC
Same problem persists for over a year.
Comment 3 Reinold Rojas 2024-03-14 16:17:18 UTC
I took a bit of a look and it seems like this is because all of these filetypes are defined in `packaging/windows/msix/manifest.xml.in` in one group and use the same display name of "Image File". I would guess that instead of grouping them all together we should separate them into different sections with their own unique display name. 

I don't have a windows setup so I can't test it out but anyone with a windows build is open to trying that and making a MR.