Bug 208578 - Add support for jp2 / Jpeg 2000
Summary: Add support for jp2 / Jpeg 2000
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-26 09:08 UTC by Alex
Modified: 2021-08-29 14:15 UTC (History)
3 users (show)

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


Attachments
Opening JP2 fails (123.90 KB, image/png)
2021-08-29 10:00 UTC, geisserml
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2009-09-26 09:08:28 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    Ubuntu Packages

Jpeg 2000 (.jp2/.j2k) has great compression ratio e great quality.

It would be very useful to handle those files natively in krita.
Comment 1 geisserml 2021-08-28 19:52:10 UTC
As of Krita 4.4.8, it is not possible to open JP2 files.
Comment 2 vanyossi 2021-08-29 04:06:21 UTC
Please only let developers change the bugs status. jpeg2000 support is in krita since 4.3.0 using the library openJPEG.

I am setting this bug as RESOLVED FIXED, if you have a problem opening, saving, or anything in particular with a jpeg2000 format, please file a new bug. Resurrecting old bugs is bad as it doesnt tell anything about your particular problem, it may be, as in this case, that jpeg2000 format is supported, but maybe there is something in particular with the file or the distro or the code itself that is making your usage of a jpeg2000 file not as expected.
Comment 3 geisserml 2021-08-29 09:51:22 UTC
I quickly reopened this bug on the fly when actually filing an issue at Gwenview (Bug 441673). Information on platform, affected files etc. can all be found in this report (I forgot to link it, sorry).
Comment 4 geisserml 2021-08-29 10:00:53 UTC
Created attachment 141116 [details]
Opening JP2 fails
Comment 5 2wxsy58236r3 2021-08-29 10:16:53 UTC
Let's keep this issue closed.

As vanyossi said in Comment 2, you should open a new issue for Krita instead.
Comment 6 geisserml 2021-08-29 11:23:24 UTC
Please do not randomly mark bugs as fixed when they aren't.
I see no need whatsoever to open a new report. Bug 441673 contains all relevant information. I don't have eternal amounts of time and this is just a formality.
Comment 7 geisserml 2021-08-29 11:34:11 UTC
> jpeg2000 support is in krita since 4.3.0 using the library openJPEG.
I do have libopenjp2-7 installed. Does this hint at a packaging issue? (The Krita build is from Neon User edition.)
Comment 8 geisserml 2021-08-29 11:35:53 UTC
> but maybe there is something in particular with the file
The file is valid and loads correctly with any other JP2-supporting program, so this is unlikely.
Comment 9 Halla Rempt 2021-08-29 12:56:41 UTC
Git commit 542dcd306e236ec776a81e389d0a601387739e48 by Halla Rempt.
Committed on 29/08/2021 at 12:53.
Pushed by rempt into branch 'master'.

Add jpeg2000 mimetypes with x- so the plugin is found

M  +3    -1    plugins/impex/jp2/krita_jp2.desktop
M  +2    -1    plugins/impex/jp2/krita_jp2_import.json
M  +0    -1    plugins/impex/jpeg/krita_jpeg_import.json

https://invent.kde.org/graphics/krita/commit/542dcd306e236ec776a81e389d0a601387739e48
Comment 10 geisserml 2021-08-29 13:10:25 UTC
Thanks!
Comment 11 Halla Rempt 2021-08-29 13:20:31 UTC
Yeah, but _never_ ever say something like " I don't have eternal amounts of time" as if that is something WE have. That really royally pissed me off.
Comment 12 Halla Rempt 2021-08-29 13:21:17 UTC
Git commit 6f1ef78e3d18679c495e0ac161de3131dabf2cad by Halla Rempt.
Committed on 29/08/2021 at 13:21.
Pushed by rempt into branch 'krita/5.0'.

Add jpeg2000 mimetypes with x- so the plugin is found
(cherry picked from commit 542dcd306e236ec776a81e389d0a601387739e48)

M  +3    -1    plugins/impex/jp2/krita_jp2.desktop
M  +2    -1    plugins/impex/jp2/krita_jp2_import.json
M  +0    -1    plugins/impex/jpeg/krita_jpeg_import.json

https://invent.kde.org/graphics/krita/commit/6f1ef78e3d18679c495e0ac161de3131dabf2cad
Comment 13 geisserml 2021-08-29 13:24:29 UTC
Comment 11: -1
Comment 14 geisserml 2021-08-29 14:15:42 UTC
To be frank, there is absolutely no need for bossing me around. I am doing a lot of bug reporting and I know how to deal with it. All relevant information has reached you, probably even faster than a new report would have been.