screenshoter
screenshoter copied to clipboard
Set DPI for the generated png images so they do not look too big
E.g. https://stackoverflow.com/a/4833697/1261287
An alternative option is org.apache.xmlgraphics.image.writer.ImageWriterUtil.saveAsPNG(image, DPI, outfile)
AFAIK:
- HiDPI PNGs have 144 DPI by default
- Default resolution is 72 DPI
I think it would be great if the PNGs used 72*scale for the DPI, so "text size" in OS preview (and in Twitter!) becomes consistent.
WDYT?
This solution will work if you save images to a file. However, I don't see how to adapt it to the clipboard image (which is default mode). Any ideas?
I wonder what would happen if you convert the image to bytes and pass it as image/png
bytes to the clipboard.