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.
    • J Offline
      Jspro
      last edited by

      I apologize for asking such a silly question, it's pretty obvious what this plugin does but I would like to ask anyway. My pictures that I have texture my model with in sketchup for Google Earth is making my file size too large to be accepted in Google earth. Very frustrating and i am running out of ideas,i had came across this plugin, is this something that would work for me not quite sure how it works? so do I finish my model first then download the plugin? I am new to these plugins and also new to geo modeling, any help would be appreciated John

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

        Hi,
        As Gully already said this plugin works be decreasing the size of texture images (or quality). It can not relieve you from the task of efficent modeling, ie. only bringing images into SketchUp that you actually need.
        You can download it whenever you want. You should run it after you finished the model (you can keep an original version and use the plugin to make a lightweight degraded version).

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jspro
          last edited by

          Hello Aerialius , im a sketchup user and i have finish my model and have tried to upload my model into the sketchup preview , and am sorry to say that ( KMZ too large. In order to include them in Google Earth, we convert uploaded SketchUp files like yours to another format: KMZ. The KMZ file size that we generated from your SketchUp file is too large. We recommend simplifying your model, splitting it into two or more models or reducing the resolution of your image textures. When you're done, try re-uploading )i had even unlocked the google terrain to lower the file size to 8,808 with the same affects, so im ready to use the plugin not familiar on how to use these , would you mind helping me, do i download the ImageMagick.zip first or is this the texture resizer? how do i get it into sketchup? sorry im just new to this John

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jspro
            last edited by

            lookin for help i have downloaded the ImageMagick and the resizer into my su plugin folder and im not sure what im to expect is there a supposed to be a icon? i have win 7 not quite sure if i did this properly can some help me? thanks john

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

              hi

              In the 'Sketchup Menu' you should have 'Plugins' with a drop down item 'Texture Resizer'.

              If it can't find 'ImageMagics' it will ask you for the 'path' once you clicked on it.

              then follow the instructions in the first post...

              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
              • J Offline
                Jspro
                last edited by

                thank you for your reply i guess i did something wrong, the texture resizer isn't there in the plugin drop down

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jspro
                  last edited by

                  yes i was able to load the resizer and tried to use it on my model, it wiped away the textures replace them with white faces , it was set by default at 50%, did this twice and tried to use the limit texture size with same results. is there something that im missing? thanks john

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    krokberg
                    last edited by

                    I thought that I try the plugin to optimize some models that ware sent to me but I ran into a problem. When trying to run "Apply" I get the following error:

                    Error #<NameError:uninitialized constant AE::Bounds.>

                    I'm using SketchUp 8.0.3117 with Texture Resizer 1.4.0 and ImageMagick 6.8.0.

                    Any clues to what the problem might be?

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

                      Oh, thanks, I didn't notice that when testing. It should be AE::TextureResizer::Bounds.
                      I fixed it in version 1.4.1.

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

                        Just tried this - wanted to ensure texture where no larger than a given size.

                        I set percentage to 100% as I wanted to keep textures smaller at their original size - then I enabled Limit texture size.

                        ResizeError.png

                        I got this error:
                        Error #<NoMethodError:undefined methodempty?' for nil:NilClass.>`

                        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

                          Strange that there isn't any backtrace...

                          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

                            I found the bug and fixed it. The backtraces became lost because of a rescue Exception.

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

                              Thanks for that. πŸ˜„

                              Though ... I broke it again... πŸ˜•

                              
                              Error #<NoMethodError;undefined method `entities' for #<Sketchup;;ComponentInstance;0x773ec0c>.>
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;253;in `initialize'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;258;in `call'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;258;in `initialize'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;258;in `each'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;258;in `initialize'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;211;in `new'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;211;in `process'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;188;in `options_dialog'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;197;in `call'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;197;in `show_modal'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;197;in `options_dialog'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;114;in `run'
                              C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_TextureResizer/TextureResizer.rb;61
                              
                              

                              It appear you're trying to use ComponentInstance.entities which doesn't exist in the API - all though a few plugins add this method to the ruby classes.

                              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

                                Changed line 253 to:
                                definition.entities.each{|e| block.call(e, s*scale)}

                                Working! πŸ˜„

                                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

                                  Here's the list of material in a model where I needed to size down the textures:

                                  Before:

                                  
                                  === TEXTURE MATERIALS BY SIZE ===
                                  Material4
                                    Size; 4000x4000 pixels
                                    Size; 45.78 MB estimated uncompressed RGB
                                    Size; 61.04 MB estimated uncompressed RGBA
                                    File; Material4_extractedTex6580.jpg
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  Material13
                                    Size; 4000x4000 pixels
                                    Size; 45.78 MB estimated uncompressed RGB
                                    Size; 61.04 MB estimated uncompressed RGBA
                                    File; Material13_extractedTex8210.jpg
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  Material3
                                    Size; 2255x1782 pixels
                                    Size; 11.50 MB estimated uncompressed RGB
                                    Size; 15.33 MB estimated uncompressed RGBA
                                    File; Material3_extractedTex1993.jpg
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  Material14
                                    Size; 2255x1782 pixels
                                    Size; 11.50 MB estimated uncompressed RGB
                                    Size; 15.33 MB estimated uncompressed RGBA
                                    File; Material14_extractedTex3247.jpg
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  Material1
                                    Size; 2048x1536 pixels
                                    Size; 9.00 MB estimated uncompressed RGB
                                    Size; 12.00 MB estimated uncompressed RGBA
                                    File; Material1_extractedTex5040.jpg
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  black3
                                    Size; 2814x850 pixels
                                    Size; 6.84 MB estimated uncompressed RGB
                                    Size; 9.12 MB estimated uncompressed RGBA
                                    File; glass.psd
                                    Path; E;\LIBRARY\DIGITAL LIBRARY\MORQ LIBRARY TEXTURES\Emiliano
                                  black1
                                    Size; 2814x850 pixels
                                    Size; 6.84 MB estimated uncompressed RGB
                                    Size; 9.12 MB estimated uncompressed RGBA
                                    File; glass.psd
                                    Path; E;\LIBRARY\DIGITAL LIBRARY\MORQ LIBRARY TEXTURES\Emiliano
                                  treverk1
                                    Size; 1500x1500 pixels
                                    Size; 6.44 MB estimated uncompressed RGB
                                    Size; 8.58 MB estimated uncompressed RGBA
                                    File; treverk1_extractedTex7432.jpg
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  treverk2
                                    Size; 1500x1500 pixels
                                    Size; 6.44 MB estimated uncompressed RGB
                                    Size; 8.58 MB estimated uncompressed RGBA
                                    File; treverk2_extractedTex1239.jpg
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  Material15
                                    Size; 1416x1416 pixels
                                    Size; 5.74 MB estimated uncompressed RGB
                                    Size; 7.65 MB estimated uncompressed RGBA
                                    File; Material15_extractedTex9798.png
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  Material8
                                    Size; 1417x1408 pixels
                                    Size; 5.71 MB estimated uncompressed RGB
                                    Size; 7.61 MB estimated uncompressed RGBA
                                    File; Material8_extractedTex7662.tif
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  Material16
                                    Size; 1417x1408 pixels
                                    Size; 5.71 MB estimated uncompressed RGB
                                    Size; 7.61 MB estimated uncompressed RGBA
                                    File; Material16_extractedTex62.tif
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  Material5
                                    Size; 1000x975 pixels
                                    Size; 2.79 MB estimated uncompressed RGB
                                    Size; 3.72 MB estimated uncompressed RGBA
                                    File; Material5_extractedTex2763.jpg
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  Material30
                                    Size; 1000x975 pixels
                                    Size; 2.79 MB estimated uncompressed RGB
                                    Size; 3.72 MB estimated uncompressed RGBA
                                    File; Material30_extractedTex5676.jpg
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  ---
                                  
                                  

                                  Then I ran the script, got some messages:

                                  
                                  black1; could not write file C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480/glass.psd
                                  black3; could not write file C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480/glass.psd
                                  
                                  

                                  I assume PDS files are not supported?

                                  After:

                                  
                                  === TEXTURE MATERIALS BY SIZE ===
                                  black3
                                    Size; 2814x850 pixels
                                    Size; 6.84 MB estimated uncompressed RGB
                                    Size; 9.12 MB estimated uncompressed RGBA
                                    File; glass.psd
                                    Path; E;\LIBRARY\DIGITAL LIBRARY\MORQ LIBRARY TEXTURES\Emiliano
                                  black1
                                    Size; 2814x850 pixels
                                    Size; 6.84 MB estimated uncompressed RGB
                                    Size; 9.12 MB estimated uncompressed RGBA
                                    File; glass.psd
                                    Path; E;\LIBRARY\DIGITAL LIBRARY\MORQ LIBRARY TEXTURES\Emiliano
                                  Material15
                                    Size; 1416x1416 pixels
                                    Size; 5.74 MB estimated uncompressed RGB
                                    Size; 7.65 MB estimated uncompressed RGBA
                                    File; Material15_extractedTex9798.png
                                    Path; C;/Users/ktn/AppData/Local/Temp/VfSTextureCache
                                  treverk1
                                    Size; 512x512 pixels
                                    Size; 768.00 KB estimated uncompressed RGB
                                    Size; 1.00 MB estimated uncompressed RGBA
                                    File; treverk1_extractedTex7432.jpg
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  Material4
                                    Size; 512x512 pixels
                                    Size; 768.00 KB estimated uncompressed RGB
                                    Size; 1.00 MB estimated uncompressed RGBA
                                    File; Material4_extractedTex6580.jpg
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  treverk2
                                    Size; 512x512 pixels
                                    Size; 768.00 KB estimated uncompressed RGB
                                    Size; 1.00 MB estimated uncompressed RGBA
                                    File; treverk2_extractedTex1239.jpg
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  Material13
                                    Size; 512x512 pixels
                                    Size; 768.00 KB estimated uncompressed RGB
                                    Size; 1.00 MB estimated uncompressed RGBA
                                    File; Material13_extractedTex8210.jpg
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  Material16
                                    Size; 512x508 pixels
                                    Size; 762.00 KB estimated uncompressed RGB
                                    Size; 1016.00 KB estimated uncompressed RGBA
                                    File; Material16_extractedTex62.tif
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  Material8
                                    Size; 512x508 pixels
                                    Size; 762.00 KB estimated uncompressed RGB
                                    Size; 1016.00 KB estimated uncompressed RGBA
                                    File; Material8_extractedTex7662.tif
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  Material5
                                    Size; 512x499 pixels
                                    Size; 748.50 KB estimated uncompressed RGB
                                    Size; 998.00 KB estimated uncompressed RGBA
                                    File; Material5_extractedTex2763.jpg
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  Material30
                                    Size; 512x499 pixels
                                    Size; 748.50 KB estimated uncompressed RGB
                                    Size; 998.00 KB estimated uncompressed RGBA
                                    File; Material30_extractedTex5676.jpg
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  Material3
                                    Size; 512x404 pixels
                                    Size; 606.00 KB estimated uncompressed RGB
                                    Size; 808.00 KB estimated uncompressed RGBA
                                    File; Material3_extractedTex1993.jpg
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  Material14
                                    Size; 512x404 pixels
                                    Size; 606.00 KB estimated uncompressed RGB
                                    Size; 808.00 KB estimated uncompressed RGBA
                                    File; Material14_extractedTex3247.jpg
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  Material1
                                    Size; 512x384 pixels
                                    Size; 576.00 KB estimated uncompressed RGB
                                    Size; 768.00 KB estimated uncompressed RGBA
                                    File; Material1_extractedTex5040.jpg
                                    Path; C;/Users/thm.ARC/AppData/Local/Temp/skp_textureresizer61480
                                  ---
                                  
                                  

                                  Notice Material15 which is a PNG still is larger than 512px. Why is that? There was no messages about this file.

                                  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

                                    It seems SketchUp's texture writer does not write psd files. In that case, I'll probably force a default extension.

                                    I have no idea what could cause to skip Material15. Is it reproducible? Can you send me a file with that material and its geometry (and group nesting...).

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

                                      It's 8MB (after removing the two PSD textures)
                                      PM me your email address and I'll send it to you.

                                      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

                                        I think I have fixed it now.

                                        Also the texture writer can export PSDs (I have no idea why these failed), but it can't convert psd into other formats by setting a different file extension.

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

                                          @aerilius said:

                                          but it can't convert psd into other formats by setting a different file extension.

                                          Does the texture resizer change the format?

                                          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

                                            Here not.
                                            But the underlaying ImageMagick.rb has the option to (temporarily) change lossy formats into lossless bmp. I use that in another plugin, mainly because bmps process much faster.

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

                                            Advertisement