ScreenshotNeo

BlogHow-to

How to Turn a PNG Into a High-Resolution Image

Learn how to enlarge a PNG correctly, preserve its proportions, choose resampling or AI upscaling, and avoid confusing pixels with DPI.

By the ScreenshotNeo team1 October 20267 min read

To turn a PNG into a high-resolution image, increase its pixel dimensions with resampling enabled. Keep the aspect ratio locked, choose an interpolation or AI method that fits the image, inspect the result at 100%, and export a new PNG while preserving the original. Changing only the PPI or DPI metadata does not add pixels.

What “high resolution” means for a PNG

A PNG is a raster image. Its resolution for screens is determined by its pixel dimensions, such as 800 × 600 or 3,200 × 2,400 pixels. PPI (pixels per inch) describes how densely those pixels are placed when printed. Increasing PPI without resampling changes the intended physical print size but leaves the pixel count unchanged. Adobe illustrates this with a 400 × 400 pixel image: at 100 ppi it prints at 4 × 4 inches; at 200 ppi it prints at 2 × 2 inches. Adobe explains the difference between image size, resolution, and resampling.

Upscaling creates estimated pixels from the pixels already present. It can make a file larger and more usable, but it cannot recover detail that the camera, scanner, or original export never captured. GIMP’s documentation states the same limitation for interpolation. GIMP’s Scale Image documentation describes how interpolation works.

Choose the target before enlarging

  1. Check the source dimensions. In an image editor, open the image properties or image-size dialog and record the current width and height in pixels.
  2. Define the output use. A web image needs enough pixels for its rendered size; a print job needs enough pixels for its physical dimensions and chosen PPI. Ask for the printer’s requirements when they are known.
  3. Set one target dimension. Decide the target width or height and let the other dimension follow the locked aspect ratio.
  4. Keep the source. Save the enlarged file under a new name so you can compare methods or return to the original.

Method 1: Resize a PNG in Photoshop

  1. Open the PNG in Photoshop.
  2. Choose Image → Image Size.
  3. Enable Resample. This is the setting that recalculates the pixel grid.
  4. Turn on the linked width-and-height control so the aspect ratio stays fixed.
  5. Enter the required pixel width or height.
  6. Choose a resampling method. For a normal enlargement, use a standard automatic or interpolation option and inspect the result.
  7. Click OK, review edges and fine details at 100%, then choose File → Export → Export As and select PNG.

Adobe documents the Image Size workflow and the aspect-ratio control in its Resize images in Photoshop guide.

Method 2: Resize a PNG in GIMP

  1. Open the PNG in GIMP.
  2. Choose Image → Scale Image.
  3. Set the desired width or height in pixels and keep the chain linked to preserve proportions.
  4. Choose an interpolation method. Use a conventional interpolation method for predictable enlargement; compare another method if edges or patterns look poor.
  5. Click Scale.
  6. Export with File → Export As, keep PNG selected, and save to a new filename.

Interpolation estimates new pixel values; it does not restore missing original detail. See the GIMP 3.2 Scale Image manual.

Method 3: Use a repeatable Python script

For batch work, Pillow can resize a PNG with a high-quality Lanczos filter. Install Pillow once with python -m pip install Pillow, then save this as upscale_png.py:

from pathlib import Path
from PIL import Image

source = Path("input.png")
destination = Path("output-3200.png")
target_width = 3200

with Image.open(source) as image:
    image.load()
    ratio = target_width / image.width
    target_height = round(image.height * ratio)
    enlarged = image.resize(
        (target_width, target_height),
        resample=Image.Resampling.LANCZOS,
    )
    # Preserve transparency when the source has an alpha channel.
    enlarged.save(destination, format="PNG")

print(f"Saved {destination} ({target_width}x{target_height})")

Run it with python upscale_png.py. Change target_width or calculate the target from a required height. The script preserves the aspect ratio and writes a separate output file; it does not create factual detail that was absent from the input.

Conventional resampling versus AI upscaling

Approach Use it when Trade-off
Conventional interpolation You need a modest enlargement, predictable pixels, or a simple editor workflow. New pixels are estimates, so softness and ringing can appear.
Photoshop Generative Upscale You need a larger photo enlargement and can accept inferred visual detail. The result may invent texture or facial detail. Adobe currently documents 2× and 4× choices; model availability and limits can change.
Recreate from the original The image is a logo, diagram, text graphic, or other asset available in an editable or higher-resolution source. Finding the source may take longer, but it avoids treating an upscale as recovered detail.

