You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by GitBox <gi...@apache.org> on 2021/07/12 20:08:27 UTC
[GitHub] [pdfbox] andreieichler commented on pull request #125: Include BGR image type
andreieichler commented on pull request #125:
URL: https://github.com/apache/pdfbox/pull/125#issuecomment-878556987
Attached here are the samples that I used to test this change.
Both images rendered by `pdfRenderer.renderImage` looks the same on any viewer, however only the generated with `ImageType.BGR` have its colors loaded correctly on JavaCV/OpenCV libraries
`pdfRenderer.renderImage` with `ImageType.RGB`

`Java2DFrameUtils.toMat` of `ImageType.RGB`

`pdfRenderer.renderImage` with `ImageType.BGR`

`Java2DFrameUtils.toMat` of `ImageType.BGR`

Original PDF
[doe-to-20210323.pdf](https://github.com/apache/pdfbox/files/6804066/doe-to-20210323.pdf)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org