Skip to main content
Glama

Place Image

photopea_place_image

Place images from URLs or local paths into active Photopea documents as new layers. Resize while preserving aspect ratio and position using x/y coordinates.

Instructions

Place an image into the active document from a URL or local file path. Creates a new layer with the placed image as the active layer. Use width/height to resize while preserving aspect ratio, or x/y to position the layer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesURL or absolute local file path of the image to place
xNoX position offset in pixels from the left edge
yNoY position offset in pixels from the top edge
widthNoResize to this width in pixels (preserves aspect ratio if only one dimension is set)
heightNoResize to this height in pixels (preserves aspect ratio if only one dimension is set)
nameNoDisplay name for the placed layer in the layers panel

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/attalla1/photopea-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server