Skip to content

small tool to automatically resize images to specific sizes

License

Notifications You must be signed in to change notification settings

makupi/image-resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESIZE

A small tool to potentially help emote artists resize their images faster/easier.

Config

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.

Usage

  • Put all your .png files that you want to be resized in the in_emotes folder and run the resize.exe.
  • It will automatically resize them to the sizes mentioned above and put them into the out_emotes folder named as file_size.png (e.g. Kappa_112.png).

About

small tool to automatically resize images to specific sizes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages