Image Trimmer Plugin issue

General discussion related to SketchUp Pro and Make

Re: Image Trimmer Plugin issue

Postby TIG » Sun Feb 24, 2019 8:01 pm

What do you mean by 'flatten' ?

The 'smooth' step I referred to is actually called 'simplify' in the closing dialog [it attempts to 'smooth' the outline], and it is optional - so just cancel it...
Because of something unfathomable in your image the 'simplifying' fails, so do not do it...
I'll try and see if I can get to the bottom of this issue, but as I'm not getting any error messages of use, then I have a lot to get through...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Image Trimmer Plugin issue

Postby TIG » Sun Feb 24, 2019 8:11 pm

I think I've found the cause for the 'simplify' failure.
It's how the newer version of SketchUp handles exploded entities !
I can fix that...
I'll publish an update in the ImageTrimmer main thread asap.

But it might not fix your issue, because your Gimp-processed PNG might not be correct...
Can you attach a PNG that you think you've fixed a that we can check it...
The 'Flatten' issue might be relevant then ??
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Image Trimmer Plugin issue

Postby TIG » Sun Feb 24, 2019 8:37 pm

Here's the fixed version which addresses the 'Simplify' step issue: https://sketchucation.com/pluginstore?pln=SKMtools

Is the 'Flatten' issue still relevant ?
If so attach your adjusted PNG...
2
TIG
User avatar
TIG 
Global Moderator
 

Re: Image Trimmer Plugin issue

Postby Dprince » Sun Feb 24, 2019 9:22 pm

The new version worked. THANKS!!
0

Dprince 
 

Re: Image Trimmer Plugin issue

Postby TIG » Sun Feb 24, 2019 11:00 pm

Hooray !
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Image Trimmer Plugin issue

Postby maxhouserocks » Wed Feb 27, 2019 4:24 pm

TIG, Thank you so much for your detailed response and the updated script.
I was also able to get it to work by NOT doing the smoothing option. I used "Simplify Selected Curves" in "Edge Tools2" to smooth the alpha selection once converted to lines. Worked great!
I will try the new updated one shortly also. It is an AMAZING time saver for us creating products from images for retail store stocking.

I hope people thank you enough on a daily basis, because there are a handful of you guys that really make sketchup an amazingly powerful tool when applying the scripts you create. I try to avoid tedious, repetitive tasks as much as possible and usually, someone like your self has run into the same problem and solved it. A mighty "Huzzah" to you sir!

Thanks again for the help,
Bob
0
User avatar
maxhouserocks 
 

Re: Image Trimmer Plugin issue

Postby kucher » Wed Jun 19, 2019 4:09 pm

Hi,

I have trouble with trimming speed, it took 20 minutes to trim the FRONT view attached. The TOP view didn't respond still after half an hour of processing. Maybe there is a way to optimize the files or something? Thanks.
0

kucher 
 

Re: Image Trimmer Plugin issue

Postby TIG » Thu Jun 20, 2019 6:01 pm

You could speed things up by trimming the PNG to miss out all of the white-space around its edges - then use it...
Use something like Gimp or PhotoShop.

Every transparent pixel has to be examined, so the fewer the better...

Also the front trimmed image gas relatively few 'holes', but the top view has hundreds !
Again finding all of the holes etc takes time.

You can also speed things up by down-sizing the images.
For example - the top-view is 640 x 640 [409600 pixels], reducing it to say 450 x 450 means there are under half the pixels to process, and not a lot of sharpness is lost.
Incidentally - on its own, trimming that image to remove the perimeter white-space removes 50800 pixels from the checking process [about 1/8th fewer pixels]. Reducing the image size to about half of the total makes additional savings...

So doing some image tweaking before trying to trim them...
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to SketchUp Pro & Make Discussions

Who is online

Users browsing this forum: No registered users and 5 guests

Visit our sponsors: