A small tool to potentially help emote artists resize their images faster/easier.
The folders and sizes can be configured in the config.json
file.
Structure of the file:
{
"config": {
"filter": "lanczos",
"experimental": {
"sharper": false,
"smoother": false,
"edgeEnhance": false,
"detail": false
}
},
"twitchEmotes": {
"sizes": [112, 56, 28],
"inputFolder": "in_emotes",
"outputFolder": "out_emotes"
},
"subBadges": {
"sizes": [72, 36, 18],
"inputFolder": "in_badges",
"outputFolder": "out_badges"
}
}
twitchEmotes
and subBadges
are the default configurations.
Each key has an object with the sizes
as an array of intergers and two strings with inputFolder
and outputFolder
.
The config
part is mostly for the filter
method for downsampling. Supported here are the following
lanczos
bicubic
bilinear
Usually you'd want to use either lanczos
or bicubic
.
In addition to that there are 4 new experimental
options. These apply filters after downsampling. The two that might improve the image are sharper
and detail
, please try these before actually using. Simply set them to true
to activate and false
to deactivate.
- Put all your .png files that you want to be resized in the
in_emotes
folder and run theresize.exe
. - It will automatically resize them to the sizes mentioned above and put them into the
out_emotes
folder named asfile_size.png
(e.g. Kappa_112.png).