Skip to content

Use AI to plan square and portrait crops that keep the product whole

Compare actual crops from a 1200 × 900 illustrated original. Verify the frame coordinates and deliver square and portrait versions with the handle intact.

22 min readAs of Nov 2026

Lesson guide · goals & preparation
IntermediateDesigners

By the end of this lesson

  • Check an assistant’s crop coordinates by hand.
  • Choose separate frames that preserve the product and required space.
Two crop frames over an off-centre mug
Illustration: Two crop frames over an off-centre mug · AI Ping

Who this is for

  • Designers delivering one product image in different aspect ratios.

What you need

  • If you know width and height, the diagrams introduce the coordinates.

1 / 4

Theory

Understand what to ask AI to do, how to ask, and the ideas behind the workflow.

  1. Why the handle disappears in a listing

    The handle is intact in the original but clipped in the listing. A centre crop assumes the subject is centred as well. We can ask an assistant to plan a crop from measured bounds and test it against actual output without redrawing or moving the mug.

    Here is a by-hand check before you crop. Open the original, read the product's left and right x on a ruler, and note the handle ends at 1110. Then work out the right edge of the window you plan to use. If that edge lands below 1110, you already know the handle will clip, long before you zoom into the exported file.

  2. Describe a crop window with four numbers

    The origin is the top-left corner. In (150,0,900,900) the third value is width, so the right edge is 1050 rather than 900. The protected box includes the handle. Leave the required margin outside that box, not merely outside the centre of the cup.

    The centre crop clips the handle until the frame shifts right

    Illustration: The centre crop clips the handle until the frame shifts right · AI Ping

    1. The protected mug and handle span source x-coordinates 690 to 1110.
    2. A centred square ends at 1050 and clips the final sixty pixels.
    3. Move the square to x=300. Its right boundary at 1200 leaves ninety pixels of clearance.
    Read every step as text
    1. The automatic proposal reads “centred (150,0,900,900), plenty of margin”. The mug sits to the right and its handle ends at x=1110. Turn “plenty” into numbers.
    2. The centred window starts at 150. The product begins at 690, so the left side has 690 − 150 = 540 to spare.
    3. The third number, 900, is the window’s width, not its right edge. The right edge is 150 + 900 = 1050.
    4. The protected bounds, handle included, end at 1110. 1050 − 1110 = −60: this is no thin margin; sixty pixels of handle fall outside the window.
    5. A negative margin means the product itself is cut. The centred window cannot be delivered.
    6. The product stays where it is; only the window moves. Starting at 300, it ends at 300 + 900 = 1200, exactly the source width and no further.
    7. Subtract the same protected edge again. 1200 − 1110 = 90, so ninety pixels remain to the right of the handle.
    8. The delivery spec asks for at least 60 px on each side of the product. Ninety on the right clears it.
    9. Check the left as well: 690 − 300 = 390, well over 60. Window (300,0,900,900) keeps both margins and the whole handle, so it passes.

    Sometimes you fix the right edge first and solve for width. To end a window at 1200 with its left at 300, the width is 1200 − 300 = 900. Drop the end coordinate straight into the third slot and the frame stretches to 1500, outside the source. Keep end and width apart, and add left plus width to confirm the edge returns.

    P1 and its delivery rules, in source pixels
    ItemSpecification
    Canvas1200 × 900, origin (0,0) at top left
    Protected boundsx=690–1110, y=240–680, including handle
    Square900 × 900, at least 60 px to each side of the product
    Portrait720 × 900 (4:5), at least 60 px to each side of the product
    Edit scopeCrop only; do not move or stretch the product

    Download the 1200 × 900 crop source (SVG)

2 / 4

Step by step

