Skip to content

Consider disabling antialiasing in ImageMagick #209

@vlakoff

Description

@vlakoff

There are many advantages to disabling ImageMagick's antialiasing when generating QR codes:

  • Sharp instead of blurry images (main advantage)
  • Smaller PNG files — several times smaller in size
  • Simpler SVG representation
  • Rescalable without quality loss — sharpness preserved when using nearest-neighbor scaling

Caveat:

  • Round shapes may show a "stair-step" effect

Overall, I think that the advantages clearly outweigh the caveats. While it might be possible to enable antialiasing selectively (e.g., only for round shapes), such step-specific configuration would probably be complex to implement.

Additionally, explicitly setting antialiasing on/off is more consistent than relying on the default behavior of ImageMagick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions