https://github.com/donuts-are-good/imghost
its an img host
https://github.com/donuts-are-good/imghost
go golang image image-hosting image-processing image-server img stdlib
Last synced: 8 months ago
JSON representation
its an img host
- Host: GitHub
- URL: https://github.com/donuts-are-good/imghost
- Owner: donuts-are-good
- License: mit
- Created: 2023-11-04T21:35:43.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T01:17:07.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T20:56:36.400Z (8 months ago)
- Topics: go, golang, image, image-hosting, image-processing, image-server, img, stdlib
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

  # imghost
**imghost** is an image server in Go. It accepts images via `POST`, resizes and crops images, and saves them to a directory. The server logs details about the images.## installation
- Clone the repository.
- Navigate to the project directory.
- Run `go build`.## usage
- Run the server with `./imghost`.
- If `config.json` does not exist, a new one will be created. Modify this file as needed.
- Send a `POST` request to the upload route in config.json. Include an image file and a secret key.## configuration
The `config.json` file has these fields:- `SecretKey`: A key to authorize image uploads.
- `ImageDirectory`: A directory where images will be saved.
- `ImageUrl`: A base URL for accessing the images.
- `Port`: A port for the server.
- `ResizeWidth`: A width to resize images to.
- `ResizeHeight`: A height to resize images to.
- `CropWidth`: A width to crop images to.
- `CropHeight`: A height to crop images to.
- `ImageFormat`: A format to save images in.
- `UploadRoute`: A route to accept image uploads.
- `AllowedIPs`: A list of IPs allowed to upload images.
- `LogFilePath`: A path to a log file.## license
MIT License 2023 donuts-are-good, for more info see license.md