[Plugin] Texture Resizer (1.5.6) — updated 15.05.2013
-
Very good plugin, thank you very much.
-
thank you very much !!
-
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!
-
Thanks for the comments!
If someone would be interested to help me get it work on OSX, that would be great. -
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.
-
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.
-
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
-
-
this is a great plugin for GoogleEarth modellers!
-
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".
-
@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
-
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 !
-
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.
-
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). -
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.
-
Ah yea... that is an annoying limitation...
-
I tested
Material.write_thumbnail
and it failed too often. It seems there are absurd limitations. Theresolution
argument only accepts values that are 1px smaller than the smaller length of [width, height], but "resolution" is always applied as the maximum length. Thus an image of 102433 can only be resized with resolution=32, whereas resolution=31 fails because 31(33/1024) < 1, so you never can get 500*16. -
Thanks! I've been wanting a plugin like this. Nice work!
-
thank you very much realy great work respect
i hope google see whats going on here on the plugins front -
Hi Aerilius,
have managed a Mac install of ImageMagicks using Homebrew http://mxcl.github.com/homebrew/ the nice thing is it sorts out all the dependencies for the system it's running on...
I now get this in Terminal,
%(#0080BF)[$ which convert
/usr/local/bin/convert]
but I get your 'install advice' in SUalso, I get... I can pull more details if you want...
%(#0080BF)[$ convert -v
Version: ImageMagick 6.7.1-1 2011-10-27 Q16 http://www.imagemagick.org$ convert -list type
Bilevel
ColorSeparation
ColorSeparationMatte
Grayscale
GrayscaleMatte
Optimize
Palette
PaletteBilevelMatte
PaletteMatte
TrueColorMatte
TrueColor]I had to completely get rid of MacPorts before I had any joy compiling [and reinstall my system ruby that MacPorts had modified...]
I'll try some things Saturday night, soo if you have any ideas let me know.
john
Advertisement