Image Size Reducer
PNG stroke tool

Add a Stroke to PNG

A stroke is the weight of the line around a shape, and this tool treats it as the design decision it is. Color and thickness are separate controls, the line is drawn outside the artwork, and the file keeps its original dimensions.

  • Weight from a hairline to a bold band
  • Color entered as an exact value
  • Drawn outside, so nothing is covered
  • Artboard size left alone
  • Checked on the canvas at final size
Open the stroke tool

What Is a PNG Stroke Tool

A canvas tool that draws a line of a chosen weight and color around the artwork in a PNG, outside its existing edges.

You load a PNG, pick a color, and set a weight. The tool draws a line along the contour of the artwork at that thickness, growing outward from the original edge, so the drawing inside keeps every pixel it had. Stroke color and stroke width are independent settings, which is what allows the same file to be reused with a hairline for one purpose and a heavy band for another. Stroke is the word designers already use for this in vector software, where it sits next to fill in the appearance panel. That framing is useful here, because the interesting part is not whether a line exists but how heavy it is. A hairline stroke is a separation device; a heavy stroke is a style decision that changes how the artwork reads. When the intent is to add a stroke to PNG artwork as a deliberate weight rather than as a visibility fix, the thickness slider is the setting that carries the whole result.

Why Add a Stroke to PNG in the Browser

Weight and color are separate dials, and both of them act on the outside of the artwork rather than on the drawing itself.

Color entered as a value

The picker takes a hex code, so a stroke can be the exact shade specified in a brand document rather than something close enough to pass at a glance.

A weight range that covers both ends

The slider runs from a hairline that only separates a shape from its background to a heavy band that changes the character of the drawing entirely.

Applied outside the artwork

The line grows outward from the existing edge, so no part of the drawing is covered and the internal shapes keep the proportions they were approved with.

One value across a whole set

Because the stroke is generated from each file rather than drawn by hand, the same weight applied to a folder of images produces a consistent result on every shape.

Judged at the size it will be used

A weight that looks correct at full zoom is often wrong at 32 pixels, so the canvas preview is where the number should be settled rather than in a specification alone.

ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The lettering disappears over a busy photo

Type placed directly onto a photograph competes with everything behind it. Where the picture is light the letters hold, and where it turns dark or detailed the same letters stop being readable, which makes a single placement unpredictable. A stroke solves type over imagery the way it has always been solved in print. A line of a few pixels around each letterform separates it from whatever it sits on, and the color can be white when the photograph is dark or black when it is light, so the text reads the same way across the whole image.
Set a stroke
Lettering with a stroke staying readable over a photograph
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The illustration needs a heavier graphic weight

Two drawings can share the same shapes and read completely differently depending on the line around them. A thin outline suggests a technical drawing; a heavy one suggests a printed cartoon, and nothing inside the picture has to change to move from one to the other. Heavier strokes are the fastest way to shift a set of illustrations toward a bolder, more graphic register. Because the line grows outward rather than inward, a detailed drawing can gain that weight without its internal shapes being swallowed, as long as the thickness is raised in steps instead of in one jump.
Set a stroke
Illustration shown with a light stroke and a bold stroke
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The interface needs a higher-contrast version

Contrast requirements are unforgiving of pale marks on pale panels, and a cut-out that was designed on a designer's monitor can fail against a cheap display in bright light. The shape is legible to the person who made it and not to everyone else. A stroke raises contrast without recoloring the artwork. Adding a dark line around a pale icon increases the difference between the mark and its surroundings, which is the property that contrast rules actually measure, and the icon keeps the colors it was approved with.
Set a stroke
Pale icon with a dark stroke shown against a low-contrast panel
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The mark is unreadable at favicon size

A logo that works at 400 pixels is not automatically a logo that works at 32. Fine internal detail turns to mud at that size, and a mark without a defined outer edge dissolves into whatever tab bar it lands in. A stroke at small sizes works differently from one at large sizes. It has to be thin enough to leave the internal shapes intact and present enough to hold the outline, which is usually about two pixels at that scale. Checking the result at the actual display size is the only way to land on that value.
Set a stroke
Small favicon-sized mark with a thin stroke holding its outline
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The guidelines specify a stroke weight

