Skip to content

Crop

ParameterAliasValueSee
cropcrcenter, smart, detail, top_left, bottom_rightSimple crop
crop.widthcr.wWidth in pixelsSimple crop
crop.heightcr.hHeight in pixelsSimple crop
crop.objectcr.oface, upper_bodyObject
crop.xcr.xX coordinateManual focus
crop.ycr.yY coordinateManual focus
crop.after_resizecr.arFlag parameter - value not neededCrop and Resize

Choose how the crop should focus on the image. Options include automatic strategies and fixed positions.

Preview
<img src="https://media.pixel-fiddler.com/{sourceAlias}/media/{imagePath}?cr=center&cr.w=200&cr.h=300"/>

Parameters:

  • crop (alias: cr) - Crop strategy/focus
    • Values: center, smart, detail, top_left, bottom_right
  • crop.width (alias: cr.w) - Width of the crop in pixels
  • crop.height (alias: cr.h) - Height of the crop in pixels
    • Minimum value: 1 px

Manually adjust the X and Y coordinates of the crop focus if needed.

Preview
<img src="https://media.pixel-fiddler.com/{sourceAlias}/media/{imagePath}?cr.x=50&cr.y=50&cr.w=150&cr.h=150"/>

Parameters:

  • crop.x (alias: cr.x) - X coordinate of the crop focus
  • crop.y (alias: cr.y) - Y coordinate of the crop focus

Automatically crop around specific objects in the image such as faces or upper body.

Preview
<img src="https://media.pixel-fiddler.com/{sourceAlias}/media/{imagePath}?cr.o=face"/>

Parameters:

  • crop.object (alias: cr.o) - Type of object to crop around
    • Values: face, upper_body

By default, cropping is applied before resizing the image. However, you can change this behavior using the crop.after_resize flag. When this option is enabled, the crop is applied after the resize operation, allowing you to fine-tune the crop based on the final image dimensions. This is especially useful when you want the crop to adapt to the resized image rather than the original.