Skip to content

imgproxy Pro

imgproxy Pro is the paid edition of imgproxy. The library builds the URL for every option, whichever edition you run. What imgproxy does with a Pro option on the open-source edition is up to imgproxy: it may ignore the option or answer with an error. Check the edition before you depend on one.

  • A Pro badge in the sidebar and in the lists marks an option that needs Pro as a whole.
  • Partly Pro marks an option that works on both editions, with a value or an argument that needs Pro.
  • Every option page has an Availability row.
Where Value Notes
Format, Url::build() best Lets imgproxy pick the best format.
Watermark position ch Chessboard pattern.
Gravity types obj and objw Use GravityObject and GravityObjectWeight.
EncryptionMasker the whole masker Encrypted source URLs.

Sizing

ClassimgproxyDescription
ResizingAlgorithm ProraSets the algorithm used to resample the image.

Cropping

ClassimgproxyDescription
CropAspectRatio ProcarAdjusts the crop area to an aspect ratio.
CropObjects Proc_objCrops the image to the objects detected by imgproxy’s object detection.
Gravity Partly ProgSets the anchor for cropping and extending.
GravityObject ProgGravity on the objects of the given classes, as detected by imgproxy’s object detection.
GravityObjectWeight ProgGravity on detected objects, with a weight for each class.
ObjectsPosition ProopPositions the detected objects within the resulting image.

Effects

ClassimgproxyDescription
Adjust ProaSets brightness, contrast and saturation in one option.
BackgroundAlpha ProbgaAdds an alpha channel to the background color.
BlurAreas ProbaBlurs rectangular areas of the image.
BlurDetections ProbdBlurs the objects found by imgproxy’s object detection.
Brightness ProbrAdjusts the brightness of the image.
Colorize ProcolOverlays a color on the image.
Contrast ProcoAdjusts the contrast of the image.
DrawDetections ProddDraws boxes, classes and confidences of detected objects onto the image.
Duotone ProdtConverts the image to two tones, mapping dark and light areas to two colors.
Gradient ProgrOverlays a gradient that fades from transparent to a color.
Monochrome PromcConverts the image to monochrome.
Saturation ProsaAdjusts the saturation of the image.
UnsharpMasking ProushApplies unsharp masking.

Output

ClassimgproxyDescription
AutoQuality ProaqPicks the quality automatically by encoding the image several times.
AvifOptions ProavifoSets AVIF encoder options.
ColorProfile ProcpConverts the image to a color profile and embeds it.
DisableAnimation ProdaTreats animated images as static, using the first frame.
Dpi ProdpiReplaces the DPI metadata of the image.
Format Partly ProfSets the output format as a processing option.
JpegOptions ProjpgoSets JPEG encoder options.
PngOptions PropngoSets PNG encoder options.
WebpOptions ProwebpoSets WebP encoder options.

Source

ClassimgproxyDescription
FallbackImageUrl ProfiuSets an image that is served when the source cannot be loaded.
Hashsum ProhsVerifies the checksum of the source.
Page PropgSelects the page or frame of a multi-page or animated source.
Pages PropgsSets the number of pages that are stacked vertically in the result.
Style ProstInjects CSS into SVG sources.
VideoThumbnailAnimation ProvtaGenerates an animation from video frames.
VideoThumbnailKeyframes ProvtkRestricts video thumbnails to keyframes.
VideoThumbnailSecond ProvtsSets the second of a video that is used for the thumbnail.
VideoThumbnailTile ProvttGenerates a sprite of video thumbnails.

Watermark

ClassimgproxyDescription
Watermark Partly ProwmPlaces the watermark that is configured in imgproxy on the image.
WatermarkRotate ProwmrRotates the watermark clockwise.
WatermarkShadow ProwmshAdds a shadow to the watermark.
WatermarkSize ProwmsSets the size of the watermark.
WatermarkText ProwmtRenders a text as the watermark.
WatermarkUrl ProwmuSets the image that is used as the watermark.