Coder Social home page Coder Social logo

jojo2357 / picture-color-replacer Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 35.7 MB

Takes an image, looks for a specific RGB, and then makes a new image with those pixels replaced as another color. Can also just convert between most image types

License: MIT License

Java 99.68% Batchfile 0.27% Shell 0.05%
utility image-processing

picture-color-replacer's Introduction

Purpose:

  • convert pixels in an image with a specific RGB value to another RBGA value.

Notes:

  • Converting between files IS supported, although i havent tested every single possiblity, but do let me know what conversions are not applicable.
  • If you just want to convert file type, make all the RGB numbers the same and do not put an alpha value.
  • @ Depracated png -> jpg works (Hopefully. lmk if there are other file formats that need to be loaded without Alpha) Make sure when converting between image formats that you remember if the destination supports transparency (ie. a png -> jpg will only work if the png has no transparency because jpg does not support transparency)
  • About that, any transparency will become white. I could change it, but I could also not.

Contents:

  • stand alone image converter (ColorSeparation.java)
  • bulk image converter base (RecolorerManager.java)
  • two demo images. One for color replacement, the other for png -> jpg demo (one has transparency and will not work, the other does not have transparency and will work)

Demo Directions:

Windows:

  • run RunManager.bat

Other:

  • I gave u a bash script i think so good luck with that (I use windows lol)

Directions:

  • configure RecolorerManager as you see fit (if people actually download this, i might consider making exaples for you).
  • move java files to directory of target images
  • in cmd, run javac *.java or javac ColorSeparation.java RecolorerMangager.java
  • if RecolorerManager is not configured, run java ColorSeparation <InputImageName.ext> <OutputImageName> <Outputext> <targetR> <targetG> <targetB> <convertR> <convertG> <convertB > <convertA>
  • if RecolorerManager is configured (by default it will turn the test image white) run java RecolorerManager

picture-color-replacer's People

Contributors

github-actions[bot] avatar jojo2357 avatar

Stargazers

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