[Mod] Texture Resizer [1x1textureresizer]

User avatar
khonkhortisan
Member
 
Posts: 30
Joined: Fri Jun 29, 2012 17:30

[Mod] Texture Resizer [1x1textureresizer]

by khonkhortisan » Wed Apr 10, 2013 21:05

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
Last edited by khonkhortisan on Sun Apr 14, 2013 21:55, edited 1 time in total.
 

User avatar
sfan5
Moderator
 
Posts: 3772
Joined: Wed Aug 24, 2011 09:44
Location: Germany
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri May 03, 2013 19:17

Haha, not bad
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)
 


Return to WIP Mods



Who is online

Users browsing this forum: wziard and 3 guests