Coder Social home page Coder Social logo

rvrx / imageresizerbase64formumble Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

Resizes images to a certain length in Base64, and copies Mumble readable code to clipboard so that they can be sent over Mumble servers with small filesize limits.

License: MIT License

Java 100.00%
mumble-client mumble base64image

imageresizerbase64formumble's Introduction

Image Resizer for Mumble (WIP)

Resizes and converts images to Base64 encodings of a certain maximum string length. By Default, converts images to be less than 128kb, and copy's the Base64 code to your clipboard. This code can be directly pasted into Mumble's "Source Text" pane of the "send message" dialogue.

Clipboard output should be: <img src=\"data:image/png;base64,[BASE64]\"/>, where BASE64 is the output image as b64.

Usage

INPUT_FILENAME [ARGUMENTS]

-s [FILE_SIZE] --size [FILE_SIZE] shrink image to just under specified size (KB)
-o [OUTPUT_FILENAME] output to file - provide full filename
-nonb64 uses raw file size instead of base64 encoded size
-k,--keep keeps the converted file

I made this project to

  1. Solve the annoyance of having to repeatedly shrink images until they fit mumble.com hosted server's 128kb (in base64) image limit,
  2. Learn how to use command line arguments in Java and my IDE,
  3. Learn about some new Java Classes/Libraries

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.