help wanted
Description
Describe the bug
As the title states, I believe this is an issue with colorspace DeviceRGB colors being rendered differently.
To Reproduce Steps to reproduce the behavior including code snippet (if applies):
- Set the page style:
const styles = StyleSheet.create({
page: {
backgroundColor: '#64E0F6',
},
})
or
const styles = StyleSheet.create({
page: {
backgroundColor: 'rgb(100, 224, 246)',
},
})
- Add an image filled with the same color
#64E0F6 - There's a distinction when rendered.
You can make use of react-pdf REPL to share the snippet
Expected behavior The background color should match the image.
Screenshots
The page background is the top, the JPEG background is below.
According to the digital color meter, the top (Page backgroundColor) is rgb(134, 221, 243) while the bottom is rgb(100, 224, 246)
Desktop (please complete the following information):
- OS: macOS
- Local
- React-pdf version: 3.0.0