OpenComic icon indicating copy to clipboard operation
OpenComic copied to clipboard

[Feature Request]: jp2 (jpeg 2000) support

Open Alexisback opened this issue 1 year ago • 5 comments

Preflight Checklist

  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe your suggested feature

I have zip files, with jp2 (jpeg 2000) inside but OpenComic does not read them even if I renamed the file to .cbz. Another program SumatraPDF instead reads them. Is it possible to insert the jp2 display in OpenComic? Thank you

Additional Information

No response

Sample file

Corriere dei piccoli 1908-01 originale_jp2.zip

Alexisback avatar Feb 06 '25 12:02 Alexisback

Thanks for the suggestion!

Currently OpenComic does not support jp2 images. You can see the currently supported formats here.

But I will try to see if I can add it support in the next major version.

ollm avatar Feb 06 '25 16:02 ollm

I'm happy to say that I've added support for JPEG 2000 via e11046b4eca758f8b15c1caeb831a235a5f3d62c.

If you want to try it to see if there are any bugs, I'll leave you a build of the master branch.

Buid: https://mega.nz/file/aLRBiSBC#NRUurPtVW_XLd9n_CFVOIz-xrMc6lXY_gETfdFIGwzQ

Image

Image

ollm avatar Feb 10 '25 19:02 ollm

Great, I'm testing, but the file loading is a bit slow, in SumatraPDF it's almost instantaneous, maybe everything can be speeded up.

https://www.upload.ee/files/17731435/Corriere_dei_piccoli_1991-16_jp2.cbz.html

Alexisback avatar Feb 11 '25 05:02 Alexisback

I've made some changes to improve performance 7a6b48762b72bd31a5b39a07a6edc4ad145048fe, it should now load much faster, especially if the file has a lot of images, although it won't go as fast as other images (jpg, png, etc) but it should be acceptable.

I've also improved the speed at which thumbnails are generated 155f064b4c9716c050a6231e44323169686997ea

Build: https://mega.nz/file/fKAxHazb#wJ7iaFe40_Myes3iJlMh5ypuyh6rLHjOw8L9uvH7Z4w

ollm avatar Feb 11 '25 18:02 ollm

Yes, it loads very fast now. If there are other features to add I suggest it. Thanks

Alexisback avatar Feb 12 '25 09:02 Alexisback

Closing this, since it's now included in v1.6.0

ollm avatar Jul 27 '25 18:07 ollm