Luma Reframe Image
Luma Reframe Image uses AI to seamlessly adjust image aspect ratios and expand content without cropping. Ideal for adapting visuals across platforms.
🚀Function Overview
Changes image dimensions using AI-powered generation to add or remove content based on new aspect ratios, with precise positioning controls.
Key Features
- Changes image aspect ratios without cropping
- Guided content generation via text prompts
- Pixel-precise control over source positioning
- Crop boundary customization for content retention
Use Cases
- •Adapting social media content for different platform ratios
- •Extending backgrounds for print/digital layouts
- •Reframing photos for cinematic aspect ratios
- •Creative image expansion with AI-generated content
⚙️Input Parameters
image_url
stringURL of the image to reframe
aspect_ratio
stringAspect ratio of the output
prompt
stringA prompt to guide the reframing generation
grid_position_x
integerThe x position of the input in the grid, in pixels. Controls horizontal positioning of the source within the target output dimensions.
grid_position_y
integerThe y position of the input in the grid, in pixels. Controls vertical positioning of the source within the target output dimensions.
x_start
integerThe x start of the crop bounds, in pixels. Defines the left boundary where your source will be placed in the output frame. The distance between x_start and x_end determines the resized width of your content.
x_end
integerThe x end of the crop bounds, in pixels. Defines the right boundary where your source will be placed in the output frame. The distance between x_start and x_end determines the resized width of your content.
y_start
integerThe y start of the crop bounds, in pixels. Defines the top boundary where your source will be placed in the output frame. The distance between y_start and y_end determines the resized height of your content.
y_end
integerThe y end of the crop bounds, in pixels. Defines the bottom boundary where your source will be placed in the output frame. The distance between y_start and y_end determines the resized height of your content.
💡Usage Examples
Example 1
Input Parameters
{ "prompt": "An explosion", "image_url": "https://replicate.delivery/czjl/6iZ89qakg74mCVjFYeDk0GljoYQReoV0k7WwSjxXmCLcV53TA/tmpyf9dx02r.jpg", "aspect_ratio": "9:16" }
Quick Actions
Technical Specifications
- Hardware Type
- Run Count
- 158
- Commercial Use
- Supported
- Pricing
- 0.01 per output image
- Platform
- Replicate