Giter Site home page Giter Site logo

rsicu's Introduction

RZS Simple Image Cleaning Utility

This project started with a small Python script that applied a threshold effect to an image using the PIL library. Since then, it has grown into a larger "library" I often use to clean up images produced by a printer's scanner. Note that I hesitate to even call it a library, as it's really small and rudimentary.

The reason I'm publishing it to GitHub is so that I have source control, so that I can use it with a personal Discord bot (link TBA) and to try out publishing something to LuaRocks and lit.

In other words, this is mostly meant to be a private module for personal projects. This means no docs and sparse support. Still, feel free to use this yourself.

What it does

RSICU is simple - it has a list of predefined "operations" it can perform on images. These are individual tasks (thresholds, brightness, etc). You give the library a list of operation names (well, they're more like string "keys") and related arguments, which in turn uses the input to apply the specified operations. Additionally, it has a handful of extra utility functions related to user input handling and data verification for the operation keys.

RSICUCommandLine

Inside this repository you will also find a second program, RSICUCommandLine. This program is a command line REPL interface for RSICU, designed to be used to edit an image using a trial-and-error process. In other words, it firsts asks for an image and the wanted operations. Then, it repeatedly takes parameters, applying edits, until a satisfactory image is produced. Again, it's all very simple.

Installation

RSICU depends on lua-vips, which in turn depends on libvips and LuaJIT.

At the moment, there are no options other than downloading this repo, but my goal is to publish this package to both LuaRocks and lit.

Once installed, you should be able to just call

local rsicu = require("rsicu")

rsicu's People

Contributors

riskozoslovenska 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.