Giter VIP home page Giter VIP logo

pixelartscaling's Introduction

(EN) (RU)

Pixel Art Scaling programs

Programs for scaling up small low-color images like icons and game sprites.

Apparently useful for scaling up grey text scans with low resolution before OCR, to improve OCR quality.

Note

Only PNG image format is supported. Batch processing of folders and subfolders is supported.

Currently Scale2x (aka AdvMAME2x) and Scale3x (aka AdvMAME3x) are implemented.

  • Scale2x.py - single image rescale, uses Scale2x scaling, equipped with simple GUI for opening and saving PNG files, but can also be run from command line.
    Usage:
    python Scale2x.py - starts GUI for selecting source and result
    python Scale2x.py source.png - rescales source.png and overwrites source.png
    python Scale2x.py source.png result.png - rescales source.png and writes result.png

  • batchScale2x.py - batch rescaling of all PNG files within chosen directory, recursively, using Scale2x algorithm. Attention: Source images are replaced, no backup - no mercy.

  • Scale3x.py - single image rescale, uses Scale3x scaling, equipped with simple GUI for opening and saving PNG files, but can also be run from command line.
    Usage:
    python Scale3x.py - starts GUI for selecting source and result
    python Scale3x.py source.png - rescales source.png and overwrites source.png
    python Scale3x.py source.png result.png - rescales source.png and writes result.png

  • batchScale3x.py - batch rescaling of all PNG files within chosen directory, recursively, using Scale3x algorithm. Attention: Source images are replaced, no backup - no mercy.

Note

Batch processing programs in this version use async multiprocessing, drastically reducing processing time but loading CPU at 100% and rendering GUI almost unresponsive.

Sample of Scale3x output (twice)

Example of Scale3x run twice

Dependencies: PyPNG, Tkinter, multiprocessing, sys

Note

Programs are written entirely on Python, using image representation as list of lists of lists. While this representation is logical for human understanding, Python processing of this is slow. Moreover, programs contain lists reshaping for PNG I/O purposes, also performed using Python native means only. As a result, programs are slow but quite compatible with anything and don't require large external packages.

Related links:

Dnyarri website

github Dnyarri

gitflic Dnyarri

pixelartscaling's People

Contributors

dnyarri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.