Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Well, how do I check what the DPI value is, and how do I fix it? It's an unedited icon from famfamfam's silk icon set. Commented Apr 30, 2011 at 23:28
  • 1
    @Mark, in Photoshop, use "Image/Resize..." and first uncheck "Resample." Then enter the new pixels/inch value and press 'ok.' The pixel dimensions of your image will not be altered but the new metadata will be written when you re-save the PNG. Indeed, having dpi not equal to 96 means WPF won't use native pixel size when Image.Stretch="None". Many thanks to Will for this awesome fix. Commented Feb 27, 2015 at 19:47
  • If somebody needs a tool for the DPI correction: You can use Paint.NET, which is free and easy to use for this purpose. Commented Mar 29, 2017 at 15:32