All Projects → spacechop → Spacechop

spacechop / Spacechop

Licence: mit
HTTP service for high-level image processing with first-class Docker support.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Spacechop

Magick
Magic, madness, heaven, sin
Stars: ✭ 362 (+172.18%)
Mutual labels:  image-processing, imagemagick
Halide
a language for fast, portable data-parallel computation
Stars: ✭ 4,722 (+3450.38%)
Mutual labels:  image-processing, performance
Sharp
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
Stars: ✭ 21,131 (+15787.97%)
Mutual labels:  image-processing, performance
Node S3 Uploader
Flexible and efficient resize, rename, and upload images to Amazon S3 disk storage. Uses the official AWS Node SDK for transfer, and ImageMagick for image processing. Support for multiple image versions targets.
Stars: ✭ 237 (+78.2%)
Mutual labels:  image-processing, imagemagick
Sv Images
Image manipulation library with an HTTP based API.
Stars: ✭ 7 (-94.74%)
Mutual labels:  image-processing, imagemagick
Jekyll Gallery Generator
A Jekyll plugin that generates photo galleries from directories full of images.
Stars: ✭ 315 (+136.84%)
Mutual labels:  image-processing, imagemagick
Wasm Imagemagick
Webassembly compilation of https://github.com/ImageMagick/ImageMagick & samples
Stars: ✭ 442 (+232.33%)
Mutual labels:  image-processing, imagemagick
Govips
A lightning fast image processing and resizing library for Go
Stars: ✭ 442 (+232.33%)
Mutual labels:  image-processing, imagemagick
Flyimg
Dockerized PHP7 application runs as a Microservice to resize and crop images on the fly. Get optimised images with MozJPEG, WebP or PNG using ImageMagick. Includes face detection, cropping, face blurring, image rotation and many other options. Abstract storage based on FlySystem in order to store images on any provider (local, AWS S3...).
Stars: ✭ 762 (+472.93%)
Mutual labels:  image-processing, imagemagick
Image processing
High-level image processing wrapper for libvips and ImageMagick/GraphicsMagick
Stars: ✭ 600 (+351.13%)
Mutual labels:  image-processing, imagemagick
Php Legofy
Transform your images as if they were made out of LEGO bricks.
Stars: ✭ 161 (+21.05%)
Mutual labels:  image-processing, imagemagick
Imager
Image processing proxy
Stars: ✭ 56 (-57.89%)
Mutual labels:  image-processing, imagemagick
Nuxt Image Loader Module
An image loader module for nuxt.js that allows you to configure image style derivatives.
Stars: ✭ 135 (+1.5%)
Mutual labels:  image-processing, imagemagick
Skeptick
Better ImageMagick for Ruby
Stars: ✭ 326 (+145.11%)
Mutual labels:  image-processing, imagemagick
Libvips
A fast image processing library with low memory needs.
Stars: ✭ 6,094 (+4481.95%)
Mutual labels:  image-processing, imagemagick
Image Actions
A Github Action that automatically compresses JPEGs, PNGs and WebPs in Pull Requests.
Stars: ✭ 844 (+534.59%)
Mutual labels:  image-processing, performance
Pgmagick
pgmagick is a yet another boost.python based wrapper for GraphicsMagick/ImageMagick.
Stars: ✭ 100 (-24.81%)
Mutual labels:  image-processing, imagemagick
Lerc
Limited Error Raster Compression
Stars: ✭ 126 (-5.26%)
Mutual labels:  image-processing
Dithergo
Various dithering algorithms implemented in Go
Stars: ✭ 128 (-3.76%)
Mutual labels:  image-processing
P2plab
performance benchmark infrastructure for IPLD DAGs
Stars: ✭ 126 (-5.26%)
Mutual labels:  performance

SpaceChop npm version Docker Docker Registry

SpaceChop is a Docker container for processing your images through HTTP requests.

🔒 Secure - Dont allow everyone to create arbitrary image transformations and overload your server.

📦 Storage - Store original and transformed images on the infrastructure you are already using. For example Amazon S3, HTTP server, or local volume.

👨‍💻 For developers - Set up available transformations via yaml files.

At spacechop.com, you can get for the hosted solution of SpaceChop which includes CDN, storage, caching, database, statistics and analytics for your service.

To get started with SpaceChop, go to our documentation website.

Installation

The recommended way to use SpaceChop is via docker-compose:

docker-compose.yml

version: '3'
services:
  spacechop:
    container_name: spacechop
    image: spacechop/spacechop:latest
    ports:
      - 8080:3000
    volumes:
      - ./config.yml:/config.yml

config.yml

paths:
  - /:preset/:image(.*)
sources:
  - http:
      root: https://upload.wikimedia.org/wikipedia/commons/:image
presets:
  # fill 200x200 with type jpeg and compress with quality 0.9
  t_200:
    steps:
      - $fill:
          width: 200
          height: 200
      - $format:
          type: jpeg
      - $compress:
          quality: 90

# start the service using docker-compose
docker-compose up -d

# check the logs for help with your configuration and see what's happening
docker-compose logs -f spacechop

Go to http://localhost:8080/t_200/c/c4/Photo_Wallet_product.jpg in your browser and you should see an image fetched from Wikimedia and transformed with the above preset t_200. You just successfully transfomed your first image using SpaceChop!

Getting started

You will at least need a path, source and preset to get started.

paths and sources

Paths and sources are interlinked and work together using path-to-regex with support for ()-matching groups. Use the path express-route-tester with version 2.0.0 to see what works.

Basically how it works is that the path you request at http://localhost:8080/t_200/your-unique-path/with-slashes/to-and-image-url.jpg will look through your sources until it finds an image for your root url (if you are using the http source).

i.e.
http://localhost:8080/t_200/your-unique-path/with-slashes/to-and-image-url.jpg will in the above configuration look at: http://commons.wikipedia.org/your-unique-path/with-slashes/to-and-image-url.jpg

Notice the usage of :image in paths and sources, you can change this to whatever makes sense for you in your matching. You can use your own variable names and matching in your sources.

Each source has its own set of configuration to be able to lookup and download originals. You can read more about each source in our documentation.

presets

As you might have seen there is a :preset variable in the path in the example configuration above, this is the only required variable in path that there is, and this will match the exact name of your preset in the configuration as you might have guessed.

In a preset there are steps which are composed of a list of operations with their unique set of options. You can read more about each operation in our documentation.

Contributing

Build Status codecov Greenkeeper badge PRs Welcome

Read the SpaceChop Contributor Guidelines.

Running tests locally:

sh test.sh

or manually using docker-compose

docker-compose up -d --build
docker-compose exec spacechop sh -c "npm run test:watch"

This project uses TypeScript for static typing and TSLint for linting. You can get both of these built into your editor with no configuration by opening this project in Visual Studio Code, an open source IDE which is available for free on all platforms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].