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.
- Host: GitHub
- URL: https://github.com/senselogic/bim
- Owner: SenseLogic
- License: gpl-3.0
- Created: 2020-05-26T18:43:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T22:08:11.000Z (over 1 year ago)
- Last Synced: 2025-01-17T09:22:26.914Z (5 months ago)
- Language: HTML
- Size: 6.65 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

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