AI Image Resizer: Fit Photos Without Stretching
Short answer
The box is a limit, not a shape: how fit-inside resizing preserves proportions, why enlargement is prevented, and the division that verifies every download.
See the example
From 1200 × 800 to 600 × 400
An actual fit-inside resize. A 600 × 600 bounding box preserves this landscape image’s proportions.


The source mug image was generated for a tutorial. These are public demonstration assets, not customer files. Pixel-operation downloads were produced with the same Sharp operations used by the connected tools.
The file came back 600 by 400, and Yousef nearly rejected it. He had asked for a 600 by 600 image for a marketplace slot, attached a landscape photo of his jallabiya fabric, 1200 by 800, and what he got back was shorter than the box. His first thought: the tool failed. It hadn't. The request was fit inside 600 by 600, and fit inside is exactly what happened — the width stopped at the box, and the height stopped where the proportions demanded, because reaching 600 tall would have meant stretching. A stretched product photo is worse than a short one, so the resizer refuses to make one. That single rule turns it from a source of surprises into the most checkable tool in the image set.
The box is a limit, not a shape
You give the resizer a maximum width and a maximum height, and the photo scales down until it fits within both. The proportions never change, so the output usually has different dimensions from the box. That is correct behavior, and the arithmetic behind it takes ten seconds: divide each side of the box by the matching side of the photo, take the smaller ratio, apply it to both sides. For Yousef's photo, 600 divided by 1200 gives 0.5 and 600 divided by 800 gives 0.75 — the smaller scale is 0.5, so the result is 600 by 400. The demonstration above this article shows the same operation on the tutorial mug image: 1200 by 800 in, 600 by 400 out, box 600 by 600, enlargement prevented.
The resizer also never enlarges. If the photo already fits inside your box, the returned file keeps its original width and height — an 800 by 600 supplier photo dropped into a 1200 by 1200 box comes back 800 by 600, not 1200 by 900. A bigger box does not create detail, and any file that comes back larger than the original is a failed result you should not use. Plan around the hard limits too: each side must sit between 64 and 4096 pixels, the input can total up to 40 million pixels, and the returned file caps at 10 MB. Most phone photos sit far under all three. For a related next step, read the Assistly guide on prepare transparent product images and check the returned file before use.
One more thing to know before you start: this is a pixel operation, performed by the local image-editing path on the actual file. It is not AI vision reasoning about what the photo shows, and it is not the text-to-image generator, which builds a new picture from words and never edits the one you attached. If a request mixes the three jobs, split it into separate messages so you know which path produced which file.
Try this prompt in Assistly
Attach the photo you want resized to the current message and paste: Resize the attached photo to fit inside a 600 by 600 pixel box. Keep the original aspect ratio and do not enlarge the image under any condition. Return the resized file as WebP. After the file comes back, tell me the width and height you used for the fit so I can check them against the original. If the photo already fits inside the box, return it unchanged in dimensions and say so.Try this task
Crop, pad, or reshoot: when the fit is the wrong answer
Sometimes a 600 by 400 result in a square slot genuinely is a problem — the layout needs an exact square with the product filling it. Resizing cannot solve that, so choose deliberately among three fixes. A crop changes the shape by cutting content away; right for a product that sits well inside its frame, wrong when the top of the garment would go. Padding places the photo on a canvas the size of the box; right for marketplace rules that demand exact dimensions, wrong when it looks like dead space. A reshoot changes the source; right when the photo was framed for a different purpose in the first place. Send whichever operation you chose as its own request, one per message, so each result can be judged on its own.
What you should never do is ask the generator to "make this picture square" while attaching the photo. Generation is a separate path that draws a new image from your description — useful for concepts, useless as a resize, and it will not return your actual product. Continue with a related workflow: AI Product Photo Description: Copy You Can Prove
Examples, worked through
The marketplace slot that wanted a square
What to give Assistly. Attach the photo in the current message — not an earlier one, because the operation works on the file attached now — and write: "Resize the attached photo to fit inside a 600 by 600 pixel box. Keep the original aspect ratio, do not enlarge it, and return the result as WebP." The photo measures 1200 by 800.
What Assistly returns. A 600 by 400 WebP file, with the mug or garment centered as it was and no padding added. The fit used the smaller scale factor, 0.5, so both sides halved. The result is not a square and the tool will not apologize for that — the square was a limit, not a promise.
How to verify it. Open the downloaded file's properties and confirm 600 by 400. Do the division: 600 over 1200 and 400 over 800, both 0.5. Put the original and the result in the same viewer and check the subject for any softness at the new size. Keep the original untouched as your master, because the download is always a separate file and you may need a different box tomorrow.
The photo that was already too small
What to give Assistly. A supplier photo measuring 800 by 600, attached with the request: "Resize to fit inside a 1200 by 1200 box, JPEG output."
What Assistly returns. The same 800 by 600 dimensions, converted to JPEG. No enlargement happened, and none was available to happen — the box being larger than the photo does not invent pixels. This is where a deliberate wrong version is worth showing: a colleague once ran this photo through an "AI upscaler" that returned 1200 by 900, everyone approved it from a thumbnail, and the file looked watercolor-soft the day it appeared on a printed flyer. The fix was boring and permanent: use the un-enlarged original and let the layout scale it, or reshoot.
How to verify it. The returned dimensions must match the source exactly — if they are bigger, enlargement happened somewhere and the file is wrong for print work. Check the actual file type separately rather than trusting the request text. And do not describe this output as upscaling to anyone downstream, because that word invites the exact mistake that soft flyer taught you.
Common questions
- Why did my square request come back rectangular?
Because the resize fits the photo inside the box without changing its proportions. A 1200 by 800 photo in a 600 by 600 box returns 600 by 400, exactly as in the demonstration above. If you need an exact square, that is a crop or a padded canvas — a separate decision the resizer deliberately does not make for you.
- Can I use this to make a small photo bigger?
No. Enlargement is prevented as part of the operation: if the photo already fits inside your box, the returned file keeps its original dimensions. Nothing in this workflow restores detail to a small image, and a copy that comes back larger than the source should be discarded.
- Will Assistly hit an exact file size in kilobytes?
No. The resizer works in pixels and has no byte target. If your concern is weight rather than dimensions, that is the compressor's job — ask for compression as its own request and compare the measured sizes afterward.
- Does my original file change?
No. The original upload is retained and the result is a separate download. Keep your own master copy too, so you can rerun the check whenever a colleague or a printer questions the dimensions.
- What photo sizes are accepted?
Each side must be between 64 and 4096 pixels, the input may contain up to 40 million pixels in total, and the returned file can be at most 10 MB. A large scan or panoramic stitch that exceeds the pixel cap should be exported smaller from its original software before you attach it.