Rhino 8 SR11 Script Editor - project icon .svg problem

I have a project created with the Script Editor in Rhino 8 SR10. I used a .svg file to create icons, and they worked finw in SR10, but when I updated to SR11 and tried to update the icon with a new version, the .svg files do not seem to import correctly.

I made a test with a new project and a test .svg file (here attached), and when I try to open or import it as icon the result is this:

Here’s the test .svg file (created with Affinity Designer 2):

TestIcon

Am I missing something?

Same here. SR11 ignores .svg files seem to load but they don’t create the icon. I had to resort to png renders of them. SR10 was working fine. I am creating .svg with inkscape (tried all the different flavours: inskcape, plain, compressed)

I tried also to use rasterized .png version, but 48x48 pixels or upper resolutions are imported like this (the circle should occupy the whole canvas):

While a 24x24 pixel version causes an import error. Here attached the raster files I used.

TestIcon|311x311
TestIcon_24x24|24x24
TestIcon_48x48|48x48

I hope someone can check this behavior. @eirannejad , is this in your care? Sorry if I mistagged you, but maybe you can point us to the right person for this.

1 Like

I think this is more @CallumSykes project… (the icon editor)

3 Likes

Yes this is all on me, apologies @ale2x72 and @Iván_Pajares_Sánchez.

Testing this in the latest, it still imports weird

No, this should work, but it clearly doesn’t.

I checked the PNGs and they import correctly in the latest release, apologies for the frustration.
The SVG does not, even in the latest release. I’ll fix that asap.

4 Likes

Thanks Callum. By latest release you mean SR11? Because I did the tests in Rhino 8 SR11…

Sorry I meant SR12, I just tried again with 8.12.24268.13002
It’s worth noting some png sizes don’t seem to import correctly at all and I released a fix that should be more encompassing into SR13 when that releases
https://mcneel.myjetbrains.com/youtrack/issue/RH-83944

Thank you Callum. Is there a “bulletproof” resolution for png format in R12? Something that works for sure (ex. 48x48 pixels)?

In SR12 on Windows it looks like anything 48px or higher works, anything lower does not. Which tracks with the nature of the bug I fixed.

Again, I’m sorry for all this hassle, it looks like I didn’t test lower res icons.

1 Like

Hi Callum,

I converted my svg’s to 48x48 jpg’s and they still open in the top/left 80% of the window as described above. It would be great if we could just grab the bottom right corner and re-size.

Am I mis-remembering or wasn’t there an automatic scaling tool in some previous version of the icon editor? So, import an svg/jpg/etc of any resolution and it is optimized?

The Image should always open scaled to fit the canvas. (Fixed in SR13)
The image should also have grips so you can scale it (shift locks aspect ratio).
An imported / embedded SVG will not have this behaviour and will be scaled to best fit, but will not have edit grips.

The download page is still at SR11. Is there an SR13 in the wild?

image

Not yet no sorry, if you download 8.11 you can set Rhino to install SRC and that will let you try out the latest which would be 8.12, 8.12 will be out in due course. Just letting you know fixes have been made.

1 Like

Downloaded SRC 12 and have setup 48x48 icons. Thanks Callum! Looking forward to SRC13!

1 Like

Please don’t hesitate to let me know any more issues, I’m really trying to make the experience seamless for y’all :sweat_smile:

Will it be integrated in the next R9 WIP release? I use shared .RUI(s) for V8 &9, so then I can fix it in WIP and not have to wait for V8.13 sometime in Nov or Dec.

Everything merged into 8 will go into 9, so yes :slight_smile:

Yeah, about that… I’m afraid I’m the bearer of bad news :sweat_smile:

I’m on SR12 and, while my previous test image now imports correctly, the actual image I want to use as an icon does not. This is what happens when importing or opening a 48x48:


And this is what happens when importing a 480x480 (or anything higher than 48x48):

The images I’ve tested are attached below.
AssembleRh_48x48|48x48
AssembleRh logo|500x500
AssembleRh logo_480|480x480
AssembleRh logo_240|240x240

Very very cool icon @ale2x72,

Luckily, I believe I might be the bearer of good news.

1 Like

@ale2x72 , @Iván_Pajares_Sánchez , @declan , @Ja-Ka , could you test Rhino 8.13 with your icons. I have tested every icon in every thread on win/mac and they all display, import and can be resized correctly in 8.13 (for me), which tracks with all the bugs I’ve filed and fixed from these thread. If something doesn’t work for you, then I was unable to reproduce it, and I’ll need to look deeper into it.

Apologies again for the problems and I really appreciate you sticking with me.