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.
xcf
,png
, ortiff
, an increase in file size is expected. For file sizes similar to the originaljpg
, you need to use settings similar to the original. Look for a checkbox that says "Use quality settings from original image". \$\endgroup\$