Find the original width and height

Aspect ratio means the relationship between width and height. First note both dimensions of the complete file. Keep the original safe while you make a task copy.

For example, a 1200 by 400 pixel logo has a 3 to 1 ratio. At half the width, it becomes 600 by 200. The matching height is new width × old height ÷ old width.

Matching dimensions for the same example
New widthCalculation for heightNew height
600 pixels600 × 400 ÷ 1200200 pixels
300 pixels300 × 400 ÷ 1200100 pixels
150 pixels150 × 400 ÷ 120050 pixels

These are arithmetic examples. A smaller copy still needs a readability check. Do not force a square output by giving the mark a square shape.

Fit the box instead of changing the logo

A wide logo inside a square needs empty space. That is often the correct result. Decide whether the whole mark must remain visible before picking a fill setting.

Fit without cropping

CSS contain keeps proportions while fitting the box. Fill can change them.

Sources for this point: W3C image fitting rules.

Choose a setting that shows the whole mark. If the destination insists on a square image, prepare a square canvas with space around the proportional logo.

When another layout helps

If a wide name becomes too small inside that square, ask for an approved stacked or icon version. That is a layout decision, not a reason to squash the original.

Look at a deliberately squeezed example

Owned square sample beside the same sample deliberately squeezed to half its height
Constructed teaching example. The right copy was changed from 512 by 512 to 512 by 256 pixels. It is not a customer defect.

The source contains a round feature. In the squeezed copy, that feature has a different shape. We made this change on purpose to show why fitting a slot is different from keeping the mark intact.

Open the deliberately squeezed source copy

Check the saved copy in its destination

An SVG viewBox defines the area mapped into its display box. Aspect ratio settings affect that mapping.

Sources for this point: W3C SVG size and viewBox guide.

If an SVG looks stretched only on the page, ask the site editor to inspect those settings and its display box. Do not redraw the mark before checking the placement.

  1. Reopen the saved copy and read its dimensions.
  2. Compare the symbol, letters and spaces with the approved source.
  3. Place it in the real destination at the intended size.
  4. If it cannot fit legibly, choose an approved layout made for that space.

Choose a horizontal or stacked layout

Keep the final dimensions with the filename. Your check is complete when the whole mark retains its approved proportion in the real slot.

Sources

These sources support the points linked above. Each date shows when we checked that source.

  1. GIMP image scaling guide
    GIMP links dimensions and uses interpolation when scaling pixels Checked .
  2. W3C image fitting rules
    CSS fitting controls image proportions and clipping in a box Checked .
  3. W3C SVG size and viewBox guide
    SVG viewBox and aspect ratio settings affect display mapping Checked .

How we check our articles. Tell us about a mistake.