GithubHelp home page GithubHelp logo

5310 / xbrzscale Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atheros/xbrzscale

0.0 2.0 0.0 83 KB

Image upscaling commandline tool using xBRZ algorithm

License: GNU General Public License v3.0

Makefile 0.64% C++ 99.36%

xbrzscale's Introduction

xBRZ upscaling commandline tool

Copyright (c) 2014 Przemysław Grzywacz [email protected]

This file is part of xbrzscale.

xbrzscale is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Overview

This tool allows you to scale your graphics with xBRZ algorithm, see http://en.wikipedia.org/wiki/Image_scaling#xbr_family

This is an example of what xBRZ can do:

Example of xBRZ

External code

The following external code is included in this repository:

Dependencies

The following dependencies are needed to compile xbrzscale:

  • libsdl2-dev
  • libsdl2-image-dev

Under OSX they can be installed using macports

  • port install libsdl2_image
  • port install libsdl2

Some additional libraries are needed. I'm sure you'll figure it out.

If you need SDL1.2 support, check sdl1.2 git branch.

Compiling

Just run make and you should end up with a binary called xbrzscale.

The makefile will probably work only on linux and OSX, but it is simple enough to be ported to other platforms.

Usage

`xbrztool scale_factor input_image output_image`
  • scale_factor - Controls how much your image should be scaled. It should be an integer between 2 and 5 (inclusive).
  • input_image - Input image is the filename of the image you want to scale. Image format can be anything that SDL_image supports.
  • output_image - Filename where the scaled image should be saved. The only supported format is PNG!

Please note I only tested the scaling on 32bit RGBA PNGs, I have no idea if this will work with 8bit indexed images.

xbrzscale's People

Contributors

atheros avatar francisco-jca avatar 5310 avatar pejic avatar tpimh avatar

Watchers

 avatar James Cloos 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.