mdproof icon indicating copy to clipboard operation
mdproof copied to clipboard

RGBA PNG images are not rendered

Open leroycep opened this issue 5 years ago • 0 comments

RGBA PNG images are not visible in the output PDF, though they do take up space. PDF renderers used include PDF.js, qpdfviewer, apvlv, and whatever the reMarkable tablet uses.

Using imagemagick to remove the alpha channel makes the images show up:

convert -alpha 1 flamer-1.png flamer-1-alpha-removed.png

Example:

test.md

# `flamer-1.png`:

![](flamer-1.png)

# `flamer-1-alpha-removed.png`:

![](flamer-1-alpha-removed.png)

flamer-1.png: flamer-1

flamer-1-alpha-removed.png flamer-1-alpha-removed

test.pdf

leroycep avatar Sep 08 '19 22:09 leroycep