#Random Utilities
1 messages · Page 1 of 1 (latest)
I (asked ChatGPT politely to) write a simple python script to crop atlases into individual pieces
It will accept a folder of images, crop them into desired width by height, and output them into folders named by original image names
For cards it should be 71x95 (1x) or 142x190 (2x)
While this one achieves the opposite, it takes a bunch of images that are the same sizes and put together an atlas
lemme send a few similar utilities here too
put these in your assets directory of a mod
the _2x turns a 1x image into 2x
the _1x turns a 2x image into 1x
use this to speed up a sound to use as music, must be in input.ogg
isn't really useful anymore now that Sound API can handle it without speedup
This Python script appends new images to an existing image atlas.
The script first attempts to fill any blank (transparent) slots within the existing atlas before adding new rows or columns, and users can specify whether to append to the right or the bottom of the atlas.
A python script that simply download and install lovely, or updates existing lovely for Linux/Windows users:
This is a jumbo executable (for windows only) that contains all three atlas functionality abovementioned (Crop, Create, Append)
An update to Math's resize 1x & 2x:
this enhanced version will have gui popup and easy to use, handles any scale factor
(eg. 1x->2x input 2, 2x->1x input 0.5 etc.)
requires tkinter
Where can I install the Tkinter and make it work with this cropping tool?