Brand documentation increasingly specifies line weight alongside color and typeface, usually as a number in pixels or as a fraction of the artwork's height. A mark that arrives with a different weight is a deviation someone has to notice and correct. Hitting a specified value is a matter of entering the number rather than approximating it by eye. Once one asset in the library matches the specification, the same weight can be reused across the rest — which is the whole point of being able to add a stroke to PNG artwork as a value instead of a judgement call.
Set a stroke
Brand guideline showing a specified stroke weight beside a matching file
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The hairline stroke vanishes in print

A one-pixel line looks crisp on screen and can drop out entirely on a press. Ink spread, paper texture, and the resolution of the printing device all work against a line that thin, and the result is a mark with a missing edge. Screen and print want different weights for the same drawing. A stroke that reads as a fine detail at 72 pixels per inch needs to be noticeably heavier at print resolution to survive, and knowing the destination before choosing the number saves a second round of corrections.
Set a stroke
Printed sample showing a hairline stroke that has dropped out
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

Every asset in the library needs the same weight

A library of icons, badges, and marks assembled over a year has no consistent stroke. Some files were exported with a line and some without, and the weights that do exist are all slightly different. Applying one value across the whole set is what makes it look like a library. The stroke is generated from the artwork rather than drawn by hand, so the same number produces the same result on a circle, a star, and a detailed figure, and the set stops looking like a folder of unrelated exports.
Set a stroke
Library of icons sharing one identical stroke weight
ImageSizeReducer

ImageSizeReducer

@imagesizereducer

The same mark has to work on light and dark pages

One file rarely serves both. A white mark with a white stroke is invisible on a white page, and the same file on a dark page works perfectly, so teams end up maintaining two versions whether they intended to or not. Producing them deliberately is simpler than discovering the problem in production. Generate each variant with a stroke that contrasts against the surface it is headed for, and the pair behaves predictably instead of one of them failing silently on the page nobody tested.
Set a stroke
One mark prepared with a light stroke and a dark stroke

How to Use the Stroke Tool

Four steps, and the weight is the only setting whose correct value depends on where the file is going.

Step 1

Load the PNG

Drop the file onto the input canvas. It appears at full size with its transparent regions already showing as empty.

Step 2

Choose the stroke color

Select a shade in the picker or type the value from a brand document. The line on the output canvas takes the new color immediately.

Step 3

Set the weight

Move the slider up in small steps and watch how the line reads against the artwork. Icons and lettering need far less than solid shapes.

Step 4

Check the destination and download

Look at the result at the size it will be seen and in the medium it is going to, then save. The dimensions are unchanged.

Who Sets a Stroke Weight

Four kinds of work where thickness is a decision rather than a default.

LA

Lettering artists

type placed directly over photographs and textures

A line around each letterform is what keeps the words readable wherever they land, and switching its color per image takes a moment rather than a redraw.

AR

Accessibility reviewers

interfaces with contrast requirements to satisfy

A stroke raises the difference between a pale mark and its panel without changing the approved colors, which is often the only adjustment available this late in a build.

BS

Brand studios

documents that specify a line weight as a rule

Entering the specified number rather than judging by eye means the assets match the guideline the first time, and the same value carries across the whole family.

IL

Icon library maintainers

sets assembled over years from different sources

One weight applied across the set is what turns a folder of exports into a library, and generating the line from each file keeps it identical on every shape.

Frequently Asked Questions

What to settle before setting a weight on a file.

Give that shape the weight it needs

Load the PNG, choose the stroke color, set the weight, and download the result with the transparency intact.

Set a stroke
Weight Is a Decision

A stroke adds contrast, not detail

Increasing the weight of a line makes a shape separate from its background more forcefully, and it does nothing for the detail inside it. Pushed far enough, a heavy stroke closes the gaps in fine lettering and merges the internal shapes of an icon, so the value that reads as bold at a glance is not automatically the one that reads correctly at the size the file will be used.

Smaller files, same picture.