Fast, secure image processing server and Go library, using libvips
APACHE-2.0 License
Bot releases are hidden (Show)
Published by cshum almost 3 years ago
Published by cshum almost 3 years ago
Published by cshum almost 3 years ago
Published by cshum almost 3 years ago
feat(vips): add padding support for resize and stretch
Published by cshum almost 3 years ago
Introducing Result Loader and Storage, where the image processing result can also be loaded/saved, in additional to the original image:
Imagor with File Loader and Storage using mounted volume:
version: "3"
services:
imagor:
image: shumc/imagor:latest
volumes:
- ./:/mnt/data
environment:
PORT: 8000
IMAGOR_UNSAFE: 1 # unsafe URL for testing
FILE_LOADER_BASE_DIR: /mnt/data # enable file loader by specifying base dir
FILE_STORAGE_BASE_DIR: /mnt/data # enable file storage by specifying base dir
FILE_RESULT_LOADER_BASE_DIR: /mnt/data/result # enable file result loader by specifying base dir
FILE_RESULT_STORAGE_BASE_DIR: /mnt/data/result # enable file result storage by specifying base dir
ports:
- "8000:8000"
Imagor with AWS S3 Loader and Storage:
version: "3"
services:
imagor:
image: shumc/imagor:latest
environment:
PORT: 8000
IMAGOR_SECRET: mysecret # secret key for URL signature
AWS_ACCESS_KEY_ID: ...
AWS_SECRET_ACCESS_KEY: ...
AWS_REGION: ...
S3_LOADER_BUCKET: mybucket # enable S3 loader by specifying loader bucket
S3_LOADER_BASE_DIR: images # optional
S3_STORAGE_BUCKET: mybucket # enable S3 storage by specifying storage bucket
S3_STORAGE_BASE_DIR: images # optional
S3_RESULT_LOADER_BUCKET: mybucket # enable S3 result loader by specifying loader bucket
S3_RESULT_LOADER_BASE_DIR: images/result # optional
S3_RESULT_STORAGE_BUCKET: mybucket # enable S3 result loader by specifying loader bucket
S3_RESULT_STORAGE_BASE_DIR: images/result # optional
ports:
- "8000:8000"
Published by cshum almost 3 years ago
Published by cshum almost 3 years ago
Imagor 0.5 onwards revamp file I/O and leverages vips_thumbnail_buffer
and vips_thumbnail
where possible and using native file sniffing from libvips. These improve I/O performance, especially for file loader and storage.
-vips-max-width
-vips-max-height
Published by cshum almost 3 years ago
Imagor 0.3.2 now leverages shrink-on-load whenever possible #9 , and migrated all resize operations using vips_thumbnail_image
and vips_thumbnail_buffer
. This should result performance boost for fit-in
, stretch
and resize operations with given width and height parameters beforehand.
However, when crop or trim is used, shrink-on-load needs to be disabled to remain feature parity. An option is to proceed trim()
inside the filters:
pipeline if this is allowed for your use case, such that shrink-on-load can also be leveraged.
Published by cshum almost 3 years ago