Upscaling images with ruby

I’ve read a lot of post from people with hi-rez displays having tiny icons on their old plugins…

I decided to see if Sketchup::ImageRep.new could be used as an interim solution…

I tested on some of @Fredo6’s icons and got some advice from @Aerilius

I have managed this so far… [ the gif playback does not reflect the quality gained ]

it has delays coded in for the gif, so it is much faster without those…

I can also run width and hight variations i.e. 2x3, 10x5, 3x3, etc…

when compared side by side with the best ‘mogrify’ recipe I could find, the results are clearer at toolbar icon sizes…

I’m posting this to see if others are experimenting with ImageRep and if anyone want to test this on a PC…

john

2 Likes

There is a great need for a solution to this problem. I would love to see some kind of integrated / automated solution here.

A solution that works not only for John’s plugin (or some plugin author’s), but for all the other plugins that have not been updated. SketchUp’s GUI framework should do that, but I guess John even has some ObjectSpace magic…

continuing the quest…

it does a reasonable good of converting to B&W, so the next step, is can it output vectors…

it can obviously give you all the 2d coordinates, but I haven’t yet looked at ‘shortest distance’ algorithms to stick those together…

Button_Abort Button_Abort%401X1 Button_Change%20copy Button_Change%20copy%401X1 Button_Clear Button_Clear%401X1 Button_Disk Button_Disk%401X1

john

image to centre points…

john