Skip to content

Replacing an image with a grayscale with transparency one saves the image as DeviceRGB #1188

@SveLil

Description

@SveLil

If you replace an image in a pdf with a png that is grayscale + transparency, the image will be saved as DeviceRGB in the PDF

Image

page_updated.pdf

This seems to be a problem with the go png library, as the color model that is returned by DecodeConfig is the same for ctGrayscaleAlpha and ctTrueColorAlpha (both return color.NRGBAModel )

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions