Sign inSign up

cityofedmonton/image-convert

By cityofedmonton

Updated about 7 years ago

This image allows for converting between image formats.

Image
0

513

cityofedmonton/image-convert repository overview

Image Convert

Docker

docker run -p5000:8001 -e PORT=8001 cityofedmonton/image-convert

Overview

This is an image conversion service. Find the code on GitHub.

Version information

Version : 1.0.0

Contact information

Contact Email : [email protected]

License information

License : Apache 2.0
License URL : http://www.apache.org/licenses/LICENSE-2.0.html
Terms of service : https://www.edmonton.ca/conditionsofuse.aspx

URI scheme

Host : localhost:5000
BasePath : /api/v1
Schemes : HTTP

Tags
  • convert : Convert image types.
  • resize : Resize images.

Paths

Convert an image from one type to another.
POST /convert
Parameters
TypeNameDescriptionSchema
FormDataimage
required
The image file to be converted.file
FormDatainputformat
required
The image type (heic, jpeg, png).string
FormDataoutputformat
required
The output image type (jpeg, png).string
Responses
HTTP CodeDescriptionSchema
200OKfile
400Invalid inputNo Content
Consumes
  • multipart/form-data
Produces
  • image/jpeg
  • image/png
Tags
  • convert

Resize an image.
POST /resize
Description

Note that this doesn't work with HEIC images.

Parameters
TypeNameDescriptionSchema
FormDataheight
required
The output image height.number
FormDataimage
required
The image file to be converted.file
FormDatainputformat
required
The image type (jpeg, png).string
FormDatawidth
required
The output image width.number
Responses
HTTP CodeDescriptionSchema
200OKfile
400Invalid inputNo Content
Consumes
  • multipart/form-data
Produces
  • image/jpeg
  • image/png
Tags
  • resize

Tag summary

Content type

Image

Digest

Size

127.9 MB

Last updated

about 7 years ago

docker pull cityofedmonton/image-convert