Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 772 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 772 Bytes

Photo Box Lite

logo

Features

  • API
    • /upload
    • /thumbnail
  • Save origin image on local disk
  • Generate thumbnail image with size you desire
  • JSON response format
  • Custom index.html homepage
  • Redis cached upload result based on photo hash

About HEIF format

  1. https://github.com/strukturag/libheif/
  2. https://github.com/MaestroError/heif-converter-image/blob/maestro/install-libheif.sh

Try in local environment

brew install libheif
go run *.go -listen '127.0.0.1:8000' -domain 'http://127.0.0.1:8000'

API

/upload
/thumbnail

    Common query parameters:
        width     int    "max thumbnail width"
        height    int    "max thumbnail width"
        quality   int    "thumbnail quality"