Categorygithub.com/EduardoRodriguesF/aseprite-api
repositorypackage
0.0.0-20231105193259-05eae685e227
Repository: https://github.com/eduardorodriguesf/aseprite-api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Aseprite API

Do not have Aseprite on your machine? Is not able to compile it? Still needs to export a .aseprite file? Just do it via HTTP.

This is not a production app, more like a fun little thing I hacked together. There is no actual endpoint available.

Usage

Send a file through web form. See cURL example below:

curl -F upload=@path/to/file.aseprite localhost:80/export -o file.png

Running locally

  1. Aseprite API relies on a local installation of Aseprite. Create a .env file and set a variable ASEPRITE pointing to the Aseprite CLI path.
  2. Assuming you already have Go's development tools, run the main.go file.
go run main.go

Alternativelly, you can build it and execute the binary.

go build
./aseprite-api