philipmoniaga / 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.

Build Status

Getting Started with Fig

Prerequisites:

Create the database and run migrations:

$ fig run web goose up

Start the app:

$ fig up

Get the boot2docker ip if you're not on Linux:

$ boot2docker ip

Open up http://192.168.59.103:3000

Getting Started without Fig

Prerequisites:

Install dependencies:

$ go get -u github.com/tools/godep \
            bitbucket.org/liamstask/goose/cmd/goose \
            github.com/codegangsta/gin \
            github.com/ddollar/forego

Copy over some default env vars:

$ cp .env.sample .env

Create the database and run migrations:

$ forego run goose up

Run the server:

$ gin

Run the asset compiler (in a separate tab/pane):

$ ./webpack.sh

Open up http://localhost:3000

API

/{width}x{height}{modifier}/{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

# height and width, ignore aspect ratio
https://firesize.com/128x96!/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:CSS 38.7%Language:HTML 38.6%Language:JavaScript 11.6%Language:Go 10.2%Language:Shell 0.8%Language:Makefile 0.1%