/waifu2x-macos-scripts

Scripts that wrap around the macOS AppStore version of waifu2x

Primary LanguageShellMIT LicenseMIT

waifu2x-macos-scripts

Introduction

This is the repository where I put my shell scripts that utilizes the CLI interface of waifu2x on macOS (waifu magifier).

Why do you make these?

Most waifu2x upscalers are either Windows only, or lacks some features I want. So I created these, mostly as scripting practices.

Scripts

  • waifu2x.sh

    POSIX sh script. Simple launcher script that passes all args to the executable. Nothing fancy here. Also featured in waifu2x-ios wiki. You need to grant the app file access permission in its GUI before using this. All scripts below depend on this being in your PATH as waifu2x.

  • auto-waifu2x.sh

    POSIX sh script. Assumes you have a certain folder structure under ~/Pictures/ (if not it will create it for you), and does multiple upscaling jobs with different scaling factors with one single command. The upscale() function supports arbitrary factor upscaling (accepts anything from 1 to 4 rather than just 2, 3, and 4, requires ImageMagick).

  • auto-waifu2x-moveimg.sh

    POSIX sh script. Assumes the same folder structure as above, scans a given folder for images and move them into appropriate folder based on their size, for upscaling later. Edit master_res_width variable to set your desired target resolution (3840 by default). Requires ImageMagick.

  • video2x.sh

    Bash script. Basic video upscaler script, resembles early versions of video2x. Should be able to take any video as an input, but output is currently hardcoded to be H.264 mp4. Requires FFmpeg, arbitrary factor upscaling requires ImageMagick.

  • More to be added

Contributing

Ideas and PRs are welcomed.