Open quark67 opened 5 years ago
This is related in a roundabout way to Text Cell PDF Images Disappear , in that PDF images are also not handled correctly.
I agree that PNGs used to be handled better (or at least differently), though, as evidenced by how terrible the PNGs now look when I paste them in. This is what led me to realize the above issue, actually.
This result in a loss of quality, especially when the image comes from a screenshot. Moreover, this seems to be a regression, as I find previous Quiver notes with screenshots images in PNGs.
Steps to reproduce the bug:
Result:
A PNG file can be more relevant in this context. In fact, after step 1, if you go to Finder > Edit > Show Clipboard, you'll read: Clipboard contents: Portable Network Graphics image.
So, why after pasting to a markdown cell, this give a JPEG file?
Same after pasting to a text cell, but it is less immediately visible that we obtain a JPEG file.
If we work in Preview.app, we can see a cross cursor in the image, and select a portion of an image. If we copy this portion of image (cmd+C), we read in Finder > Edit > Show Clipboard: Clipboard contents: TIFF image. But in fact, the clipboard also contain the image in the PNG format. Proof: In Applescript Editor, run:
In the log, you will see something like:
You can force the clipboard to contain only a PNG file:
After that, we read in Finder > Edit > Show Clipboard: Clipboard contents: Portable Network Graphics image.
So, even if the clipboard contain TIFF file, it probably contain also a PNG version of the image.
I strongly suggest you to favourite PNG file if available in the clipboard, and only in last ressort use the JPEG format. Thanks.