Adobe’s Generative Upscale documentation describes its 2× and 4× options and names several available models. Check the current Photoshop interface before following model-specific steps.

How large should you make the PNG?

  • Screen or web: Start from the largest display size you actually need. Oversized files increase transfer and decode costs without improving a smaller rendered element.
  • Print: Calculate the pixel dimensions from the physical size and requested PPI. For example, a 10-inch-wide image at 300 ppi needs 3,000 pixels across. This calculation sets a target; it does not guarantee that an upscale will look like a native 3,000-pixel capture.
  • Social or marketplace uploads: Follow the destination’s current pixel and file-size limits, then export to those limits rather than enlarging indefinitely.

Inspect the result before you publish it

  1. View at 100% to find halos, jagged diagonals, blockiness, repeated textures, and sharpened noise.
  2. Zoom out to the final display or print size. A defect visible at 400% may not matter in the real layout, while a softened headline may remain obvious at normal size.
  3. Check text, faces, thin lines, hair, foliage, and repeating patterns separately.
  4. Compare the enlarged image with the original side by side.
  5. If the image contains evidence, labels, or measurements, do not treat AI-generated texture as information verified by the source.

Or skip the browser setup

If the PNG is a screenshot you have not captured yet, creating a larger source image is usually better than enlarging a small one later. ScreenshotNeo returns PNG, JPEG, WebP, or PDF from one request and supports full-page captures, retina scale, any viewport, dark mode, element captures, and lazy-image loading. Cookie banners, newsletter popups, and chat widgets are removed before the shot. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status. Its MCP server lets Claude, Cursor, and other MCP clients take screenshots.

See the ScreenshotNeo API documentation for all options. A basic PNG or WebP capture looks like this:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Free accounts include 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 shots, and every feature is available on every plan. Create a free ScreenshotNeo account.

Troubleshooting

Problem Likely cause Fix
The file is larger but still blurry. Upscaling estimated pixels; the source lacks detail. Find a higher-resolution original, reduce the enlargement factor, or compare an AI method while checking for invented detail.
The subject looks stretched. Width and height were changed independently. Lock the aspect ratio and set only one target dimension.
Changing DPI did nothing. Resampling was disabled. Enable resampling and enter a pixel dimension; DPI alone changes print metadata.
Text has halos or jagged edges. Interpolation or sharpening exaggerated high-contrast edges. Try a different interpolation method, reduce sharpening, or obtain the original vector or larger export.
Transparency disappeared. The export converted RGBA to a format or color mode without alpha. Keep an alpha-capable PNG mode and verify the exported file over a contrasting background.
The output is too large for upload. Pixel dimensions and PNG compression are both increasing file size. Resize to the actual display requirement, remove unnecessary metadata, or use the destination’s accepted format when transparency is not needed.

Performance, reliability, and cost notes

  • Upscaling consumes memory roughly in proportion to the output pixel count. Resize in stages or use a 64-bit editor when very large images exceed available memory.
  • Keep the original and record the target dimensions, software, interpolation method, and export settings so the result can be reproduced.
  • For batch jobs, use a script and deterministic filenames, then verify that every output opens and has the expected dimensions.
  • AI upscaling can add processing time and may have current product limits; check the software’s documentation before designing an automated pipeline.
  • ScreenshotNeo’s cache can reduce repeat capture work with a TTL you choose. Failed loads and cache hits are not billed according to its response verdict and billing headers.

FAQ

Can I make a PNG truly high resolution by changing it to 300 DPI?

No. DPI or PPI metadata can change the planned print size, but pixel dimensions change only when you resample or replace the source.

What is the best enlargement method?

Use conventional resampling for a modest, predictable increase. Consider AI upscaling for a larger photo enlargement when inferred detail is acceptable. For exact text, logos, or evidence, obtain the original higher-resolution asset.

Should I save the enlarged image as PNG?

Use PNG when you need lossless output or transparency. Follow the destination’s requirements if it accepts another format and does not need an alpha channel.

The banner was present in the source capture, so resizing cannot remove it cleanly. Capture the page again with a tool that handles consent elements before taking the screenshot, or remove the banner in an editor while preserving the original for reference.