sketchucation logo sketchucation
    • Login
    1. Home
    2. flyboy308
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 4
    • Groups 1

    flyboy308

    @flyboy308

    10
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    flyboy308 Unfollow Follow
    registered-users

    Latest posts made by flyboy308

    • RE: [Plugin] ImageTrimmer

      @flyboy308 said:

      @tig said:

      You need to fix the PNG...

      Then it works OK.

      The PNG has an alpha defined for all pixels - although the main background is transparent the remainder are also slightly transparent.

      Here's how I fixed it...

      Open the PNG in Gimp [or a similar app].
      Flatten the image [no alpha at all].
      Add an alpha channel layer.
      Select the black background using the magic wand.
      Note that that tool's sensitivity might need downgrading as her suit is also in shades of black.
      Delete those to show a transparent background.
      Select a few remaining black islands - e.g. between her calves, in her hair etc...
      Delete those too.

      You also need to crop the PNG's content - otherwise thousands of background pixels will be inspected without any real effect - other than extending the processing time unnecessarily.

      I've attached the reworked PNG... and a screenshot of it inside a SKP model...

      Thank you so much!!

      Tig. Even using your FIXED version of the image, I still could not get it to work. After further investigation, I found that the program would not run with my Google Sketchup Pro version 8, 32-bit, on my Windows 10 64-bit operating system. Go figure. But it does work perfectly on my original image using both Sketchup 2015 and Sketchup 2017 Make. I could not find a 64-bit version of Sketchup 8 to see if that would work. This might help someone else or maybe someone who has success with the older version might respond.

      Once again thank you for looking at this issue for me. Ron

      posted in Plugins
      F
      flyboy308
    • RE: [Plugin] ImageTrimmer

      @tig said:

      You need to fix the PNG...

      Then it works OK.

      The PNG has an alpha defined for all pixels - although the main background is transparent the remainder are also slightly transparent.

      Here's how I fixed it...

      Open the PNG in Gimp [or a similar app].
      Flatten the image [no alpha at all].
      Add an alpha channel layer.
      Select the black background using the magic wand.
      Note that that tool's sensitivity might need downgrading as her suit is also in shades of black.
      Delete those to show a transparent background.
      Select a few remaining black islands - e.g. between her calves, in her hair etc...
      Delete those too.

      You also need to crop the PNG's content - otherwise thousands of background pixels will be inspected without any real effect - other than extending the processing time unnecessarily.

      I've attached the reworked PNG... and a screenshot of it inside a SKP model...

      Thank you so much!!

      posted in Plugins
      F
      flyboy308
    • RE: [Plugin] ImageTrimmer

      @tig said:

      Please attach the PNG image file that you want to trim...

      If the JAR files are working OK, then I suspect that perhaps the PNG itself has some transparency [alpha] assigned for all of its pixels - which means all pixels are ignored and the result is 'empty'...
      Also even PNGs with some solid pixels can fail if they are in 'filaments' of only 1 pixel wide - again these get skipped in the trimming...
      Only the 'background' you want to remove can have any transparent pixels, the ones to be kept must be 100% solid.

      But seeing the actual PNG will help confirm the problem... otherwise we have to guess...

      Attached is the file that has the transparency. Ron


      WOMAN BUSINESS PNG.png

      posted in Plugins
      F
      flyboy308
    • RE: [Plugin] ImageTrimmer

      Hi Tig,

      As with many I am having problems with the EdgeTrimmer. I am using Google Sketchup Pro 8. Windows 10. Recently installed the latest version of JAVA. All of the Jar files have the JAVA logo which I would guess that it should work. Checked all of the files and their locations and the ToolBox loaded correctly. Full permissions are granted for the plugin folder and subfolders. It does not perform as the directions would indicate. No edges, did not give messages to tilt up, etc.

      The following is the Ruby Console output when I ran the ImageTrimmer tool. Any idea what is happening?

      Error: #<NoMethodError: undefined method material' for nil:NilClass> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/image_class.rb:316:in use_as_material'
      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/image_class.rb:599:in save_imagefile' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb:191:in process_image'
      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb:170:in initialize' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb:834:in new'
      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb:834

      Thank you for your help.

      Ron

      posted in Plugins
      F
      flyboy308