Save a JPEG in GIMP: export, quality and background
Get a usable JPEG without losing your layered master, turning transparency into the wrong background or missing an upload limit.

To save a JPEG in GIMP, choose File → Export As, enter a filename ending in .jpg, click Export, choose the JPEG settings and click Export again. Save and Save As create an XCF project; they won't produce a JPEG. I'd keep the XCF beside the exported file because the JPEG can't preserve editable text, masks and layers.
The menu route works whether you're starting with a photograph, a PNG or a layered XCF. The important choices are what is visible, which background replaces transparency, how much compression the picture can take and where the finished file will go.
| What you need | Use this route |
|---|---|
| A first JPEG or a new name/folder | Export As, then both Export buttons |
| A smaller upload | Set dimensions, preview quality, check actual bytes |
| A cutout with a particular background | Add an opaque bottom layer before export |
| Colours suitable for ordinary screen use | Check the image profile and export RGB |
| To update a previous export | Check Export to versus Overwrite |
Export a JPEG without replacing the original
First save the working image as an XCF, using File → Save As if it needs a new project name. Keep the original photograph separately. Saving the project before reducing dimensions or changing its delivery background gives you a useful starting point for another version.
- Check the visible composition. Turn on the layers you want in the JPEG and hide construction layers or alternative versions. Select a normal image-layer thumbnail if you've been working on a mask or channel.
- Choose File → Export As. On Windows and Linux, the standard shortcut is Ctrl + Shift + E. This is a different dialog from Save As.
- Choose the folder and filename. For example, use
coast-web.jpgbesidecoast-master.xcf. Check the destination before accepting an overwrite prompt. - Specify JPEG. Typing
.jpgor.jpegin the Name field selects the format. You can also expand Select File Type and choose JPEG image; keep the extension consistent with that choice. - Click Export. GIMP opens Export Image as JPEG. The file browser was only the first stage.
- Choose quality, profile and metadata options, then click the final Export button. Wait for export to finish and open the resulting file from the destination folder.
GIMP's export dialog documentation describes the filename/type selection and second format-specific dialog. A selected mask or channel can also cause a confirmation because JPEG cannot store that structure. Return to the intended image layer rather than accepting a prompt you don't understand.
You don't need to flatten the XCF yourself. JPEG contains the visible result as a single image; exporting leaves the open project's layers in place. The save-and-export distinction also explains why GIMP can still ask you to save when you close an exported image: creating a delivery file hasn't saved the editable project.
Changing a filename isn't conversion. Renaming coast.xcf to coast.jpg in your file manager leaves XCF data under the wrong extension. Open the project in GIMP and export it. JPG and JPEG are two extensions for the same format.
Choose JPEG quality from the detail that matters
For an ordinary photograph, I'd start at Quality 90 with Show preview in image window enabled, then lower quality if the file needs to be smaller. A portrait with a smooth backdrop and a picture full of leaves won't compress in the same way.

