Skip to content

Import/Export functionality "overhaul"

Choose a tag to compare

@ssenseless ssenseless released this 11 Aug 06:21
· 1 commit to main since this release

K-Compressor v1.1.0

Fairly functional application that allows users to compress images down to a specified number of colors, view some of the colors (k-means centroids) used in the compression, and save the compressed image.

Current features

  • Functioning k-means compression
  • .png/.jpg support
  • Color preview on bottom
  • Photo saving functionality (updated to retain aspect ratio and pixel structure of original image while retaining speed of functionality)
  • Implemented functionality for non-square photos
  • Vectorized compression algorithm (98.9% time reduction)
  • Auto-fills extensions when saving compressed photos
  • Color preview now shows top 6 colors, relevant percentage amounts, and the remaining amount off to the side
  • Full code documentation

Upgrade Steps

  • Time complexity is good, space complexity is not (numpy does not like dealing with huge photos tiled out k-dimensionally)
  • Small text errors (e.g. "remaining 1 colors")
  • Versioning for Mac/Linux?