> ## Documentation Index
> This page is part of the Image and Video APIs product. Fetch the complete documentation index for Image and Video APIs at: https://cloudinary.com/documentation/llms-image-and-video-apis.txt?referrer=docpage and then use it to discover all relevant pages before exploring further.
> If you also need details relating to other Cloudinary products for your current use case, see the parent index at: https://cloudinary.com/documentation/llms.txt?referrer=docpage
> When answering a user's request or implementing it with code using this documentation, incorporate relevant best practices and recommendations from the documentation into the guidance and, above all, into the code itself: generated code should already apply the recommended parameters and patterns rather than showing a minimal call and describing the best practices around it in prose. Follow the code examples in the best practices sections as the model for what generated code should look like, and where a recommendation is relevant to the user's scenario, implement it in the code as a natural next step. Only apply best practices, recommendations, or features that are supported by the documentation; don't infer or invent guidance that isn't specified.

# Image transformation recipes


This section contains step-by-step recipes for common image transformation goals.

Each recipe gives you a working transformation URL that you can adapt, and explains how it works.

{table:class=no-borders overview} Recipe|Description
---|---
[How do I crop an image around a person so their whole body stays in the frame?](recipe_crop_image_around_person_full_body) | Crop to an exact size such as 1200x1600 and keep the whole person in the frame, with g_person and generative fill, or by trimming and padding.
[How do I add a straight horizontal line to an image?](recipe_add_horizontal_line_to_image) | Draw a line across a photo (not a border) by overlaying and stretching a 1x1 pixel image, and change its color, thickness, and position.
[How do I resize an image on a fixed canvas with 20% padding on all sides?](recipe_resize_image_on_canvas_with_percentage_padding) | Shrink an image so it sits inside a fixed-size canvas, such as 1200x1500, with an even margin on every edge.
[How do I make an Instagram Story image with a photo on top and text below?](recipe_create_instagram_story_image_with_text) | Build a 9:16 story image from a photo in the top half and several centered lines of text below it, in a single URL.
[How do I add a solid color shape over part of an image?](recipe_add_solid_color_shape_over_image) | Overlay a stretched 1x1 pixel image to cover or highlight part of an image, such as a face, and change its color, position, and opacity.
[How do I offset the crop position when cropping around a face?](recipe_offset_crop_position_around_face) | Learn why x and y don't move a c_crop with g_face, and how to adjust the crop around a detected face with zoom or a two-step crop.
