I'm using GIMP to edit some vacation pictures (JPEG files) taken with a rather old digital camera. Lacking a professional background, I just went about by trial and error and ended up adjusting the following parameters:

  • Images are way too dark ---> Colors > Levels > Input Levels > Increase Clamp Input, decrease High Input
  • Colors could be more vibrant ---> Colors > Auto > Color Enhance

When exporting the edited files, I noticed that the file size has increased by a factor of 3, i.e. files less than 3 MB in size are now 10 MB or larger. What is causing this and is there any way to prevent this without trading away image quality?

  • 2
    Check your compression level, referred to as Quality in GIMP. Sep 22, 2020 at 1:22
  • 2
    What format are you using to save the images? If saving in xcf, png, or tiff, an increase in file size is expected. For file sizes similar to the original jpg, you need to use settings similar to the original. Look for a checkbox that says "Use quality settings from original image".
    – xiota
    Sep 22, 2020 at 2:06

2 Answers 2


It seems that GIMP is not able to guess the appropriate compression settings for your photos and artificially boosts the "quality".

Don't let the "Use quality settings from original image" option deceive you. Unless the original JPEG is saved by the same library (and in your case, it is not, because it was produced by the camera firmware) the quality parameter is just a guess. This means that using smaller quality settings does not necessarilly mean that we are compressing the image more than the original, especially when the original was created by a different code. Increasing the file size by a factor of 3 is a strong hint that the quality parameter is too high.

Your editing (increasing the contrast and saturation) makes the image less compressible for JPEG so the file should be just slightly bigger. Simply decrease the image quality during export until the file size is reasonable.

  • OP does not indicate use of the "Use quality settings from original image". The default GIMP setting is to have the option disabled with quality 97 and 4:4:4 subsampling. Some older digital cameras tend to use lower quality settings with subsampling, so this change may explain the difference.
    – xiota
    Sep 22, 2020 at 17:33
  • When quantization tables are unknown, "Use quality settings from original image" does "guess" a quality setting, but the file size should be similar to the original. Do you have any example digital camera jpgs where exported jpgs are 3x the original with the setting enabled?
    – xiota
    Sep 22, 2020 at 17:34
  • I agree that my guess about the gimp's incorrect guess might be incorrect :-o my gimp exports jpeg using the "original quality", so I thought this is the universal default but it is possible that my default was changed!
    – szulat
    Sep 22, 2020 at 17:43
  • I just had GIMP regenerate its configuration to find the defaults. Testing an image... saving at Q=90 + 4:2:2 ⇒ 3.9MB. Saving at Q=97 + 4:4:4 ⇒ 14.1MB.
    – xiota
    Sep 22, 2020 at 17:46

A difference between the settings used by GIMP and your digital camera likely explains the change in file sizes you're seeing. By default, GIMP appears to export JPEGs with quality 97 without subsampling. Many older digital cameras may use quality settings around 80-90 with subsampling. Using the first photo I encountered on my computer, saving with Q=90 + 4:2:2 subsampling resulted in a 3.9MB file. But saving with Q=97 + 4:4:4 subsampling resulted in a 14.1MB file. The change in file size is about 3.6x.

To maximize efficiency (lost data vs change in file size) when resaving JPEGs, it's usually preferable to use settings that are as close to the original as possible. GIMP has an option to facilitate this: Use quality settings from original image.

When exporting to JPEG, there are several settings that affect file size. The primary settings to consider are in bold.

  • Quality. Digital cameras usually use a setting similar to 94-98.
  • Arithmetic coding. Don't enable this setting. Such files will not work with most image viewers or web browsers.
  • Subsampling. Digital cameras usually use "4:2:2 horizontal (chroma halved)". Pick the option that halves the longer dimension.
  • Optimize. This just optimizes some compression internals. Doesn't hurt to enable. Space savings are moderate.
  • Progressive. Better to leave it off. Space savings are minimal, and files take longer to decode.

Export JPEG settings

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.