This is a API based image uploader service. You can upload any images with the size limit of 5MB and any format provided below:
.png .jpg .jpeg .bmp .tiff .tif
A URL to the image will be available on successful upload so that it can be embedded in web pages or other web based documents.
The Image will be deleted automatically after 7 Days.
Use the docker image image_uploaderto start the container and run the server.
You can rebuild the docker image by following steps:
- Change directory into project directory.
- Create docker Image using
docker build . -t <docker_image_tag>
replace <docker_image_tag> with any name.
You can also run the service locally by going to
http://localhost:8081
shows a webpage which will act as Interface.
You can change the server_address and port in the .env file.
- Open the webpage
localhost:8081. - Click on
Choose FileButton. - Select any Image you want to upload and click open.
- You can click
uploadbutton to upload the image. - You can copy the
Image linkto preview the file if it uploaded successfully.
Example of an Image link
http://localhost:8081/images/2529839546.jpg
File name will be generated and will add the extension of the original file.
All the images will be saved under static/images/ directory.
Logs will be printed to the default logger.