GIMP/Saving as JPEG


When saving as a JPEG, you should let the image itself dictate the quality rather than reusing settings. The same settings for one image may produce significant loss on another.

Basic Settings

edit

Quality: the overall quality of the output JPEG. The lower this value is the more compression you'll attain, at a cost to visual quality. Generally you'll want the lowest quality with no significantly noticeable loss. Start at the default and adjust to the best compromise for the image.

You shouldn't usually go above 95, as the size grows significantly for no noticeable quality gain. Likewise, you shouldn't go below ~25 as banding may occur.

The “Show Preview in image Window” option creates a new layer with how the image will look with the current settings. It updates in real-time as you change the settings. You can zoom or hide as usual to get a better look at the quality.

Advanced Settings

edit

These can be uncollapsed by selecting the box next to “Advanced Settings” and are saved for the current session, along with most other saving settings.

Lossy

edit

These settings alter the actual image to help with compression. Changing these will change the overall subjective quality of the image.

Smoothing:
Setting the smoothing option to a non-zero value will smooth out the image slightly. This reduces fuzzy artifacts from compression, and helps with the compression. A setting of 0.10-0.15 removes a good portion of the artifacts without smearing edges.

Subsampling:
Gimp allows three subsampling modes. Subsampling discards more colour information (which is harder to discern) compared to luminance. Subsampling improves image compression at a cost to image quality, sometimes a significantly noticeable loss (such as on red), or no noticeable difference at all. Subsampling on an image where it shouldn't be used will smear the detail, most noticeably on sharp edges. If you notice significant loss with the default, you can turn it off by selecting "4:4:4", which is technically no subsampling.

DCT Method:
The 'Floating' DCT method produces slightly better results than the 'Integer' method with a slight cost to speed. 'Fast Integer' should only be used where speed is imperative.
(DCT) Discrete_cosine_transform Discrete Cosine Transform is generally a mathematical method that helps reduce the amount of unnecessary detail and aids in lossy compression methods.

Lossless

edit

The following settings are lossless, meaning they don't affect the image's quality.

Optimize:
Optimize the images table for a gain in compression. Unless speed is a concern, there's no reason to turn it off.

Comment:
Add a comment to the image.

Save EXIF Data:
Preserve EXIF metadata about the image, such as when and where it was taken. For images with no EXIF data, this option will be grayed out.

Save Thumbnail:
Save a thumbnail of the image into the JPEG file itself. (Most software that use thumbnails can generate thumbnails on their own, in which case saving your own is unnecessary and would add several kilobytes to the image size.)

Progressive:
Change how the image loads. A standard JPEG loads in rows from top to bottom, which may create an unsightly blank region on a user's screen while loading. In contrast, a progressive JPEG covers its entire area from the start, but in a rough form that becomes more refined as the JPEG loads. Progressive encoding also helps with the image compression.
Leaving this option unchecked will result in Standard encoding.

Restart Markers:
Restart markers are useful when data corruption can occur; the image will only be corrupt up until the next marker. Setting this higher increases the frequency of restart markers at a cost to filesize. Without restart makers, if any corruption occurs, the entire file can be compromised.

Saving · Layers

Saving · GIMP · Layers