joho / firesize

Image Resizing as a Service

Home Page:https://assemblymade.com/firesize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firesize

Imagemagick as a Service

Processes images on the fly using imagemagick.

Get started

Make sure Postgres is installed.

# Create a local development database
psql -c "create database firesize_development"

# Install goose for running migrations
go get bitbucket.org/liamstask/goose/cmd/goose

# Copy sample env file
cp .env.sample .env

# Install forego (or use foreman)
go get github.com/ddollar/forego

# Run database migrations
forego run goose up

# Retrieve dependencies
go get github.com/kr/godep
$GOPATH/bin/godep restore ./...

# Start up the server (or use something like gin to auto-reload)
forego start

Open up http://localhost:3000/examples

API

/{width}x{height}/{gravity}/{frame}/{source}

Some examples:

# fixed with, proportional height
https://firesize.com/128x/g_center/http://placekitten.com/g/32/32

# fixed height, proportional width
https://firesize.com/x128/g_center/http://placekitten.com/g/32/32

# max of height or width
https://firesize.com/128x128/http://placekitten.com/g/32/32

# height and width, cropped to center
https://firesize.com/128x128/g_center/http://placekitten.com/g/32/32

# PSD with layer 0
https://firesize.com/128x128/g_center/frame_0/http://asm-assets.s3.amazonaws.com/helpful-signup-04-24-14.psd

Assembly made

Assembly products are like open-source and made with contributions from the community. Assembly handles the boring stuff like hosting, support, financing, legal, etc. Once the product launches we collect the revenue and split the profits amongst the contributors.

Visit https://assemblymade.com to learn more.

About

Image Resizing as a Service

https://assemblymade.com/firesize

License:Other


Languages

Language:Go 65.8%Language:CSS 33.0%Language:SQL 1.1%