Page 1 of 1

[Mod] Texture Resizer [1x1textureresizer]

PostPosted: Wed Apr 10, 2013 21:05
by khonkhortisan
This mod uses ImageMagick on server startup to scale all node and item (but not formspec) images to a specific resolution.
Predecessor: http://forum.minetest.net/viewtopic.php?id=5288
Dependencies: Being loaded last, and ImageMagick (for now)
License: May be difficult to pick one as I copied three functions to make up for the lua language.
Problems:
It must be named something like "1x1textureresizer" so it is loaded last.
Currently it scales with transparency, which makes some mesecons invisible. If it removed transparency (-alpha off), it would make my rubik's cube black.
I need more image programs
It doesn't delete old resized images when the resolution is changed or the mod is disabled or other mods are removed
It re-resizes resized images
Download: https://github.com/khonkhortisan/1x1textureresizer
You can disable the mod, set resolution, use a specific image program (only the one for now), and enable an easter egg through booleans at the top of the init.lua.
example of 1px: Image
easter egg: http://s8.postimg.org/m9sct98er/minetest2x2texture.png

PostPosted: Fri May 03, 2013 19:17
by sfan5
Haha, not bad