Export WebP in GIMP: quality, transparency and still images

Choose compression around the image’s edges and destination, with clear checks for transparency, animation and final file size.

Matte prints show an orange mug on a sunny kitchen table, flowers and a sunset, with an umber back card on cream.

To export WebP in GIMP, choose File → Export As, enter a filename ending in .webp and click Export. Choose the WebP compression settings, then click Export again. I'd start with lossless for a logo or text graphic and lossy for a photograph, because fine colour boundaries and photographic texture need different compromises. Keep the editable XCF separately, and judge the saved WebP's appearance and actual size before delivery.

Export the visible composition as a still WebP

  1. Save your master as XCF. Keep the original photograph too. XCF retains the editable layers, masks and text; a still WebP is the finished image. XCF does not preserve the undo history between sessions.
  2. Check what is visible. Show the layers that belong in the result and hide guides made from ordinary image layers, spare backgrounds and alternative designs. A visible white background will be part of the export. If a mask or channel is active, select the image-layer thumbnail before exporting; read any confirmation prompt before proceeding.
  3. Set the delivery dimensions. If necessary, use Image → Scale Image on a delivery copy. The image-resizing guide explains how to keep the proportions and choose dimensions.
  4. Choose File → Export As. On Windows and Linux, the standard shortcut is Ctrl + Shift + E. Save As is the XCF route.
  5. Select the folder and enter a new name such as product-cutout.webp. You can also expand Select File Type and choose WebP image. Keep the selected type and extension consistent.
  6. Click Export to open the WebP options. If the filename already exists, read the overwrite prompt before replacing it. Use separate names for comparison files.
  7. Choose compression and check animation. For a layered project that should become one still image, leave Save animation off. In the current exporter this control appears only when the image has more than one layer; a single-layer image won't show it.
  8. Review metadata, then click Export. Wait for the export to finish and open the saved file from the folder you chose.

The Export As file browser sets the name and destination; the second dialog sets the format options. Current GIMP has a WebP exporter, so old tutorials asking you to compile a separate WebP plug-in aren't the normal route.

You don't need to flatten the working project to export a still. With animation off, GIMP prepares the visible composition for the exporter while preserving the working image. Saving the project and exporting an image are separate actions, which also explains why GIMP can still ask you to save changes when you close it after an export.

Choose lossless or lossy around the detail that matters

Image and priorityStarting choiceWhat to inspect
Logo, caption, line drawing or interface graphicTry Lossless first.Small lettering, thin lines and abrupt colour boundaries; compare the actual size with the PNG if you already have one.
Photograph for a web pageTry lossy export. Image quality 90 is a starting point, then adjust to the result.Fine texture, faces, foliage, gradients and coloured edges. Lower quality only as far as the intended display allows.
Cutout with a soft transparent edgeChoose image compression for the subject; start with Alpha quality 100 in lossy mode.The outline on both light and dark backgrounds, including semi-transparent hair, fabric or shadows.

These are trial settings, not a promise of a particular size. When Lossless is checked, GIMP disables Image quality and Alpha quality. When it is unchecked, image quality controls the colour image and alpha quality controls its transparency channel. The WebP options reference documents the controls and their availability.

Setting Image quality to 100 while leaving Lossless off does not select lossless encoding. Nor does lossless WebP repair a previously compressed JPEG: the lost detail is already missing from the source. If your logo has a fuzzy edge before export, changing the codec won't make the original edge precise.

GIMP WebP export options with Lossless off, Image quality 90.0, Alpha quality 100.0 and Save animation unchecked.
For this lossy still-image starting point, keep Save animation off and compare the exported edge at Image quality 90 and Alpha quality 100. Open the WebP export options at full size.

When Sharp YUV and Source type help

Use Sharp YUV, under Advanced Options, uses a more accurate RGB-to-YUV conversion in lossy mode. It can help thin lines and fine colour detail, but can take longer to export. I'd try it when a coloured edge looks worse in the saved lossy file; if that edge still fails, compare lossless rather than endlessly increasing the quality slider. Sharp YUV is unavailable when Lossless is enabled.

Source type offers Default, Picture, Photo, Drawing, Icon and Text. These are encoder presets, not a conversion to a new kind of image. Leave Default as a baseline or try the relevant preset, then compare the exported result. A preset named Text doesn't guarantee readable small lettering at a low quality setting.

Get the file smaller without guessing

WebP can be larger than the JPEG or PNG you started with. Google's explanation of larger WebP files covers cases such as converting a lossy source to lossless or choosing a higher lossy quality. A JPEG quality value and the same WebP quality value are not an equal-quality comparison.

  1. Read the destination's limits. Separate its pixel dimensions, byte limit and accepted formats. A width limit and a file-size limit require different checks.
  2. Choose the required pixel dimensions first. Use Image → Scale Image and keep the width/height chain linked when preserving proportions. Changing the print resolution alone doesn't remove pixels.
  3. Export from the same project each time. Keep the same dimensions and visible layers. Use names such as cutout-lossless.webp and cutout-q90.webp, rather than repeatedly opening and recompressing the previous lossy export.
  4. Read the completed file's size in its folder. Compare the actual bytes after export, including metadata. Don't use the XCF size or the image's memory use as the delivery size.
  5. Inspect the exports at 100% and at their intended display size. If the lossy version is still too large, lower Image quality and export another candidate. Keep Alpha quality high while evaluating colour compression on a cutout.
  6. Choose the smallest acceptable result. If lossless WebP is larger than an acceptable PNG, or the existing JPEG already meets the brief, there is no benefit in forcing WebP unless the destination requires it.

