Skip to content

Transformations overview

The Transform Media endpoint retrieves an image from a media source and applies on-the-fly transformations.

GET https://media.pixel-fiddler.com/{sourceAlias}/media/{imagePath}?{transfromations}
ParameterDescriptionAlias
originalIf present, returns the media file exactly as uploaded (1:1), without applying any transformationorig
stripWhether to remove all metadata (EXIF, ICC profiles, etc.) from the output image. true bye default, event if parm not presentst
widthTarget width in pixels Morew
heightTarget height in pixels Moreh
modeResize strategy (fill, fit, pad) Morerm
formatOutput format (jpg, webp, avif, png, gif). Moref
qualityQuality level (1–100) Moreq
backgroundBackground color for pad mode (hex value) Morebg
blurGaussian blur intensity (0–100) Morebl
brightnessBrightness adjustment (0–100) Morebr
contrastContrast adjustment (0–100) Morect
saturationSaturation adjustment (0–100) Moresa
grayscaleConvert to grayscale Moregs
sepiaApply sepia effect Moresp
sharpenSharpen intensity (0–100) Moresh
noiseAdd Gaussian noise (0–100) Morens
rotateRotate clockwise (0, 90, 180, 270) Morert
border.widthWidth of the border in pixels Morebo.w
border.colorBorder color in hex format Morebo.c
border.radiusCorner radius of the border in pixels Morebo.r
textOverlay text Moretx
text.colorText color (hex) Moretx.c
text.opacityText opacity (0–100) Moretx.o
text.backgroundBackground color for text (hex) Moretx.bg
text.background.opacityBackground opacity (0–100) Moretx.bg.o
text.sizeText size (% of image, 1–100) Moretx.s
text.fontFont family (e.g. Sans, Arial) Moretx.f
text.font.sizeText font size in pixels Moretx.fs
text.positionText position Moretx.p
watermarkApply watermark by name Morewm
watermark.opacityWatermark opacity (0–100) Morewm.o
watermark.sizeWatermark size (% of image, 1–100) Morewm.s
watermark.widthWatermark width in pixels Morewm.w
watermark.heightWatermark height in pixels Morewm.h
watermark.positionWatermark position Morewm.p
cropCrop strategy or focus for the image. See Morecr
crop.widthWidth of the crop area in pixels. See Morecr.w
crop.heightHeight of the crop area in pixels. See Morecr.h
crop.objectAutomatically crop around a specific object type such as a face or upper body. See Morecr.o
crop.xX coordinate of the crop focus for manual adjustment. See Morecr.x
crop.yY coordinate of the crop focus for manual adjustment. See Morecr.y
crop.after_resizeWhether the crop should be applied after resizing. See Morecr.ar