You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (Jira)" <ji...@apache.org> on 2025/10/09 14:14:00 UTC
[jira] [Resolved] (TIKA-4511) Detect compressed bmp
[ https://issues.apache.org/jira/browse/TIKA-4511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Allison resolved TIKA-4511.
-------------------------------
Fix Version/s: 4.0.0
3.3.0
Resolution: Fixed
Please reopen if the non-zero value at byte 30 is not precise/general enough.
> Detect compressed bmp
> ---------------------
>
> Key: TIKA-4511
> URL: https://issues.apache.org/jira/browse/TIKA-4511
> Project: Tika
> Issue Type: Task
> Reporter: Tim Allison
> Priority: Trivial
> Fix For: 4.0.0, 3.3.0
>
>
> tesseract at least as recently as 5.4.1 with leptonica-1.82.0 cannot process compressed bmp. See: [https://github.com/tesseract-ocr/tesseract/issues/2558]
> For OCR to work on these images, we'd have to use imagemagick or something similar to convert these to uncompressed bmp. As a first step, we'd need to detect compressed bmp vs uncompressed.
> This ticket focuses solely on detection.
> It looks like if the byte at 30 is non-zero, then we have a compressed bmp: [https://en.wikipedia.org/wiki/BMP_file_format]
>
> I propose: {{image/bmp;format=compressed}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)