KitNelo · All tools · Blog
Image guidesPractical guides

Image upload rejected despite a small file? Check pixels and aspect ratio

An image can meet a file-size limit and still fail a dimension check. Lowering quality again does not necessarily address that problem. This guide starts with the recipient’s specification, then chooses cropping or resizing. It focuses on pixel dimensions and composition rather than repeating a target-KB compression workflow.

KitNeloPublished 4 min read
Pink and purple gradients on rolled paper illustrating image color and edges
Illustrative photo: Saifee Art · Unsplash License

Quick answer

Record width, height, whether the match must be exact, accepted formats and the size limit. If the ratio differs and distortion is unacceptable, crop before proportional resizing. Check the actual downloaded file’s dimensions, content and size; a preview on a web page is not an acceptance check.

Separate the upload requirements

Establish whether the requirement is an exact size, a maximum or a minimum. Exactly 512×512 px and a width no greater than 512 px are different tasks. Also record accepted formats, the file-size limit and whether cropping the subject is allowed. These numbers are editorial examples, not a particular service’s rules.

MDN’s explanation of intrinsic and displayed image width distinguishes the two. Density correction and browser intervention can also affect the reported intrinsic value. Do not infer a file’s specification solely from its apparent size on screen. Inspect the downloaded file and check the actual recipient’s response.

Choose resizing or cropping deliberately

When source and target ratios match, proportional resizing is suitable. When they differ and the image must fill the target, cropping removes edge content; independently changing width and height stretches the image. Decide what must remain before changing numbers, especially for faces, text or product shapes.

Use the image-cropping entry point when composition needs to change, then pass the exported result to the resizing tool. Neither entry point establishes compliance with every requirement for an application photo or official document. Check strict submissions against the original specification.

Example: turn a landscape image into a square

Suppose the source is 1200×800 px and the target is 512×512 px. Setting width to 512 with proportional resizing gives a height of approximately 341, rather than a square. Independently setting both dimensions to 512 meets the numbers but changes the subject’s proportions.

One option is to crop a suitable square region first, then resize it to 512×512. Inspect what the crop removes. If essential content cannot fit, ask the recipient whether borders or other dimensions are permitted. This is an editorial calculation and workflow example, not a reported test of an upload service.

Resize an exported file

  1. 1Open image resizing and select PNG, JPEG or WebP. Compare the source dimensions and file size shown by the tool with your requirement.
  2. 2When the ratio is correct, retain the aspect-ratio setting, enter the target width and inspect the resulting height. Disable it and specify both dimensions only when independent stretching is acceptable.
  3. 3Choose a format the recipient accepts, then process and preview. The default format may not be suitable; renaming an extension does not convert the file.
  4. 4Compare subject shape, edges, text and transparency with the original. Download with a distinct name and retain the source so repeated exports do not erase your reference.

This entry processes one image in the current browser. Input files must be at most 30 MB. Input and output are also limited to a longest edge of 16,000 pixels and 40 million total pixels.

Check the download, not only the preview

  • Open the downloaded file and check both dimensions and its format. Exact-size requirements apply to both edges.
  • Inspect missing edges, distorted shapes and small text. Increasing dimensions does not automatically recover detail absent from the source.
  • Check file size. If necessary, follow the target-KB compression workflow, but do not permit another dimension reduction when exact pixels are required.
  • Check background rules. This resizing entry fills transparent areas white when exporting JPEG. Use the image-format guide and the recipient’s rules to decide whether PNG or WebP is suitable.

Investigate rejection after dimensions are correct

Confirm that you selected the new download, not a similarly named original. Retain the full error message and check format, size, file integrity and content requirements. Matching dimensions does not establish that every upload condition passes or that the website is faulty.

Local processing does not create a managed backup for you. Open the download and keep important originals and outputs somewhere you control. Before cropping or re-encoding material containing exact text, signatures or evidence, establish whether such changes are permitted.

Common questions

Will 512×512 always pass an upload?

No. Format, size and content requirements also matter. The example is not a particular platform’s acceptance rule.

Can disabling aspect ratio replace cropping?

It permits independent dimensions but changes proportions. For natural shapes, adjust composition first and resize proportionally.

Why did compression make the dimensions wrong again?

Dimension reduction may have been enabled. Check the final compressed file and avoid another width or height change when exact pixels are required.

Further reading & sources

Put the guide into practice

Open the relevant tool, preview the result and check your exported file.

Related articles