본문 바로가기
공학 과학기술 계산/IT 컴퓨터

이미지 파일 크기 (Image File Size) 계산

by MetalSoft 2024. 7. 26.

이미지의 해상도 (resolution)비트 심도 (bit depth) 알고 있는 경우 압축되지 않은 래스터 이미지 파일 (Uncompressed raster image file)파일 크기를 구할 수 있다.

, 래스터 이미지 파일의 파일 크기를 구하기 위한 변수는 이미지의 픽셀 수 (Pixel count )각 픽셀의 비트 심도 이다.

 

비트 심도는 각 픽셀을 정의하는 데 사용된 비트 수에 따라 결정된다.

비트 심도가 클수록 표현할 수 있는 (흑백, grayscale or color) 수가 커진다.

일반적으로 픽셀당 비트 (bpp, bits per pixel)측정하며, 1 bpp (흑백), 8 bpp (회색조 또는 256 컬러), 16 bpp (65536 컬러), 24 bpp (RGB 트루 컬러), 32 bpp (CMYK 16.7 million colors) 등이다.

 

(1) Pixel count = width of image (pixels) × height of image (pixels)

(2) Image file size = Pixel count × bit depth = pixels x bit/pixel = pixels x bit/pixel x (1 Byte / 8 bits) = Byte

 


Image Width (pixels) :

Image Height (pixels) :

Bit Depth :

     

Resolution (pixels) :

File Size (kB) :