Auto resize and align in Crop.photo, seamlessly resize and align your products within the frame while replacing the background with given color or background image. This feature guarantees a polished appearance for a diverse range of products, including shoes, beverages, and home decor, enhancing the overall visual presentation. Maintaining a consistent eye level significantly improves the browsing experience across various aspect ratios on your online storefront. The Auto Resize & Align API ensures precise alignment and sizing of the focal object, typically a product.Example 1: To resize the input image to a 2000x3000 dimension and automatically align the product in the center with uniform 8% margins around it, use the API as follows:
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.