Jurnal Informatika dan Rekayasa Perangkat Lunak
Vol. 7 No. 1 (2025): Maret

Ekstraksi Palet Warna untuk Kompresi Gambar Digital menggunakan Algoritma K-Means

Ahmad Ma'ruf (Universitas Sains Al-Qur'an)
Hidayatus Sibyan (Universitas Sains Al-Qur'an)
Nahar Mardiyantoro (Universitas Sains Al-Qur'an)



Article Info

Publish Date
13 Jun 2025

Abstract

The growing needs for efficient image data compression have been driven by rapid technological advancement. This study evaluates the effectiveness of the K-Means algorithm for digital image compression through dominant color palette extraction and subsequent color quantization for image reconstruction. The research investigates how the number of clusters (K) affects both compression ratio and Peak Signal to Noise Ratio (PSNR). An experimental approach was implemented, compressing 24-bit RGB images at various resolutions (VGA, SVGA, HD, FHD) using different cluster quantities (8, 16, 32, 64, 96, 128). Through descriptive and correlation analyses, relationships between cluster numbers, compression ratio, Mean Squared Error (MSE), PSNR values, and processing time were examined. Results demonstrate that the K-Means algorithm achieves effective image compression, with an average compression ratio of 67%, MSE of 0.00077, PSNR of 81.43 dB, and processing time of 0.73 seconds. Compression quality was strongly influenced by cluster quantity, with both PSNR values and compression ratios improving as cluster numbers increased. The research determined that 96 clusters represents the optimal configuration, delivering high-quality compression with reasonable computational efficiency

Copyrights © 2025






Journal Info

Abbrev

JINRPL

Publisher

Subject

Computer Science & IT

Description

Journal of Informatics and Software Engineering accepts scientific articles in the focus of Informatics. The scope can be: Software Engineering, Information Systems, Artificial Intelligence, Computer Based Learning, Computer Networking and Data Communication, and ...