Using the Image Resizer
The Image Resizer resamples an upload to the width and height you type. The file field is labeled Image and starts with no file. The Width field starts at 100. The Height field starts at 100. Choose Resize the image. On a successful resize of a 2 by 1 source to 4 by 2, the label above the headline reads Size and the headline is 4 by 2. The sentence is The image was resampled to 4 by 2 pixels. Aspect ratio is not preserved unless the typed size matches it. The file is not stored.
The Width line is 4 and the Height line is 2 for that sample. The download is named resized.png, and the button reads Download resized.png. The steps say to choose an image up to 5 MB, type width and height, and download resized.png. The about line says width and height are whole pixels from 1 to 4000. The page does not keep the file.
Before you choose Resize the image, the headline reads Choose an image and the label reads Result. Width and height must each be a whole number from 1 to 4000. A missing file returns Choose a PNG, JPG, GIF, WebP, BMP, or AVIF image up to 5 MB. A 2 by 1 source typed as 100 by 100 stretches both axes; only a typed size on the same ratio as the source keeps aspect ratio without distortion.
Defaults of 100 and 100 remain until you edit them. They do not auto-track the upload dimensions. Output always follows what you typed, not what the source had.
Teachers can demo aspect change and preservation with the same 2 by 1 asset and two typed sizes without swapping uploads.
What the Headline 4 by 2 Measures
The headline is the output width and height in pixels. After the sample resize, the headline is 4 by 2. The label reads Size. The headline is not the source size. The sentence names the resampled size and warns that aspect ratio is not preserved unless the typed size matches it. For the sample, the sentence is The image was resampled to 4 by 2 pixels. Aspect ratio is not preserved unless the typed size matches it. The file is not stored.
The download is resized.png. The button reads Download resized.png. Copy result copies the sentence. The form defaults are 100 and 100, not the source dimensions. Output is always PNG. An error clears the sentence and lines. Width must be a whole number from 1 to 4000. Height must be a whole number from 1 to 4000.
The waiting headline is Choose an image. The button says Resize the image. The example is a 2 by 1 image resized to 4 by 2. That doubles each axis and keeps the 2 to 1 ratio, so aspect ratio is preserved for that pair even though the sentence still states the general rule. A 2 by 1 image typed as 100 by 100 does not preserve aspect ratio.
The Width and Height lines repeat the headline numbers. The resample uses imagecopyresampled across the full typed canvas. Transparency is handled on the PNG output. The file is not stored after encoding.
Resampling uses the full typed rectangle. The PNG matches headline width and height exactly. Transparency handling prepares a canvas before imagecopyresampled runs.
Waiting headlines return after reset along with cleared detail lines. Submit buttons keep their tool-specific labels across idle and error states.
The Size label mirrors other tools that put category names above numeric headlines.
The shared upload limit message for a missing file mentions PNG, JPG, GIF, WebP, BMP, or AVIF up to five megabytes. That cap is consistent across raster tools in this family. Reset returns the waiting headline and clears lines so the next visitor does not inherit numbers from the previous run.
How 4 by 2 Replaces 2 by 1 Pixels
The page reads width and height as whole numbers, then reads the file. Defaults are 100 and 100 until you change them. Values outside 1 to 4000 or non-whole numbers return Width must be a whole number from 1 to 4000 or the matching height message. When both are valid, the page decodes the source, builds a truecolor canvas at the typed size, and resamples.
For the sample, the headline is 4 by 2. The sentence matches. The download is resized.png. The steps say the typed size is checked, the source is resampled, and the file is not stored. The output PNG dimensions equal the typed width and height exactly, not the source dimensions.
Interest on a principal is a different product. The Simple Interest Calculator multiplies principal by an annual percent and by years. A principal of 1000 at 5 percent for 2 years earns interest of 100 and a total of 1100. The headline there is the interest. That page does not resample pixels. Use it when the sample principal of 1000 should earn interest of 100. Use this page when a 2 by 1 image at 4 by 2 should return headline 4 by 2.
Whole number enforcement uses the Width and Height labels in refusal strings. Upper bounds are 4000 per side. Zero and decimals fail before resampling starts.
Upload refusal messages are shared across raster tools up to five megabytes. Unreadable bytes use a shorter choose-an-image family message without the size clause.
Alpha handling on PNG output prepares a canvas before samples are written.
What Resizing Does Not Assume
The page does not lock aspect ratio on the form. It does not auto-fill height when width changes. You type both numbers. Aspect ratio is not preserved unless the typed size matches the source ratio, as in the 2 by 1 to 4 by 2 sample. Reset clears the file and returns width and height to 100. The headline returns to Choose an image.
From 2 by 1 Source to 4 by 2 PNG
Choose a 2 by 1 image. Type width 4 and height 2. Choose Resize the image. The headline is 4 by 2. The label reads Size. The sentence includes resampled to 4 by 2 pixels and the aspect ratio line. The Width line is 4 and Height is 2. Download resized.png.
A compounded amount is a different figure. The Compound Interest Calculator compounds a principal at an annual percent. A principal of 1000 at 5 percent, compounded 1 times a year for 1 years, is 1050. The interest line there is 50. The headline there is the amount. That page does not output 4 by 2 pixels. Use it when the sample principal of 1000 should become 1050. Use this page when the sentence should say resampled to 4 by 2 pixels.
Sizes Outside 1 to 4000
A common miss is to expect automatic aspect ratio from one field. Both width and height must be typed. Another miss is to read the defaults 100 and 100 as the output before you submit. Another miss is to think any resize preserves ratio. Only matching ratios do. Another miss is width 4001, refused as out of range.
A comparison that does not pick a base is a different percent. The Percentage Difference Calculator uses the absolute difference divided by the average of the absolute values, times 100. The absolute difference of 40 and 50 is 10. The average of the absolute values is 45. The percentage difference is 22.22. That page does not resample images. Use it when you are comparing 40 and 50. Use this page when width and height must be whole numbers from 1 to 4000.
Keeping the Size and resized.png
Copy the sentence and download resized.png before reset. For the sample the sentence names 4 by 2 and the aspect ratio rule. The headline is 4 by 2. Keep Width and Height lines with your note.
A margin from revenue and cost is a different percent. The Profit Margin Calculator subtracts cost from revenue and divides that profit by revenue. Revenue of 200 and cost of 150 give profit of 50 and a margin of 25 percent. The headline there is the margin percent. That page does not build resized.png. Use it when revenue and cost are the inputs. Use this page when the record is resized.png at 4 by 2.
A PNG at the Size You Typed
The headline answers the output width and height. From the sample the answer is 4 by 2. The sentence repeats that size and states the aspect ratio rule. The label reads Size. The download is resized.png. The file is not stored.
Checking Typed Size and Lines
On a 2 by 1 image, type 4 and 2 and confirm headline 4 by 2, the resampled sentence, and Download resized.png. Try 100 and 100 on that source and confirm a stretched 100 by 100 headline. Submit with no file and confirm the missing-file message. Type 0 in width and confirm the whole-number refusal. Reset and confirm defaults return to 100.
A sale price after one discount percent is a different reduction. The Discount Calculator multiplies a price by one percent and subtracts. A price of 80 at 25 percent is a discount of 20 and a sale price of 60. The headline there is the sale price. That page does not resize images. Use it when the sample price of 80 at 25 percent should return a sale price of 60. Use this page when 4 by 2 should be the headline for the sample resize.