Skip to content

Information Density

Latest
Compare
Choose a tag to compare
@g0dkar g0dkar released this 26 Feb 23:08
· 17 commits to main since this release

Fixed a bunch of small, annoying things that happened when releasing the previous version.

Alongside that:

  • Implemented a better way (maybe?) of controlling the Information Density parameter with two new methods:
    • withInformationDensity(): Manually sets the information density to be used for this QRCode. It also sets forceInformationDensity() to true! Default value unchanged: 6. If the data being encoded is too large for the density chosen, an IllegalArgumentException will be thrown.
    • forceInformationDensity(): Controls whether the library will compute the information density or not. Default is false.
      ⚠️ If this is set to false, the library will behave as in previous versions: it'll use the informationDensity as the minimum acceptable value, but will compute and adjust the actual information density.
  • Added a Spring Boot example