ozntel / oz-image-in-editor-obsidian

This Obsidian plugin to view Images, Transclusions, iFrames and PDF Files within the Editor without a necessity to switch to Preview.
339 stars 13 forks source link

Request for disabling invert for PDF export #107

Closed Sandwich1699975 closed 1 year ago

Sandwich1699975 commented 2 years ago

As I use dark mode for obsidian, and light mode for PDF; I would like to be able to disable invert when exporting to PDF. So my images are not black on white paper. Example:

/* PDF Styles */

@media print {
    .theme-dark img[alt$='#invert'] {
        /* Fix invert for images */
        filter: invert(0) hue-rotate(360deg);
    }
}

This worked for me for a bit, but not any more. A settings toggle, or automatic disable would be amazing.

Thank you

ozntel commented 1 year ago

I think you need to reach out to Obsidian Dev-s for this request. PDF Export is not related to this plugin.