Skip to content

IntensityLab/firesize

 
 

Repository files navigation

Firesize

Imagemagick as a Service

Processes images on the fly using imagemagick.

Travis Status

Get started

Make sure Postgres, Nodejs and npm are installed. # Download repo & all dependencies go get github.com/asm-products/firesize

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

if faile run: 

psql -d postgres -c "create database firesize_development"

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

# Install forego as it loads .env (for running goose)
brew install forego

# Install gin for live reloading codes
go get github.com/codegangsta/gin

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

# Run database migrations
forego run goose up

# Start up webpack to build the assets
npm install && npm run watch

# Start up the server
gin

Open up http://localhost:3000/

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • CSS 38.7%
  • HTML 38.6%
  • JavaScript 11.6%
  • Go 10.2%
  • Other 0.9%