sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Image Trimmer Plugin issue

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    40 Posts 7 Posters 8.7k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      Dprince
      last edited by

      Winrar is 64bit , i have no other compression software installed. I did restart also

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Let's try and force .jar files always to open in Java...

        Find the folder:
        C:\Users\YourUserName\AppData\Roaming\SketchUp\SketchUp 2018\SketchUp\Plugins\SKMtools
        It might be hidden - either reset folder-options to show hidden files, or paste the whole path into a Windows Explorer window's path-bar...
        Find one of the .jar files in that folder: e.g. EdgeDetector.jar
        Select its icon, right-click > context-menu > "Open with"
        In the dialog which opens see what it's set to open with...
        Whatever it is set to, choose 'Java' [it might have a longer name, you might have to brose to find it ?] and remember to check the box to set it always to open with this app.
        You will undoubtedly get some error messages - don't worry, these are to be expected since we aren't passing a valid in/out file path when we 'Run' a .jar this way...

        Retry SketchUp > ImageTrimmer - any improvement ?

        TIG

        1 Reply Last reply Reply Quote 0
        • D Offline
          Dprince
          last edited by

          IT no longer open with Winrar but now sketchup crashes while immage trimmer is in process

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            Can you run it with the Ruby Console open, and report any errors you see before the crash...

            Can you also post the failing PNG file so I can test it...


            PS:
            Another thing occurs to me...
            It might be an issue with file creation and permissions...
            When you installed SketchUp did you do it properly ?
            There is only one correct way to do it.
            Other ways cause weird and unpredictable permission issues...
            Here's how to do it...

            Close SketchUp.
            Find the installer exe file - probably in your Downloads folder ?
            Select its icon, right-click > context-menu > "Run as administrator"
            When prompted choose "Repair" [if it's already installed] or "Install" [otherwise].

            When it's done restart SketchUp and retry the tool...

            If it's still flaky try the above process, but this time choose Uninstall, then immediately rerun it and Install it.

            Any custom installed Plugins etc should be unaffected by these processes...

            TIG

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dprince
              last edited by

              I'm having this issue again downloaded java but got this error when i try to open edgedectator with java


              java error.PNG

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                It's a somewhat agèd toolset...

                Please read all of the usage guidance...

                You must have an Image entity selected.

                Your system must have Java installed and activated.
                Also the .jar file-type must be set to be executed under Java.
                Some de/compression apps can hijack that file type, thus preventing Java from executing the file...

                The various .ini files are written [temporarily] into a special Temp folder - do you see those ?

                Please supply any Ruby Console errors you might get when trying to use the tool...

                TIG

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Dprince
                  last edited by

                  i do have java installed and i use the tool correctly but everytime i try this error happens. the edge detector file name is not selected in winrar. i go inside skm tools folder open with java and then i get the java error as show before


                  edge.PNG


                  skmtools.PNG

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    Your de/compression app WinRar has hijacked the .jar file-type, thereby preventing Java from executing.

                    It's clear from your screen-shot image that all of your .jar files are associated with WinRar !

                    Open WinRar and change its Options to ignore .jar file type !!
                    Nothing but Java should be associated with opening .jar files...

                    When fixed Java might get to execute them !!!

                    The retry...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Dprince
                      last edited by

                      I already did that but the issue still remains

                      1 Reply Last reply Reply Quote 0
                      • TIGT Offline
                        TIG Moderator
                        last edited by

                        @dprince said:

                        I already did that but the issue still remains

                        You have NOT disassociated .JAR files from opening in WinRar.
                        If you had they wouldn't be displayed as 'belonging' to WinRar, and they wouldn't be opening in WinRar - both clearly shown in your screen-shot.

                        It is a setting in WinRar...Capture.PNG
                        Ensure that .JAR file type is NOT ticked and save changes.

                        Note that other de/compression tools can also hijack this file-type, causing similar unexpected problems...

                        .JAR files should be set to always open [execute] with Java.
                        If they don't automatically revert when the WinRar settings are fixed, you can try Folder Options on a JAR file using 'Open with...' and setting Java as 'always'...

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • maxhouserocksM Offline
                          maxhouserocks
                          last edited by

                          "there were no shapes that could form faces"

                          the plugin runs, does its work, but in the end gives this message
                          "there were no shapes that could form faces"

                          and an empty component is created.

                          could someone please let me know what i can do.
                          is the trans png the prob?

                          thanks,
                          bob

                          Robert A. Christman
                          http://rachristman.blogspot.com/

                          1 Reply Last reply Reply Quote 0
                          • TIGT Offline
                            TIG Moderator
                            last edited by

                            @Bob
                            It's almost certain that your PNG is not set up properly.
                            ImageTrimmer needs the PNG image to contain 2 types of pixel - transparent and opaque.
                            If you have some semi-transparent pixels they are still seen as being transparent !

                            So use something like Gimp to edit the PNG...

                            Flatten it, so that then no pixels are transparent at all.
                            Now add an Alpha channel [transparency].
                            Now use the magic-wand to select the colored pixels [probably == 'white'] which you want to be transparent.
                            Check that the pixels that you'd expect to be 'transparent' are selected properly.
                            [If needed you can select another 'colored' area - e.g. == 'off-white']
                            Then Delete them.
                            Save the PNG with the changes.
                            Reimport the corrected Image and try ImageTrimmer gain...

                            Alternatively, attach the problem PNG and I'll fix it... BUT it's best if you understand how to sort our your own mess........

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              Dprince
                              last edited by

                              i keep getting this error with immage trimmer https://www.screencast.com/t/hePdoETQ

                              1 Reply Last reply Reply Quote 0
                              • TIGT Offline
                                TIG Moderator
                                last edited by

                                @dprince said:

                                i keep getting this error with immage trimmer https://www.screencast.com/t/hePdoETQ
                                Please read the post, just before yours: https://sketchucation.com/forums/viewtopic.php?p=646097#p646097
                                I suspect that your PNG's transparency is not set up correctly...

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  Dprince
                                  last edited by

                                  I got the same error message after doing what you suggested

                                  1 Reply Last reply Reply Quote 0
                                  • Dave RD Offline
                                    Dave R
                                    last edited by

                                    Share the image so we can help you out.

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      Dprince
                                      last edited by

                                      Thanks. here's the image


                                      bottle.png

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        First off, do yourself a favor and crop the PNG to remove all of the unwanted 'white' surrounds.
                                        Otherwise the processing time extends unnecessarily.

                                        Next flatten the PNG and reset an Alpha layer.
                                        Now pick all of the unwanted white parts around the edges, and delete them...

                                        Import the PNG Image.
                                        Run ImageTrimmer...

                                        Near the end, when you are prompted, do NOT choose to 'smooth' the cut-out image's outline - something about this particular shape causes its faces to fail - without any obvious errors... 😲
                                        If this happens unexpectedly, you can just hit Undo, and the un-smoothed cut-out is reverted and kept anyway...

                                        But now by skipping the 'smooth' step you will get a trimmed image...Capture.PNG

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • Dave RD Offline
                                          Dave R
                                          last edited by

                                          Interesting.

                                          Thank you.

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            Dprince
                                            last edited by

                                            im not sure how to do that

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement