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`
   
![render_image_rgb](https://user-images.githubusercontent.com/2250599/125348091-2b582900-e332-11eb-9a44-a0598ae6149a.png)
   
   `Java2DFrameUtils.toMat` of `ImageType.RGB`
   
![Java2DFrameUtils_toMat_rgb](https://user-images.githubusercontent.com/2250599/125348112-31e6a080-e332-11eb-9ec4-880e5919b627.png)
   
   `pdfRenderer.renderImage` with `ImageType.BGR`
   
![render_image_bgr](https://user-images.githubusercontent.com/2250599/125348134-38751800-e332-11eb-9097-ecd856f79527.png)
   
   `Java2DFrameUtils.toMat` of `ImageType.BGR`
   
![Java2DFrameUtils_toMat_bgr](https://user-images.githubusercontent.com/2250599/125348144-3c089f00-e332-11eb-9d62-2a185af56771.png)
   
   
   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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to