sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Reading SKP thumbnail

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 378 Views 3 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.
    • T Offline
      tomasz
      last edited by

      Hi,

      I have made a search but haven't found a solution yet.
      Does someone know a way to read a thumbnail stored in SKP file?
      If SU Team could give us info on where we can find its location and a size, that would be enough πŸ˜„

      Tomasz

      Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        I also thought that tbd wrote a thumbnail extract utility, a long time ago.

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          IF SketchUp is loaded, you can generate an image file for any skp file using:
          Sketchup::save_thumbnail

          If not, the thumbnail should be in the normal place and size required by Windows, so popular graphic utilities (like ImageMajik,) or C function calls can retrieve it.

          Checking the code snippets index, we have:
          [ cod e] extract png thumbnail image from .skp file
          ... which has both outside and inside SketchUp examples.

          πŸ’­

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • T Offline
            tomasz
            last edited by

            Thanks! I have checked 3 or more pages with search result, but didn't find the snippets post. I will be checking it first now.

            I want extract them directly from files, without opening them in SU.
            Jim's extract_png.rb looks like a good solution.

            Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              @tomasz said:

              I want extract them directly from files, without opening them in SU.
              Jim's extract_png.rb looks like a good solution.

              You do not need to open the file(s) using:
              Sketchup::save_thumbnail
              .. just that you must use it from within SketchUp Ruby.

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • T Offline
                tomasz
                last edited by

                @dan rathbun said:

                You do not need to open the file(s) using:
                Sketchup::save_thumbnail
                .. just that you must use it from within SketchUp Ruby.

                Right, I didn't realize that there is a path parameter in this method!

                Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

                1 Reply Last reply Reply Quote 0
                • tt_suT Offline
                  tt_su
                  last edited by

                  blink -- me neither! I guess I always just skipped over that method...

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

                  Advertisement