A large image with very low quality is often a poor trade for a smaller display. Reduce unnecessary pixel dimensions before sacrificing the detail the reader will see. Keep the full-size XCF so the next export can start from the master.

Check transparency on light and dark backgrounds

WebP supports an alpha channel with both lossy and lossless compression. That support preserves transparency you have prepared; it doesn't remove a white background for you. Adding an alpha channel alone also doesn't erase white pixels. Use the transparent-background workflow if the cutout itself still needs work.

Before export, hide any opaque background layer that should not be delivered. Look for the checkerboard around the subject and through holes such as a mug handle. Don't paint a checkerboard into the image: it is GIMP's display of transparent areas.

Reopen the exported WebP as a separate image and place temporary light and dark solid layers below it. Check the same edges on each background. A white viewer background alone cannot tell you whether the file is opaque, and a pale fringe can disappear against white while remaining obvious on a dark page. Hide those test layers before making another transparent export.

If the edge deteriorates only after a lossy export, compare Alpha quality 100 and a lossless candidate from the same source. If pale pixels are already present in the source edge, correct the mask or edge colours there. Raising export quality cannot remove unwanted source pixels. Keep those two problems separate: damaged transparency and a light-coloured fringe need different corrections.

Keep the master precision, colour and metadata under control

Lossless WebP is not a high-precision project archive. GIMP's WebP export implementation uses 8-bit RGB or RGBA data. A 16-bit or 32-bit working image therefore doesn't retain that channel precision in the WebP, even with Lossless checked. Keep the high-precision XCF and check smooth gradients in the exported copy.

For ordinary web delivery, I'd use an sRGB delivery copy unless the receiving service specifies another colour space. If conversion is needed, choose Image → Color Management → Convert to Color Profile, select the built-in sRGB destination and convert. Profile conversion changes the image to the destination colour space; assigning a different profile is a separate operation and isn't a substitute. Leave Save color profile enabled when the receiving workflow uses the embedded profile, then inspect the result there.

Before a public upload, review Save Exif, Save IPTC, Save XMP and Save thumbnail. If you want a copy without those descriptive metadata fields, clear all four and inspect the delivered file's metadata. In particular, saving a thumbnail can also save some EXIF tags, even when Save Exif is off. Treat the colour profile separately from private location or descriptive information.

The Metadata (edit) link lets you review or change metadata, but the relevant saving options must still be enabled to include it. Export-dialog choices override the defaults in Image Import and Export preferences; check the dialog rather than assuming the last file's choices suit this one.

Repeated exports and the animation switch

After an export, File → Export to, followed by the filename, exports the active image again in that format. Use Export As when you need a separate comparison file, a new folder or a different format. File → Overwrite targets the imported source in its original format, so read the destination before using it.

For repeated new-image work on Windows or Linux, open Edit → Preferences → Image Import & Export and set Default export file type to WebP. This default applies only to new images created in GIMP; an imported image uses its imported extension by default. Typing .webp explicitly in Export As avoids that confusion.

With Save animation enabled, layers become frames. Leave it off for a layered poster or composite that should be one still image. For an animation, set up the frame order, timing and disposal deliberately with the animation-layer guide. A correct-looking first frame doesn't verify the rest of the animation.

If the export isn't the file you expected

SymptomCheck next
Save As won't offer WebPUse File → Export As and type .webp. A current GIMP installation has the exporter; an old plug-in tutorial isn't a required extra step.
No Save animation checkboxA single-layer image doesn't show it. For a layered still, leave it off when it appears.
Quality sliders are greyed outLossless is enabled. Disable it only if you want lossy compression; Sharp YUV also belongs to lossy mode.
The file has a white backgroundReopen it and inspect over a dark layer. Distinguish a viewer background from a visible white layer or white pixels in the original.
The file is larger than the JPEGCheck lossless versus lossy, dimensions, quality and metadata. Compare actual files from the same source; no format wins every image.
Export reports bad image dimensionsWebP's maximum is 16,383 × 16,383 pixels. Scale a delivery copy to fit both the format and the destination.
The exported file won't openConfirm export finished, the folder and filename are right, and the receiving application accepts WebP. Reopen the file in GIMP too; note any exact error rather than assuming an old forum workaround applies.
The website rejects or changes itCheck that service's accepted formats, dimensions and size limits. Export a genuine PNG or JPEG if required; renaming the extension does not convert the file.

Finish with the delivered image: the file in the chosen folder, then the uploaded or processed version at the destination. Confirm dimensions, size, transparency, colour and the detail you wanted to protect. A successful Export click is only the start of that final check.

Elena Morris

Elena Morris

Elena Morris is the GIMP image-editing and compositing editor at TheGIMP.net. She writes about selections, masks and layers, restrained retouching, compositing and export.