Automatically apply scaling factor to images pasted from clipboard

I’m using Spectacle on Linux and it doesn’t seem to add anything to the metadata.

The code from that gist returns false for a screenshot I created on my Linux system with a scale factor of 150%. The pHYs chunk of that image looks like this:

{ xDpu: 3780, yDpu: 3780, xDpi: 96, yDpi: 96, unit: 'meter' }
3 Likes