Crop Image

    POSThttps://picnie.com/api/v1/crop-image
    Crop an image to specified dimensions, controlling the crop area with vertical and horizontal origins.

    Headers

    NameTypeDescription
    Authorization*
    string

    Pass api key in the authorization field

    Example:YOUR_API_KEY

    Body Parameters

    NameTypeDescription
    project_id*
    integer

    The ID of the project.

    Example:25

    image_url*
    string

    URL of the image to crop.

    Example:https://picnie.s3.ap-south-1.amazonaws.com/user_1/project_8/ts_20240124094059image_ex.png

    height*
    string

    Height of the cropped image in pixels.

    Example:720

    width*
    string

    Width of the cropped image in pixels.

    Example:1080

    vertical_crop_from
    string

    Vertical crop origin. Values: top, bottom, center (default).

    Example:bottom

    horizontal_crop_from
    string

    Horizontal crop origin. Values: left, right, center (default).

    Example:center

    Notes

    ⚠️ Authentication required