akarjal2 / openjpeg

Automatically exported from code.google.com/p/openjpeg
0 stars 0 forks source link

JPX stream in PDF can't be decoded correctly. #473

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The original bug was reported in 
http://code.google.com/p/chromium/issues/detail?id=455195&q=owner%3Ame&colspec=I
D%20Pri%20M%20Week%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modifie
d

What steps will reproduce the problem?
1. Follow the steps in http://code.google.com/p/pdfium/wiki/Build to build 
pdfium.
2. Run "pdfium.exe --bmp size-guide.pdf" in Windows.
3. The generated bitmap is blank.

What is the expected output? What do you see instead?
The expected bitmap is attached as expected.png (converted from bitmap),

What version of the product are you using? On what operating system?
This issue only happens on pdfium after upgrading openjpeg to r2891. It can 
reproduce in the last version of openjpeg.

Please provide any additional information below.
It also reproduce in Linux as described in the original issue.

Original issue reported on code.google.com by jun_f...@foxitsoftware.com on 6 Feb 2015 at 6:20

Attachments:

GoogleCodeExporter commented 8 years ago
Seems that this issue exists in src\lib\openjp2\j2k.c. I only roll back this 
file to some version before r2883. This issue doesn't happen.

Original comment by jun_f...@foxitsoftware.com on 6 Feb 2015 at 6:40

GoogleCodeExporter commented 8 years ago
Here's the image extracted from the pdf

Original issue mentions Chrome 64 bits, All OS.
I can't reproduce the issue using trunk r2997 on MacOS 64 bits. The image is 
decoded properly.

Original comment by m.darb...@gmail.com on 7 Feb 2015 at 4:47

Attachments:

GoogleCodeExporter commented 8 years ago
The file 'size-guide.pdf' is shown properly by XPDF.

But the file issue473.jp2 is brutal: 5167 x 6792 .

winfried

Original comment by szukw...@arcor.de on 8 Feb 2015 at 1:07