Export PDF - Background color of image

What I’m trying to do

I’m using custom background color for images (for edit, view, and picture view)

img {
    background-color: rgb(90, 90, 90); 
}

I’d like to change background color for images for PDF export

Things I have tried

@media print {.print .markdown-preview-view {     
    -webkit-print-color-adjust: exact;     
    background-color:white;
    background-image:white;
}}

Give this a try (replacing the orange of course):

img {
    background-color: rgb(90, 90, 90); 
}

@media print {
    .markdown-preview-view img {     
        background-color: orange; /* white */
    }
}

above: in a note | below: the exported pdf

It works! Thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.