Zoom to 100% and inspect the parts a viewer will notice: hair against a plain background, fine branches, lettering, skin transitions and smooth sky. Look for square blocks, speckled halos beside sharp edges and broken tonal transitions. Then judge the picture at its intended display size. A defect visible only in an enlarged crop may be irrelevant to a small preview, while a damaged face rarely is.
The JPEG export manual defines Quality on a 0–100 scale, warns about repeated re-encoding and explains that the preview is temporary. Closing the dialog restores the working image's normal display. Quality 100 still uses lossy JPEG compression; it won't recover detail already lost from the source.
Don't interpret 90 as “90% of the original detail”, and don't transfer a quality number from another application as if it were an exact equivalent. The manual explicitly warns that quality scales differ between applications. High settings can increase file size sharply for little visible improvement.
When the starting quality is unexpectedly high
Use quality settings from original image can reuse an imported JPEG's compression tables. The current JPEG exporter can also carry a higher original quality into its export options, so the number you first see isn't a universal default. If you want to choose a new compression level for an upload, turn off that checkbox and adjust Quality while watching the preview.
Reusing the original settings can be sensible after a small edit, but it doesn't make a new JPEG lossless. I return to the XCF or original editing state for each export attempt. Reopening yesterday's compressed JPEG and compressing that file again needlessly adds another lossy generation.
Keep coloured text and edges readable
In Advanced Options → Subsampling, choose 4:4:4 (best quality) when JPEG is required for a picture with fine coloured lettering, line art or strong colour boundaries. It retains more colour detail than subsampled alternatives, at the cost of a larger file. Quality and subsampling are separate choices: raising Quality alone isn't a substitute for checking colour edges.
For a photograph under a tight byte limit, compare 4:2:0 (chroma quartered) with 4:4:4 at the same dimensions. Keep it only if the edges still look acceptable. These are the current GIMP 3.2 labels; older guides use longer sampling-ratio names. The subsampling options explain the text-and-flat-colour trade-off.
For a logo, diagram or interface capture, I'd choose PNG when the destination accepts it: preserving flat colours and sharp edges matters more there than using JPEG at all. If the image also needs transparency, follow the transparent-background export checks.
Get under an upload limit in a sensible order
Start with the receiving site's actual requirements: maximum pixel dimensions, maximum file size and accepted format. An image can satisfy one limit and fail another. There isn't a JPEG quality value that guarantees a particular number of kilobytes.
- Save the full-size XCF. Keep that master before making a smaller delivery version.
- Reduce excessive dimensions. Use Image → Scale Image, choose pixels, keep the width/height chain linked and enter the required width or height. Use the image-resizing guide if you need the full scaling steps.
- Export at the final dimensions. Enable the JPEG preview, choose a starting quality and reduce it until size and detail are acceptable. Check subsampling if colour edges are part of the picture.
- Export and inspect the actual file size. In your file manager, open the file's properties or information panel. The preview estimate excludes metadata, so the saved file can be larger.
- If it's still too large, return to the working image. Reduce quality a little further, remove unneeded metadata, or reduce dimensions if the destination allows it. Export another candidate from that editing state, then check again.
Lowering print resolution alone won't remove pixels. Image → Print Size changes the relationship between pixels and the printed page; Scale Image changes the pixel count. If an upload needs a smaller picture, changing “300” to “72” in a resolution field is the wrong adjustment.
If a service's size label is ambiguous, leave some margin and try the upload. Don't sacrifice the subject to meet an assumed limit. A recognisable, clean image at the required dimensions is more useful than a large image crushed by compression.
Choose what replaces transparency
JPEG can't retain transparent pixels. A checkerboard in GIMP marks transparency; it isn't a white background that will travel with the file. Choose an opaque background before exporting so the corners and semi-transparent edges have the colour you intend.
- Set the background colour deliberately. Click the Background colour swatch in the toolbox and choose the required colour, such as white for a white-page image.
- Select one layer, then choose Layer → New Layer. Name it something useful, such as
JPEG background. Use the canvas dimensions, zero X/Y offsets, Normal mode and 100% opacity. - Set Fill With to Background color and create the layer. White is also available when white is the intended background.
- Move it below the composition in the Layers dialog. Keep it visible and outside any group whose mask or opacity would make it partly transparent. Check that it covers the entire canvas.
- Inspect the edge, then export. Look at soft hair, shadows and partly transparent pixels against the chosen colour. Fix an unwanted fringe in the working project before compressing it.
The New Layer controls let you set dimensions, offsets, opacity and fill explicitly. GIMP creates the new layer above the selected layer, which is why moving it below the cutout is a necessary step. With several layers selected, New Layer can create several new layers; select just one first.
Adding an alpha channel won't give JPEG transparency. Use a format that supports it if a cutout must sit on different backgrounds. If a JPEG already has a white rectangle or dark fringe baked in, changing its extension won't undo that compositing; return to the layered source or transparent original.
Keep the profile appropriate to the destination
For an ordinary colour photograph going to the web, I'd deliver an sRGB JPEG with Save color profile enabled. Keep Export as CMYK off. A colour profile describes how the pixel values should be interpreted; removing location metadata and removing the colour profile are different decisions.
If your working image uses another RGB profile, prepare a delivery copy and choose Image → Color Management → Convert to Color Profile. Select GIMP's built-in sRGB profile as the destination, review the conversion options and click Convert. Then export that copy with the profile included. If the image is already sRGB, there is no reason to convert it again.
Use Convert to Color Profile for this change. Assign Color Profile is for identifying or correcting the interpretation of existing pixel values, such as when the correct source profile is missing. Assigning sRGB to a correctly tagged wide-gamut image isn't the conversion described above.
A print company may ask for a specific CMYK JPEG. In GIMP, Export as CMYK uses an assigned CMYK soft-proofing profile; the option is unavailable without a suitable profile. Get the printer's required profile and file specification before choosing it. Selecting CMYK simply because the image will be printed can send the wrong colours.
If a JPEG looks different elsewhere, reopen that exact file in GIMP and compare it with the working image. Check the embedded profile, whether CMYK was enabled, the chosen background and the destination viewer. A difference confined to one viewer points to a different problem from visible compression damage in the reopened JPEG.
Remove private metadata without discarding useful information
For a public image, review Save Exif data, Save IPTC data, Save XMP data, Save thumbnail and Save comment. Turn off information you don't intend to distribute. Retain a copyright or credit field when the delivery requires it rather than treating every metadata item as disposable.
There's a small trap: Save thumbnail can write some EXIF tags even with Save Exif data disabled. Turn that off too when excluding EXIF. The export dialog's metadata choices override the corresponding export preferences.
The Metadata (edit) control opens the editor so you can inspect or change fields before export. Afterwards, inspect the exported file's metadata as well when privacy matters. Disabling export options doesn't alter the original photograph or remove copies already shared.
Export again, or deliberately overwrite?
After a successful export, File → Export to, followed by the filename, sends the revised image to that export destination again. Check the name in the menu before using it. For another size, filename or folder, return to Export As.
If you opened a non-XCF image, File → Overwrite, followed by its filename, writes back to the imported original in its existing format. I'd avoid that route while trying settings: a new export name keeps the original available if the result is too small or too compressed. Each open image has its own destination; re-exporting one isn't a command to export every document.
Save any changes you want to retain in the XCF too. Exporting a JPEG doesn't save the current state of its layers, and reopening the JPEG won't recover them. XCF preserves the project structure, but it doesn't store the session's undo history.
If the exported JPEG still isn't usable
| Symptom | Check and next action |
|---|---|
| Save As only offers XCF | Cancel it and use File → Export As. JPEG belongs in export. |
| No file appears in the folder | Finish the second Export dialog. Check the selected destination and any overwrite or error prompt. |
| Export reports a write failure | Read the error. Try a new simple filename in a local folder you can write to, and check free space before blaming quality settings. |
| The file has the wrong type | Check its real extension and selected export format. Renaming an XCF isn't conversion. |
| White or dark areas replace transparency | Return to the source and set an opaque bottom layer, or use a transparent format if the destination accepts it. |
| An upload is rejected | Check actual bytes, pixel dimensions and required colour/format. The preview estimate alone doesn't establish acceptance. |
| An older device won't display it | Try a new RGB JPEG with Progressive and Use arithmetic coding off. The manual identifies compatibility limits for both options. |
Optimize can improve compression without being the same operation as lowering Quality; the JPEG manual describes it as optimising the entropy-coding parameters. Smoothing blurs detail, so I wouldn't turn it up to disguise a bad export. Leave DCT method and restart markers alone unless a specific requirement gives you a reason to change them.
Before sending the file, open it from its saved folder, check its orientation and background, inspect important detail at 100% and confirm its dimensions and file size. Finally, try it in the receiving application. Keep the XCF separately so the next correction starts with the editable image.



