How to Export Two Responsive PNG Sizes from One Crop

Use one crop for both sizes when the same picture appears in a narrow column and a wider card. The subject will keep the same framing as the image size changes.

Make one crop and export both widths

  1. Download the free Aspectfern component, extract it and open app/index.html in a modern browser. Choose a local PNG, JPEG or WebP. The included still-life PNG works for a sample with no private image.
  2. Choose a square crop for this example and place the subject inside the frame. Set the output width to 320 pixels. Use a crop at least that wide because Aspectfern does not enlarge crops.
  3. Select Create cropped image, then download the responsive handoff. Open the downloaded HTML in your browser. For this square example, it contains 160 × 160 and 320 × 320 PNGs, both from the same frame.
  4. Download both PNGs from the preview. Check the subject’s position and edges in each file before placing either version on your site.

Use the pair on your page

Give your page the two image URLs using srcset with the 160w and 320w width descriptors. Set sizes for the space the image actually occupies in your layout. Check the image on the real page at both widths and supply alt text that describes the picture in context. The preview gives you a way to inspect the files offline before you put them on your site.

Keep the crop editable

Save the project JSON if you expect to adjust the crop later. In the checked example, reopening the project restored the 320-pixel width after it had been changed to 321. The reopened handoff still provided both PNG widths. Keep the exported PNGs as well when you need the exact delivered files.

The project JSON and the responsive handoff contain image data. Share them only with people who should receive the picture.