Sign inSign up

potatodockerhub/convertimagebase64

By potatodockerhub

โ€ขUpdated over 1 year ago

A lightweight CLI tool that converts image files to Base64 strings directly from the terminal.

Image
Developer tools
0

297

potatodockerhub/convertimagebase64 repository overview

โ ๐Ÿ”„ Convert Image to Base64 from the Command Line

convertimagebase64 is a minimal and efficient Dockerized CLI tool that allows developers and designers to convert image files into Base64 format. It is ideal for embedding small images directly into HTML, CSS, or JSON responses for APIs.


โ ๐Ÿš€ Features
  • ๐Ÿ“ฆ Lightweight image (no dependencies or GUI required)
  • ๐ŸŽฏ Converts PNG, JPEG, JPG to Base64 format
  • ๐Ÿ’ป Interactive CLI prompt for image input
  • ๐Ÿ”’ Safe, stateless container (no local writes)
  • ๐Ÿงช Perfect for testing, dev pipelines, or learning

โ ๐Ÿ› ๏ธ Usage

Run the container with your image folder mounted:

docker run -it --rm -v "C:\Path\To\Your\Images:/data" potatodockerhub/convertimagebase64

Then, when prompted:

Enter the path of the image:
/data/image.png

Your Base64 string will be generated instantly.


โ ๐Ÿ“‚ Example Input

Image file located at:

C:\Path\To\Your\Images\image.png

Run:

docker run -it --rm -v "C:\Path\To\Your\Images:/data" potatodockerhub/convertimagebase64

Enter:

/data/image.png

And receive the Base64 output on screen.


โ ๐Ÿงฐ Ideal Use Cases
  • Embedding images into HTML email templates
  • Storing images in JSON
  • Sharing assets in APIs without hosting
  • Using Base64 for CSS background images
  • Educational projects, code demos, and tests

โ ๐Ÿ“ Base Image

Based on .NET SDK 8.0 / Debianโ , built with simplicity and performance in mind.


โ ๐Ÿ“œ License

MIT License โ€“ Free for personal, educational, and commercial use.


โ ๐Ÿ‘ฉโ€๐Ÿ’ป Maintainer

Made with โค๏ธ by potatoscript ๐Ÿ“โ  | Docker Hub: potatodockerhub


Tag summary

Content type

Image

Digest

sha256:6ed9cdeb3โ€ฆ

Size

74.5 MB

Last updated

over 1 year ago

docker pull potatodockerhub/convertimagebase64