# Image resize > How big should your image be? Resize a photo or picture by width, height or percent. It stays on your device. Resize a photo or picture by width, height, percent or longest side and keep its proportions. It runs in your browser, so the image never leaves your device. - Page: https://how.box/image-resize/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/image-resize/?m={m}&w={w}&h={h}&p={p}&max={max}&t={t} - `m` (width, height, percent, max or exact): Resize by: width, height, percent, max (longest side) or exact. Example: `width`. - `w` (whole number 1 to 16384): New width in pixels. Example: `800`. - `h` (whole number 1 to 16384): New height in pixels. Example: `600`. - `p` (number 1 to 1000): Scale in percent of the original. Example: `50`. - `max` (whole number 1 to 16384): Longest side in pixels. Example: `1600`. - `t` (same, png, jpeg, webp or avif): File type: same, png, jpeg, webp or avif. Example: `same`. Example answer: https://how.box/image-resize/?m=width&w=800&h=600&p=50&max=1600&t=same The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `image_resize_dimensions`: Calculates the size an image gets when resized, from the original width and height in pixels. - MCP: POST https://how.box/mcp `tools/call` with `{"name":"image_resize_dimensions","arguments":{…}}`; input schema in https://how.box/agent-tools.json. ## How it works An image is a grid of pixels. Resizing makes a new grid with a different number of pixels, and each new pixel is a blend of the nearby old ones. Your browser does this on your own device, so the picture is never sent anywhere. To keep the proportions, one scale factor is used for both sides: new width ÷ old width. A 4000 × 3000 photo resized to a width of 800 uses a factor of 0.2, so the height becomes 3000 × 0.2 = 600 and the result is 800 × 600. The other side is rounded to a whole pixel. Choose an exact width and height only if you want the proportions to change. Making an image smaller keeps it sharp; making it larger only stretches what is there and cannot add detail. Very large images (over about 16 million pixels) are refused, because a phone or an older computer may run out of memory. Transparency is kept in PNG, WebP and AVIF; JPEG has none, so it is filled with white. ## FAQ **Is my image uploaded?** No. The image is opened and resized in your browser and never leaves your device. **Does it keep the proportions?** Yes, unless you choose an exact width and height. With width, height, percent or longest side the other side follows automatically. **Why does a resized photo sometimes get a bigger file?** The file type decides the size. A photo saved as PNG is much larger than the same photo as JPEG or WebP, so choose a lossy type to shrink the file. **Is photo location data copied?** No. The new image is drawn from the pixels only, so camera details and location are left out. The photo's rotation is applied. **Will enlarging a photo restore missing detail?** No. Enlarging adds pixels but cannot recover detail that was not in the original. Check the preview for softness before downloading. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)