4.3. Gör JPEG-bilder mindre

Figur 3.20. Exempelbild för att spara JPEG

Exempelbild för att spara JPEG

You can make your jpegs smaller (use less space on disk) without changing the image dimensions. The image for this example is also take from APOD [APOD04]. The original image is huge (3000 pixels wide) so first I reduced the width and height for better use on the web (see Avsnitt 4.2, ”Ändra storleken på en bild (Skala)”). Use FileSave As to open the Save Image dialog.

Figur 3.21. Save Image Dialog

Save Image Dialog

I usually type the full filename with extension into Name text box, and GIMP determines the file type from the file extension; for example, .jpg. Use the file extension list, circled in the figure above, to see the types supported by GIMP. The supported extensions change depending on your installed libraries. If GIMP complains, or if JPEG is grayed out in the Extensions menu, cancel out of everything and step through the Avsnitt 4.6, ”Change the Mode”.

The Save as JPEG dialog uses default values that reduce size while retaining good visual quality; this is the safest and quickest thing to do.

Figur 3.22. Save as JEPG dialog with poor quality.

Save as JEPG dialog with poor quality.

Reduce the image Quality to to make the image even smaller. Reduced quality degrades the image, so be certain to check Show preview in image window. As shown in the figure above, a Quality of 6 produces a very poor quality image that uses very little disk space. The figure below shows a more reasonable image. A quality of 42 produces a reasonable image using much less disk space, which will, in turn, load much faster on a web page. Although the image is degraded, it is acceptable for the intended purpose.

Figur 3.23. Dialogruta för att spara bild som JPEG

Dialogruta för att spara bild som JPEG

I have not been showing the actual jpegs I created so that we could end this quickie with a race.

Figur 3.24. Exempel för hög JPEG-komprimering

Exempel för hög JPEG-komprimering

Kvalitet: 6; Storlek: 1361 byte

Exempel för hög JPEG-komprimering

Kvalitet: 42; Storlek: 3549 byte


Figur 3.25. Example for Moderate JPEG Compression

Example for Moderate JPEG Compression

Quality: 85 (GIMPs default); Size: 6837 Bytes

Example for Moderate JPEG Compression

Kvalitet: 100; Storlek: 20,971 byte