Learn what to prepare, how to request help and how to revise the result through examples and explanations.

  1. Give the assistant both an aspect ratio and a margin

    Supply the canvas, bounds, required margins and output dimensions in source pixels. Ask for the computed edges as well as a suggested origin. Cropping selects part of an existing picture; stretching the picture or regenerating its subject would change the job.

    If the assistant answers 'ample margin on the right' in words, ask again for numbers. Add one line: 'list left, width, right edge, and right edge minus 1110.' Four figures come back instead of prose. If it replies in percentages, tell it to convert to source pixels. Ten percent is 120 pixels on a 1200 canvas but 90 on a 900 one, so mixed units break every check.

    Example prompt
    Suggest one square and one portrait crop from P1. Give left, top, width, height and both margin calculations in source pixels. Flag any negative margin or clearance under 60 px.
    
    P1 and its delivery rules, in source pixels
    Item | Specification
    Canvas | 1200 × 900, origin (0,0) at top left
    Protected bounds | x=690–1110, y=240–680, including handle
    Square | 900 × 900, at least 60 px to each side of the product
    Portrait | 720 × 900 (4:5), at least 60 px to each side of the product
    Edit scope | Crop only; do not move or stretch the product
  2. Check the right edge of a centre crop

    The editor’s faulty proposal claims that a centred 900-pixel square is safe. Its right edge is 150 + 900 = 1050. Subtract the product edge at 1110 and you get −60. A valid crop needs a right edge of at least 1170. Pushing it to 1200 leaves ninety pixels.

    A negative margin and a zero margin mean different things. At zero the handle sits flush against the edge and barely survives; at −60 its last sixty pixels fall outside and are cut. So 1050 − 1110 = −60 reads as 'product clipped,' not 'margin short.' Check the sign first; while it stays negative, no amount of margin tuning helps until you widen or move the window.

    Example prompt
    Compare the centred square’s right edge at 1050 with the protected edge at 1110. Move only the crop window to leave at least 60 pixels and recalculate both margins.
    Worked example & explanation

    Starting at x=300 gives a right edge of 1200 and 90 pixels beyond the protected product, wholly inside the source.

  3. Export both shapes from the original

    For the 720-pixel portrait start at x=480. Its margins are 690−480=210 and 1200−1110=90. The comparison shows three real viewports on the same illustration. Export each from the original; a previously cropped square has a new origin.

    Actual centre-square, corrected-square and portrait crops from one source
    Illustration: Actual centre-square, corrected-square and portrait crops from one source · AI Ping

    Use the shared vertical numbers to speed up checking. Square and portrait both start at top 0 with height 900, because the 900-pixel original leaves nothing to adjust up or down. Only left and width change. When you fill the delivery sheet, confirm both vertical cells read '0, 900' first; that catches anyone who quietly sets the height to 800 and trims the bottom of the cup.

    Delivery sheet checked against the same original
    FormatLeft, top, width, heightLeft / right marginDecision
    Faulty square(150,0,900,900)540 / −60 pxClips 60 px of the handle
    Corrected square(300,0,900,900)390 / 90 pxPass
    4:5 portrait(480,0,720,900)210 / 90 pxPass

3 / 4

Self-check

Think about what you would ask AI, then read the explanation. Written submissions and external AI use are optional.

This is a learning check, not a test you must pass. Use the explanations to understand the ideas.

  1. Q1Which candidate passes basic delivery?

    Write your thoughts (optional)

    Your writing is not sent anywhere. It disappears when you leave or reload this page, so copy anything you want to keep.

    Read the answer and explanation

    A leaves 100 px left and 160 right. B starts 20 px inside the protected product and clips it.

    This is your own review, not an automatic score.

  2. Q2Does A meet the added text requirement?

    Write your thoughts (optional)

    Your writing is not sent anywhere. It disappears when you leave or reload this page, so copy anything you want to keep.

    Read the answer and explanation

    Its 160 px on the right falls short by 20. Passing the basic margin requirement does not reserve enough space for text.

    This is your own review, not an automatic score.

  3. Q3Can a different origin reserve 180 px without moving the product?

    Write your thoughts (optional)

    Your writing is not sent anywhere. It disappears when you leave or reload this page, so copy anything you want to keep.

    Read the answer and explanation

    Use (20,0,720,900). It leaves 80 px left and 180 right, stays on the original canvas and passes both requirements.

    This is your own review, not an automatic score.

Common mistakes

  • Crop width is not the right-edge coordinate.
  • A visible product centre does not guarantee an intact outline.

Your learning record

Completion is optional. Mark this lesson when you feel ready, or move to the next lesson without marking it.

Completion is saved in this browser.

4 / 4

Apply to your work

Consider how new material changes the workflow and checking criteria. Trying an external AI tool is optional.

  1. Try a product positioned on the left

    P2 moves the product to the left. Test each candidate against the basic clearance, then against the new right-hand text requirement. If another origin works, record both its coordinates and calculated margins so a colleague can reproduce it.

    When you tackle P2, recompute rather than recall. Write each candidate's left and right edge, then subtract from the protected bounds 100 and 560 to get both margins. Drop any candidate with a negative result, since it cut the product. Keep only those passing the basic clearance, then separately test whether the right margin is at least 180 px. If it falls short, shift the left by a few pixels and recheck both edges, watching the right edge stays within 1200.

    New P2 with a left-aligned product
    ItemSpecification
    Source1200 × 900, product x=100–560, y=200–700
    Delivery720 × 900, 60 px minimum on either side, stay inside the source
    CandidatesA (0,0,720,900), B (120,0,720,900)
    Additional request180 px clear of the product on the right for text
Write a note (optional)

Use this only if you want to record a prompt or your understanding. This is a notebook, not a connected AI assistant.

Your writing is not sent anywhere. It disappears when you leave or reload this page, so copy anything you want to keep.

Contents

This reading lesson explains how to use external AI tools. Read from theory to the workflow, examples and explanations, or use the contents to jump to a section. Skipping does not mark a lesson complete.

References