An image resizing and manipulation server
50K+
An image resizing and manipulation server.
docker compose up -d --build
Note: You also may prefer to develop using
godirectly, however the docker container includes all the necessary dependencies to build and run the application with all functionality. Some functionality may be disabled without dependent packages on your system.
localhostIn order to access the container ports over localhost you'll need to override the default
compose.yml port values and specify your preferred host port. To use the default
values, or quickly populate the file, simply:
cp compose.override.example.yml compose.override.yml
Note
Any changes made to the `compose.override.yml` will be ignored by git, to feel free to use this to make any environment-specific changes or overrides without affecting others local settings.
Then (re)start your containers with the new port bindings:
docker compose up -d
Endpoints currently support the following image formats:
image/jpeg with the keyword jpg or jpegimage/png with the keyword pngimage/gif with the keyword gifimage/tiff with the keyword tiffimage/bmp with the keyword bmpWith supplemental support for these additional formats:
image/heif with the keyword heif or heic. Formatted to image/jpeg by default./displayDisplay the image, useful when you want to perform operations on the image.
url - The remote image URL to manipulatequality - The quality to render the image, by default this is the highest.
jpeg format.grayscale - Whether to render the image in grayscale, by default this is false./statsStats provides information about the image, such as the image's filename, dimensions, size and format.
/qrcodeGenerate a QR code with the provided content.
content - The content to encode in the QR codecolor - The foreground color (in hex) of the QR CodebgColor - The background color (in hex) of the QR Code (default is transparent)qrWidth - The block width to generate the QR code (max 255)borderWidth - The width of the border (calculated by default)/uploadNOT IMPLEMENTED
Display operations can be performed on an image by providing various query
parameters. Currently, these are only supported on the /display endpoint.
format - The format to output the image, by default the format will be the source format, see Formats for more information.This will allow you to resize the image to the specified width and height.
If width or height value is not set or 0, the image aspect ratio is
preserved.
width - The desired image's widthheight - The desired image's heightThis will allow you to rotate the image to the specified degrees.
degrees - The desired image's rotation in degrees (example: 12.7)Flips the image vertically (from top to bottom), horizontally (left to right) or both.
direction - The desired position to flip the image.
h, horizontalv, verticalb, bothimage/webpimage/svg+xmlzap.Loggerrender packageCfunc_GoBytes memory leak from libheif-dev via libx265Content type
Image
Digest
sha256:c732ba7ee…
Size
20.5 MB
Last updated
about 18 hours ago
docker pull aptive/img