Button gets the .PNG image size wrong

@osuire the crash is happening because human-ui includes an old version of Xceed.Wpf.Toolkit.dll (3.0), which is incompatible with the version that is shipped with Rhino (3.6). Due to the way we handle assemblies in Rhino, this causes a conflict if the human-ui version loads before the one shipped with Rhino.

If you remove (or rename) that assembly from the human-ui plugin it shouldn’t crash. I’ve created RH-62909 to look into a way to get around that if possible without causing other issues.

As for your issue with image sizes, your source image appears to be saved with 16 Pixels Per Inch. WPF looks at this to determine what size to show it at. Windows is by default 96 PPI, so 32 pixels * 96 / 16 = 192 logical pixels. If you edit the image and re-save it at 96 PPI, then it should show at the expected size.

Hope this helps!