[ 
https://issues.apache.org/jira/browse/PDFBOX-6151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18073672#comment-18073672
 ] 

Tilman Hausherr edited comment on PDFBOX-6151 at 4/15/26 7:24 AM:
------------------------------------------------------------------

It's been over a month so my memory isn't fresh anymore. From what I remember 
there were three zones of interest: 
{{GenericRefinementRegion.getRegionBitmap()}} which starts with a "good" bitmap 
but then something goes wrong with the overlay. The second thing is what you 
mention that is PDFBOX-6155, i.e. how to treat that AT thing. I have some 
doubts whether the specification algorithm is followed properly but I don't 
understand it. The third problem was about reusing contexts 
(bitmap-symbol-context-reuse) from previous segments. That file has 4 and it 
can be seen at 
https://github.com/SerenityOS/serenity/blob/master/Tests/LibGfx/test-inputs/jbig2/json/bitmap-refine-template1-tpgron.json

This is how the renderings currently look (the white one is because there's an 
exception):

!image-2026-04-15-09-22-39-238.png!


was (Author: tilman):
It's been over a month so the memory isn't fresh anymore. From what I remember 
there were three zones of interest: GenericRefinementRegion.getRegionBitmap() 
which starts with a "good" bitmap but then something goes wrong with the 
overlay. The second thing is what you mention that is PDFBOX-6155, i.e. how to 
treat that AT thing. I have some doubts whether the specification algorithm is 
followed properly but I don't understand it. The third problem was about 
reusing contexts (bitmap-symbol-context-reuse) from previous segments. That 
file has 4.

This is how the renderings currently look (the white one is because there's an 
exception):

!image-2026-04-15-09-22-39-238.png!

> Run serenity JBIG2 tests
> ------------------------
>
>                 Key: PDFBOX-6151
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-6151
>             Project: PDFBox
>          Issue Type: Task
>          Components: JBIG2
>    Affects Versions: 3.0.4 JBIG2
>            Reporter: Tilman Hausherr
>            Priority: Minor
>         Attachments: image-2026-04-15-09-22-39-238.png
>
>
> Run the jbig2 files from the serenity tests by Nico Weber to see what happens.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to