Xanashi / Icaros

Official issue tracker and download location for Icaros Shell Extensions
741 stars 8 forks source link

jp2 support #108

Closed 03302024 closed 1 week ago

03302024 commented 3 months ago

I have a bunch of jp2 image files so I manually added jp2 extension to the list. However, I get black thumbnails for some of them. I can view them OK in XnViewMP. I was wondering if jpeg 2000 is fully supported.

7eventech77 commented 3 months ago

JPEG2000 would be nice in the future, it also goes hand in hand with PDF thumbnailing since Adobe Acrobat supports that as a image codec option.

Xanashi commented 3 months ago

Hi 03302024, Could you send me some the files that produces black thumbnails?

03302024 commented 3 months ago

Could you send me some the files that produces black thumbnails?

Here you are: https://archive.org/download/dr_pratts-high-test-plan-of-the-eastern-counties-and-the-midlands-12471000/12471000.jp2

Xanashi commented 3 months ago

Thank you! I'll look into it, and get back to you.

03302024 commented 2 months ago

Here is another one. It is a scan of a white page, but the thumbnail is shown in black. test file.zip

03302024 commented 1 month ago

Just a follow up for this feature request.

Xanashi commented 1 month ago

I looked into this and these files fail to decode with FFmpeg. So the FFmpeg jpeg2000 decoder is where this needs to be fixed.

03302024 commented 1 month ago

Thank you for looking into this issue. How we could inform FFmpeg people about this?

Xanashi commented 1 month ago

It's possible to report issues to the FFmpeg developers using their issue tracker: FFmpeg Issue Tracker

They do have a few requirements for reporting bugs/requesting features, that must be read before creating a ticket: https://ffmpeg.org/bugreports.html

03302024 commented 4 weeks ago

OK, thank you. I created an account there to report the issue. Hope it will be fixed soon. https://trac.ffmpeg.org/ticket/11207

03302024 commented 3 weeks ago

I see there are bug reports over there from 14 years ago. Now, I am wondering if any other jp2 decoder could be used meanwhile?

Xanashi commented 1 week ago

The FFmpeg team fixes issues from that list every single day, so just because some tickets haven't been picked up by anyone in a long time, doesn't mean it's a common occurrence. Most tickets usually gets attention.

I'm not that familiar with the jp2 format, and what alternative decoders exists, but I'm hoping FFmpeg will be able to decode these files in the near future.

There is of course also a chance that these files were just incorrectly encoded, and may need to be re-encoded.

03302024 commented 1 week ago

OK, thank you for looking into this.