4.4. 이미지 압축하기

그림 3.17. JPEG으로 저장하기 예제 이미지

JPEG으로 저장하기 예제 이미지

이미지 크기를 줄이지 않고, 이미지의 파일 크기를 줄일 수 있습니다. 가장 널리 사용되는 압축 이미지 형식은 JPG으로, 이미지가 이미 JPG 형식이라고 하더라도 압축 레벨을 조정하여 이미지 파일 크기를 줄일 수 있습니다. 하지만 이미지를 압축하면 이미지 화질이 떨어질 수 있기 때문에 주의하여 적정한 값으로 압축해야 합니다. 또한 JPG 형식으로 압축을 반복하면 이미지 화질이 계속 떨어진다는 점에 유의하세요.

Images are loaded and saved as .XCF files. Your JPG image has been loaded as XCF. GIMP offers you to Overwrite image-name.jpg or FileExport As to open the Export Image dialog.

그림 3.18. 이미지 내보내기 대화상자

“이미지 내보내기” 대화상자

The dialog opens with the file name already typed in the Name box, with the default .png extension. Delete the existing extension and type JPG instead, and GIMP will determine the file type from the file extension. Use the file extension list, marked with red 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 disabled in the list of extensions, cancel and step through 4.7절. “모드 바꾸기”. Once you have done this, click Export. This opens the Export Image as JPEG dialog that contains the Quality control.

JPEG으로 이미지 내보내기 대화 상자는 좋은 시각적 품질을 유지하면서 메모리 크기를 줄이는 기본값을 사용합니다. 이것이 가장 안전하고 빠른 겁니다.

그림 3.19. 적절한 수준의 JPEG 압축의 예제

적절한 수준의 JPEG 압축의 예제

Quality: 90 (default); Size: 33.7 KiloBytes

적절한 수준의 JPEG 압축의 예제

Quality: 75; Size: 20.1 KiloBytes


Reduce the image Quality to make the image even smaller. Reduced quality degrades the image, so be certain to check Show preview in image window to visually gauge the degradation. A Quality setting of 10 produces a very poor quality image that uses very little disk space. A quality of 75 produces a reasonable image using much less disk space, which will, in turn, load much faster on a web page. Although the image is somewhat degraded, it is acceptable for the intended purpose.

다음은 압축 정도에 따른 이미지의 화질 상태 비교입니다:

그림 3.20. 높은 수준의 JPEG 압축의 예제

높은 수준의 JPEG 압축의 예제

화질: 10; 파일 크기: 3.4 KiloBytes

높은 수준의 JPEG 압축의 예제

화질: 40; 파일 크기: 9.3 KiloBytes


그림 3.21. 적절한 수준의 JPEG 압축의 예제

적절한 수준의 JPEG 압축의 예제

화질: 70; 파일 크기: 15.2 KiloBytes

적절한 수준의 JPEG 압축의 예제

화질: 100; 파일 크기: 20,971 Bytes