Trade-off Analysis of JPEG Quality Factor for Image Compression Efficiency and Structural Quality

group

Authors

  • Danurkholis Telkom University
  • Rafi Abhirama Telkom University
  • Ginan Surya Irawan Telkom University
  • Muhammad Akbar Alghifari Telkom University
  • Muh Rayhan Putra Akil Telkom University
  • Agustien Mulyantini Telkom University
Issue Vol. 5 No. 02 (2026)
Published 15 November 2026
Section Articles
Pages 205-215
description PDF
subject

Abstract

This study examined 24 Kodak Lossless True Color photographs. It investigated how compression can reduce file size while keeping the photograph clear. Using the Pillow library with 4:2:0 chroma subsampling the study tested JPEG compression at five quality factor levels: 10 30, 50, 70 and 90. Other image formats that were also examined were WebP and AVIF. To judge how good the photographs looked the study used PSNR, SSIM and MS-SSIM metrics. To evaluate how effective compression was, the study measured file size, bits per pixel and compression ratio. The findings show that as the JPEG quality factor increases, the file size increases but the photograph quality also improves. PSNR rose from 26.67 to 38.03 dB SSIM increased from 0.745 to 0.962. The average file size grew from 15.68 KiB at quality factor 10 to 112.62 KiB at quality factor 90. As the quality factor rises further the gains in photograph quality become smaller. There is a trade‑off, between photograph quality and space saved at quality factor 50 and quality factor 70. Depending on whether storage or photograph quality's more important these results can help select the right JPEG compression setting. No human observers reviewed the photographs.

Keywords: JPEG Compression, Quality Factor, Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index Measure (SSIM), Image Quality Assessment

format_quote

How to Cite

file_copyCopy
[1]
Danurkholis et al. 2026. Trade-off Analysis of JPEG Quality Factor for Image Compression Efficiency and Structural Quality. Journal of Computer Engineering. 5, 02 (Nov. 2026), 205–215. DOI:https://doi.org/10.25124/cepat.v5i02.12430.

license

License

Copyright (c) 2026 Danurkholis, Rafi Abhirama, Ginan Surya Irawan, Muhammad Akbar Alghifari, Muh Rayhan Putra Akil, Agustien Mulyantini

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

Creative Commons License

CEPAT has chosen to apply the Creative Commons Attribution NonCommercial 4.0 License (CC BY-NC 4.0) to all manuscripts to be published. Authors who publish with this journal agree to the following terms.

  • Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work’s authorship and initial publication in this journal.
  • Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal’s published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
  • Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.

Downloads

Download data is not yet available.
speaker_notes

References

[1] G. K. Wallace, “The JPEG still picture compression standard,” IEEE Trans. Consumer Electron., vol. 38, no. 1, pp. xviii–xxxiv, Feb. 1992, doi: 10.1109/30.125072.

[2] ITU-T, “Information technology—Digital compression and coding of continuous-tone still images—Requirements and guidelines,” Recommendation T.81, Sep. 1992.

[3] S. A. Golestaneh and D. M. Chandler, “Algorithm for JPEG artifact reduction via local edge regeneration,” J. Electron. Imaging, vol. 23, no. 1, Art. no. 013018, Feb. 2014, doi: 10.1117/1.JEI.23.1.013018.

[4] Independent JPEG Group, “libjpeg.” [Online]. Available: https://www.ijg.org/.

[5] Z. Wang and A. C. Bovik, “Mean squared error: Love it or leave it? A new look at signal fidelity measures,” IEEE Signal Process. Mag., vol. 26, no. 1, pp. 98–117, Jan. 2009, doi: 10.1109/MSP.2008.930649.

[6] Q. Huynh-Thu and M. Ghanbari, “Scope of validity of PSNR in image/video quality assessment,” Electron. Lett., vol. 44, no. 13, pp. 800–801, Jun. 2008, doi: 10.1049/el:20080522.

[7] Z. Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli, “Image quality assessment: From error visibility to structural similarity,” IEEE Trans. Image Process., vol. 13, no. 4, pp. 600–612, Apr. 2004, doi: 10.1109/TIP.2003.819861.

[8] Z. Wang, E. P. Simoncelli, and A. C. Bovik, “Multiscale structural similarity for image quality assessment,” in Conf. Rec. 37th Asilomar Conf. Signals, Syst. Comput., vol. 2, 2003, pp. 1398–1402, doi: 10.1109/ACSSC.2003.1292216.

[9] S. Jamil, “Review of Image Quality Assessment Methods for Compressed Images,” J. Imaging, vol. 10, no. 5, Art. no. 113, May 2024, doi: 10.3390/jimaging10050113.

[10] L. D. Santami, S. R. Alamsyah, E. Irwansyah, and R. A. Charisma, “Objective Study of Image Quality Compressed with JPEG vs WebP,” in Proc. 8th Int. Conf. Comput. Informatics Eng. (IC2IE), 2025, doi: 10.1109/IC2IE67206.2025.11283342.

[11] A. Afnan, F. Ullah, Y. Yaseen, J. Lee, S. Jamil, and O.-J. Kwon, “Subjective Assessment of Objective Image Quality Metrics Range Guaranteeing Visually Lossless Compression,” Sensors, vol. 23, no. 3, Art. no. 1297, 2023, doi: 10.3390/s23031297.

[12] S. Mohammadi, M. Jenadeleh, J. Sneyers, D. Saupe, and J. Ascenso, “Evaluation of Objective Image Quality Metrics for High-Fidelity Image Compression,” IEEE Access, vol. 14, pp. 35651–35668, 2026, doi: 10.1109/ACCESS.2026.3669417.

[13] U. Sara, M. Akter, and M. S. Uddin, “Image Quality Assessment through FSIM, SSIM, MSE and PSNR—A Comparative Study,” J. Comput. Commun., vol. 7, no. 3, pp. 8–18, Mar. 2019, doi: 10.4236/jcc.2019.73002.

[14] Eastman Kodak Company, “Kodak Lossless True Color Image Suite.” [Online]. Available: https://r0k.us/graphics/kodak/. Accessed: Nov. 13, 2026.

[15] Pillow Contributors, “Pillow documentation.” [Online]. Available: https://pillow.readthedocs.io/.

[16] S. van der Walt et al., “scikit-image: image processing in Python,” PeerJ, vol. 2, Art. no. e453, Jun. 2014, doi: 10.7717/peerj.453.

[17] R. Zhang, P. Isola, A. A. Efros, E. Shechtman, and O. Wang, “The unreasonable effectiveness of deep features as a perceptual metric,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2018, pp. 586–595, doi: 10.1109/CVPR.2018.00068.

[18] M. Friedman, “The use of ranks to avoid the assumption of normality implicit in the analysis of variance,” J. Amer. Statist. Assoc., vol. 32, no. 200, pp. 675–701, Dec. 1937, doi: 10.1080/01621459.1937.10503522.

[19] F. Wilcoxon, “Individual comparisons by ranking methods,” Biometrics Bull., vol. 1, no. 6, pp. 80–83, Dec. 1945, doi: 10.2307/3001968.

[20] S. Holm, “A simple sequentially rejective multiple test procedure,” Scand. J. Statist., vol. 6, no. 2, pp. 65–70, 1979.

[21] Google, “WebP: An image format for the Web.” [Online]. Available: https://developers.google.com/speed/webp.

[22] Alliance for Open Media, “AV1 Image File Format (AVIF),” AVIF Specification v1.0.0. [Online]. Available: https://aomediacodec.github.io/av1-avif/.