Incorrect size of imported SVG icons

Hello,
last month when I imported my custom icons, their dimensions were displayed correctly (I don’t know what the exact version was):

This is no longer the case today; here is what I get:
image

The icons from last month and today come from the same software (Lunacy). I just tested with last month’s icons, and the result is the same; the icon display is twice as small as the button size.
This is strange because in the icon editor, the dimensions are correct.

Here are two icons:

icons.zip (1.5 KB)

Sysinfo:

Rhino 8 SR12 2024-9-17 (Rhino 8, 8.12.24261.13001, Git hash:master @ 8259b0e5b4454adebdaa738e9d738a475418afda)
License type: Commercial, build 2024-09-17
License details: Cloud Zoo

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 32GB)
.NET 7.0.10

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce GTX 1080 Ti (NVidia) Memory: 11GB, Driver date: 3-1-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 551.76
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port #0
- Secondary monitor attached to adapter port #1

Secondary graphics devices.
Intel(R) UHD Graphics 630 (Intel) Memory: 1GB, Driver date: 6-1-2021 (M-D-Y).
> Integrated graphics device with 3 adapter port(s)
- There are no monitors attached to this device!

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 3-1-2024
Driver Version: 31.0.15.5176
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 11 GB

Rhino plugins that do not ship with Rhino
C:\ProgramData\McNeel\Rhinoceros\7.0\Plug-ins\Datasmith Rhino Exporter (d1fdc795-b334-4933-b680-088119cdc6bb)\DatasmithRhino7.rhp “Datasmith Exporter” 5.0.3.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.12.24261.13001
C:\Program Files\Rhino 8\Plug-ins\WebBrowser.rhp “WebBrowser”
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino 8\Plug-ins\RhinoLabsTools.rhp “Rhino Labs Tools”
C:\Program Files\Rhino 8\Plug-ins\AnimationTools.rhp “AnimationTools”
C:\Program Files\Rhino 8\Plug-ins\IdleProcessor.rhp “IdleProcessor”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.12.24261.13001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.12.24261.13001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.12.24261.13001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.12.24261.13001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.12.24261.13001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”

I manage to solve this problem by modifying the dimension attributes in the SVG. I don’t remember which version of Rhino I had installed last month, but I’m sure I didn’t need to do this.

From

<?xml version="1.0" encoding="utf-8"?>
<svg width="32px" height="32px" viewBox="0 0 32 32" ...

To

<?xml version="1.0" encoding="utf-8"?>
<svg width="48px" height="48px" viewBox="0 0 32 32" ...

You’re lucky you see anything at all

Adding to the pile:

Maybe these are symptoms of the same problem?

Hi @kitjmv,

I had a similar problem when I tried to import my svgs and the icon was covering a quarter of the button. I design my icons with Gh2 so my solution was to use a canvas of 48x48 rather 24x24 pixels but I had to scale the old ones.

George

1 Like