Resize Image

    POSThttps://picnie.com/api/v1/resize-image
    Resize bulk images using height and width or by percentage. Options to maintain aspect ratio or prevent enlargement of smaller images.

    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. Create one using Picnie's dashboard if needed.

    Example:1

    image_url*
    string

    URL of the image to resize.

    Example:https://picnie.com/data/raw_images/demo_bg1.jpg

    resize_type*
    string

    1 for resizing with height and width, 2 for resizing by percentage.

    Example:1

    height
    string

    Height in pixels. Required when resize_type is 1.

    Example:500

    width
    string

    Width in pixels. Required when resize_type is 1.

    Example:800

    resize_percentage
    string

    Percentage to resize. Required when resize_type is 2.

    Example:50

    no_enlarge_on_smaller
    string

    Set to 1 to prevent enlarging smaller images.

    Example:1

    is_maintain_aspect_ratio
    string

    Set to 1 to maintain aspect ratio, 0 to use exact dimensions.

    Example:1

    Notes

    ⚠️ Authentication required