Anh Tu Mai

Results 11 comments of Anh Tu Mai

One thing to notice is when I try to use `img2pdf` (https://github.com/josch/img2pdf) with the PNG image, this is the output: ```bash $> img2pdf inputs/screenshot.png WARNING:root:Image contains transparency which cannot be...

as I see, the only way to solve this problem to is convert `ImageXObject` with color_space RGBA to color_space RGB

@fschutt I manage to solve the problem by converting ImageXObject with color space Rgba to color space Rgb with white background. Editted: this only works with Rgba8 or Bgra8 image....

I use Grip 4.5.2 and don't see the error. Can you specify your Grip version?

@flying-sheep How would you render the image? I rendered the image with printpdf 0.5.3 and it looks like this: ![image](https://user-images.githubusercontent.com/32799668/199837784-b4ae20d7-3787-49d6-926d-a0b807f92518.png) Here is my code ```rust use std::{fs::File, io::BufWriter}; use image_crate::codecs::png::PngDecoder;...

> you’re going to have to render it in front of anything that isn’t white background to see if it renders correctly or not. Can you paste your code here?

@flying-sheep have you solved the problem?

for newcomer going here, this is the workaround https://github.com/fschutt/printpdf/issues/119#issuecomment-1120434233 (work only with Rgba color space)

if you are on linux, you can use `pkill -f grip` This article may help: https://stackoverflow.com/questions/8987037/how-to-kill-all-processes-with-a-given-partial-name