sketchucation logo sketchucation
    • Login
    πŸ”Œ Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

    [Plugin] Texture Resizer (1.5.6) β€” updated 15.05.2013

    Scheduled Pinned Locked Moved Plugins
    104 Posts 35 Posters 96.9k Views 35 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.
    • A Offline
      Aerilius
      last edited by Aerilius

      This Plugin allows to downsample all textures in the model / selection. This can be useful if you want to quickly share a file that is too big because of extensive textures, or you used photos directly from the camera and want to batch-downsample to an optimal resolution.

      As for Google Earth: a to harsh compression isn't necessary (use it only downsize textures to 1024px or meet the 10MB limit) since Google Earth has its own optimization and might in future use higher quality textures.
      TextureResizer.gif

      Download: cross-platform, requires ImageMagick
      Installation: Open Window β†’ Preferences β†’ Extensions β†’ Install Extension and select this file; alternatively use an unzip program to extract the contents into the SketchUp/Plugins folder. [previous downloads: 1250]

      • [anchor=Windows:290er3v8]Windows[/anchor:290er3v8] You can download ImageMagick from the official site or from here. If necessary, the Plugin will ask you where ImageMagick has been installed. Unzip and place the folder "ImageMagick" into the SketchUp\Plugins folder or a location of your choice.
      • [anchor=Linux:290er3v8]Linux/Wine[/anchor:290er3v8] Your distribution most likely comes with native ImageMagick preinstalled (faster), if not install it from the repositories or install the Windows version into Wine.
      • OS X You can download it from the official site or install/compile it using MacPorts or Homebrew.
        [anchor=OSX:290er3v8]Alternative download:[/anchor:290er3v8] OS X (10.4+), no need for ImageMagick. This version does not have the crop/rotate feature.
        Installation: Open Window β†’ Preferences β†’ Extensions β†’ Install Extension and select this file; alternatively use an unzip program to extract the contents into Macintosh HD/Library/Application Support/Google SketchUp #/SketchUp/Plugins [previous downloads: 180]
        PayPalButton

      Version: 1.5.6

      Date: 15.05.2013

      Usage:
      (Menu) Plugins β†’ Resize Textures

      With nothing selected, it resizes all materials; with selection you can choose whether you want only the selected faces to be affected (only in selection) or whether the selected materials should be resized (in the whole model).

      Resizing can be performed either to a given percentage, or optimized to a specific resolution (pixel per meter) or optimized for a specific view (using the plugin Goldilocks if it is installed).

      screenshot_dialog.png

      Textures can now be cropped to the area that is actually used in the model. This way you can get rid of sky or monochrome background of texture maps. If desired, the plugin rotates the crop boundary so that it fits best:
      screenshot_crop.png

      1 Reply Last reply Reply Quote 0
      • Rich O BrienR Online
        Rich O Brien Moderator
        last edited by

        That's very clever πŸ‘

        I'll say thanks on behalf of those who've downloaded so far. Keep up the great work.

        Download the free D'oh Book for SketchUp πŸ“–

        1 Reply Last reply Reply Quote 0
        • tridemT Offline
          tridem
          last edited by

          Great idea πŸ‘

          1 Reply Last reply Reply Quote 0
          • B Offline
            Ben Ritter
            last edited by

            Thank you! πŸ˜„

            1 Reply Last reply Reply Quote 0
            • S Offline
              saturne45
              last edited by

              Very good plugin, thank you very much.

              1 Reply Last reply Reply Quote 0
              • A Offline
                a4chitect
                last edited by

                thank you very much !!

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pitrak
                  last edited by

                  Simply amazing! I was just going to look up a way to reduce texture sizes on a 18MB SU project. I open Sketchucation and this is the first thread of the bunch 😲

                  Thanks for this, I'll give it a go and let you know how it turns out!

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Aerilius
                    last edited by

                    Thanks for the comments!
                    If someone would be interested to help me get it work on OSX, that would be great.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pitrak
                      last edited by

                      The % reduction seems to work great. File size went from 18mb to 10mb and quality is still quite ok.

                      But when I tried the 20pix/meter option I got different results. I posted a cropped screenshot of before and after the reduction. As you can see the right facade remains unaltered, while the new one and the left neighbour are reduced a lot.

                      I've used 'make unique texture' on some of these, maybe that's the problem?

                      BTW, this could work very well with "Component edit window". You select a component, open in another window, change texture size and bring it back. Like that you have control over the different parts of your project.


                      original


                      20pix/meter

                      1 Reply Last reply Reply Quote 0
                      • leedeeteeL Offline
                        leedeetee
                        last edited by

                        This will be a superb tool for those who like to do an odd Google Earth model, and model with hires photographs and quickly optimise them for GE. Nice one. πŸ‘

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Aerilius
                          last edited by

                          During my testing, I also had sometimes cases where the resolution depending option had different results but I thought it was fixed now.
                          There are two possibilities:

                          • The plugin only takes into account the texture dimensions as they are in the materials dialog. If the texture has been scaled using the texture pins, it won't work (for now). Just for a test, you can check this by right-click on face -> reset texture.
                          • If an error happens during conversion, it won't replace the texture.
                            I'll do some testing later.

                          Also, you can use any other number instead of 20px/m if you like πŸ˜‰

                          1 Reply Last reply Reply Quote 0
                          • gullfoG Offline
                            gullfo
                            last edited by

                            Mac library http://www.imagemagick.org/script/binary-releases.php#macosx

                            Glenn

                            http://www.runnel.com

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              AcesHigh
                              last edited by

                              this is a great plugin for GoogleEarth modellers!

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                Aerilius
                                last edited by

                                Sorry, I have seen that one too ( πŸ˜‰ ), but Mac people usually compile that download (or install it via MacPorts). I haven't found yet a pre-compiled portable single-file "ImageMagick.app".

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

                                  @aerilius said:

                                  I haven't found yet a pre-compiled portable single-file "ImageMagick.app".

                                  I haven't either, and I've been looking for 2 years, MacPorts is a nightmare and compiling from source fraught with error.

                                  I have installed lots of other stuff through Terminal, but ImageMagick and GraphisMagic evade me.

                                  On OSX 10.5.[*] the problems stem from a poor implementation of X11 in the Xcode bundle,
                                  so you need the appropriate version from X11 to start with. [If 'InkScape.app' works, X11 has been updated by Apple/Xcode for you.]

                                  All the other dependancies are also OSX Version specific, but not necessarily in a straightforward way.

                                  I'll have another dig, but I'm not sure I can help.

                                  john

                                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    Bertier
                                    last edited by

                                    it's Aerilius first plugin...

                                    he is a super Earth modeler !

                                    I know he's got some awesome plugin to come

                                    he is my hero !

                                    1 Reply Last reply Reply Quote 0
                                    • thomthomT Offline
                                      thomthom
                                      last edited by

                                      I didn't notice this plugin until now.

                                      I see you're using ImageMagik - if you are willing to require that the users have a recent SketchUp version ( SketchUp 8 Maintenance Release 1 ) then you can use Material.write_thumbnail to write out smaller versions of the material's texture.

                                      http://code.google.com/apis/sketchup/docs/ourdoc/material.html#write_thumbnail

                                      Cross platform, native to SketchUp, and doesn't require dependencies other than an updated SketchUp 8M1.

                                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                      List of my plugins and link to the CookieWare fund

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        Aerilius
                                        last edited by

                                        Thanks for that tip! I haven't found it or thought about it. That's probably the most straight-forward way to do the current features cross-platform and inside SketchUp. I'll test how it works with different resolutions.
                                        On the other side, ImageMagick is very powerful to do more advanced image manipulation (I've thought about cropping, distortion and more features) and for higher-quality output (Sinc-Lanczos).

                                        1 Reply Last reply Reply Quote 0
                                        • thomthomT Offline
                                          thomthom
                                          last edited by

                                          Yea, it's much more limited in the output. You cannot specify compression level for JPEGs for instance. And the output must be at least 1px smaller than the original.

                                          But it's a nice little addition to the API that might be useful.

                                          Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                          List of my plugins and link to the CookieWare fund

                                          1 Reply Last reply Reply Quote 0
                                          • thomthomT Offline
                                            thomthom
                                            last edited by

                                            Ah yea... that is an annoying limitation...

                                            Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                            List of my plugins and link to the CookieWare fund

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

                                            Advertisement