An open API service indexing awesome lists of open source software.

https://github.com/senselogic/bim

Base64 image and document converter.
https://github.com/senselogic/bim

Last synced: 4 months ago
JSON representation

Base64 image and document converter.

Awesome Lists containing this project

README

        

![](https://github.com/senselogic/BIM/blob/master/LOGO/bim.png)

# Bim

Base64 document encoder and decoder.

## Installation

Install the [DMD 2 compiler](https://dlang.org/download.html) (using the MinGW setup option on Windows).

Build the executable with the following command line :

```bash
dmd -m64 bim.d
```

## Command line

```bash
bim [options]
```

### Options

```bash
--input-media-folder : use this folder to read media files
--output-media-folder : use this folder to write media files
--media-folder : use this folder to read and write media files
--encode-characters : encode non-ASCII characters of a document
--decode-characters : decode non-ASCII characters of a document
--encode-file : encode a file
--decode-file : encode a file
--encode-image : encode an image
--decode-image : decode an image
--encode-document : encode CSS and HTML inline images of a document
--decode-document : decode CSS and HTML inline images of a document
--encode-document-characters : encode CSS and HTML inline images of a document
--decode-document-characters : decode CSS and HTML inline images of a document
```

### Examples

```bash
bim --encode-file file.bin file.bin.b64
bim --decode-file file.bin.b64 file.bin
bim --encode-image image.jpg image.jpg.b64
bim --decode-image image.jpg.b64 image.jpg
bim --encode-image image.png image.png.b64
bim --decode-image image.png.b64 image.png
bim --encode-image image.gif image.gif.b64
bim --decode-image image.gif.b64 image.gif
bim --encode-document mail.html inline_mail.html
bim --media-folder MEDIA_FOLDER/ --encode-document mail.html inline_mail.html
bim --media-folder MEDIA_FOLDER/ --decode-document inline_mail.html mail.html
```

## Version

1.0

## Author

Eric Pelzer ([email protected]).

## License

This project is licensed under the GNU General Public License version 3.

See the [LICENSE.md](LICENSE.md) file for details.