https://bugs.kde.org/show_bug.cgi?id=442185
Bug ID: 442185
Summary: j2k and j2k without file extension appears in file
dialog filter dropdown
Product: krita
Version: git master (please specify the git hash!)
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: normal
Priority: NOR
Component: File formats
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 141403
--> https://bugs.kde.org/attachment.cgi?id=141403&action=edit
File type dropdown
The open file dialog shows two weird items:
- j2k (*)
- jp2 (*)
... in addition to the normal "JPEG-2000 image (*.jp2 *.jpx *.jpf)".
In the shared-mime-info bundled with Qt [1], JPEG-2000 comes in these mime
types:
- image/jp2
- image/jpeg2000
- image/jpx
- image/jpeg2000-image
- image/x-jpeg2000-image
... and these file extension glob patterns:
- *.jp2
- *.jpx
- *.jpf
On the other hand, Krita's desktop file [2] has:
- MimeType=image/x-jp2;image/x-j2k
... and the import plugin JSON [3] has:
- "X-KDE-Import": "image/jp2,image/j2k,image/x-jp2,image/x-j2k"
- "X-KDE-Extensions" : "jp2,j2k"
I am guessing that image/j2k, image/x-jp2 and image/x-j2k are the cause.
[1]:
https://invent.kde.org/qt/qt/qtbase/-/blob/v5.12.11/src/corelib/mimetypes/mime/packages/freedesktop.org.xml
[2]:
https://invent.kde.org/graphics/krita/-/blob/8977dc9bb2cf2e68cd5d092111b2818ed97bfac0/plugins/impex/jp2/krita_jp2.desktop#L117
[3]:
https://invent.kde.org/graphics/krita/-/blob/8977dc9bb2cf2e68cd5d092111b2818ed97bfac0/plugins/impex/jp2/krita_jp2_import.json#L6
--
You are receiving this mail because:
You are watching all bug changes.