-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from Pixboost/feature/avif-target-size
Feature/avif target size
- Loading branch information
Showing
30 changed files
with
394 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
# TransformImgs | ||
|
||
[![Build Status](https://travis-ci.org/Pixboost/transformimgs.svg?branch=master)](https://travis-ci.org/Pixboost/transformimgs) | ||
[![codecov](https://codecov.io/gh/Pixboost/transformimgs/branch/master/graph/badge.svg)](https://codecov.io/gh/Pixboost/transformimgs) | ||
[![Docker Pulls](https://img.shields.io/docker/pulls/pixboost/transformimgs)](https://hub.docker.com/r/pixboost/transformimgs/) | ||
[![Docker Automated build](https://img.shields.io/docker/automated/jrottenberg/ffmpeg.svg)](https://hub.docker.com/r/pixboost/transformimgs/) | ||
|
||
Image transformations web service. Provides Http API to image | ||
manipulation operations backed by [Imagemagick](http://imagemagick.org) CLI. | ||
Open Source [Image CDN](https://web.dev/image-cdns/) that provides image transformation API and supports | ||
the latest image formats, such as WebP, AVIF. | ||
|
||
There are two ways of using the service: | ||
|
||
* Deploy on your own infrastructure using docker image | ||
* Use as SaaS at [pixboost.com](https://pixboost.com?source=github) | ||
|
||
## Table of Contents | ||
|
||
|
@@ -62,21 +69,19 @@ $ docker-compose up | |
|
||
### Building and Running from sources | ||
|
||
Dependencies: | ||
Prerequisites: | ||
|
||
* Go 1.8+ | ||
* [Gorilla MUX](https://github.com/gorilla/mux) for HTTP routing | ||
* [kolibri](https://github.com/dooman87/kolibri) for healthcheck and testing | ||
* [glogi](https://github.com/dooman87/glogi) for logging interface | ||
* Installed [imagemagick](http://imagemagick.org) | ||
* Go with [modules support](https://golang.org/ref/mod) | ||
* Installed [imagemagick v7.0.25+](http://imagemagick.org) with AVIF support. Run script assumes that binaries are in `/usr/local/bin` | ||
|
||
``` | ||
$ go get github.com/golang/dep/cmd/dep | ||
$ go get github.com/Pixboost/transformimgs | ||
$ cd $GOPATH/src/github.com/Pixboost/transformimgs | ||
$ git clone [email protected]:Pixboost/transformimgs.git | ||
$ cd transformimgs | ||
$ ./run.sh | ||
``` | ||
|
||
Go modules have been introduced in v6. | ||
|
||
### Performance tests | ||
|
||
There is a [JMeter](https://jmeter.apache.org) performance test you can run against a service. To run tests: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module github.com/Pixboost/transformimgs/v6 | ||
|
||
go 1.15 | ||
|
||
require ( | ||
github.com/dooman87/glogi v0.0.0-20171229170332-1a9ee96f1380 | ||
github.com/dooman87/kolibri v0.0.0-20170117194222-c194ff118b67 | ||
github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f // indirect | ||
github.com/gorilla/mux v1.3.0 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
github.com/dooman87/glogi v0.0.0-20171229170332-1a9ee96f1380 h1:OC9HJVXdYvuq5z4t2lS7650zQKnXvUtFXellMX2zu7E= | ||
github.com/dooman87/glogi v0.0.0-20171229170332-1a9ee96f1380/go.mod h1:uWlPVNZ0PJcbKCdXMJL/MGta7m/H+wg0nzy6ZKYvEGw= | ||
github.com/dooman87/kolibri v0.0.0-20170117194222-c194ff118b67 h1:5zx4LUSP0iPn0KL6ciINexzNAw4imx4Db7B+LHCIP3s= | ||
github.com/dooman87/kolibri v0.0.0-20170117194222-c194ff118b67/go.mod h1:IGXOwI2+tWhVzcLeKONI0eXxxFVC4+A5ZFCup6fuQqE= | ||
github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f h1:9oNbS1z4rVpbnkHBdPZU4jo9bSmrLpII768arSyMFgk= | ||
github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= | ||
github.com/gorilla/mux v1.3.0 h1:HwSEKGN6U5T2aAQTfu5pW8fiwjSp3IgwdRbkICydk/c= | ||
github.com/gorilla/mux v1.3.0/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.