[Webkit-unassigned] [Bug 180582] New: MacOS screenshots can have the wrong DPI value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 8 08:11:09 PST 2017


            Bug ID: 180582
           Summary: MacOS screenshots can have the wrong DPI value
           Product: WebKit
           Version: Safari 11
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: craig+webkit at craigfrancis.co.uk

1) Open a browser window on a 144 dpi monitor
2) Run `screencapture -x -i screenshot.png`, press the [space] key, and screenshot the window.
3) Run `sips -g dpiWidth screenshot.png`.

The DPI is incorrectly set to 72.000, it should say 144.000.

When these screenshots are used, e.g. in an email (MacOS Mail), they will be shown at twice their normal size.

Firefox correctly sets the DPI value.

Chrome also sets the DPI correctly when the window is opened - but does not update it when moving between monitors. As in, when you drag the window over to a 72 DPI monitor, the screenshots will still be recorded as being 144.000 ( https://crbug.com/793312 )

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171208/8df3c9f4/attachment.html>

More information about the webkit-unassigned mailing list