io.github.chartsmartdev/printsanity

PrintSanity

Checks AI-made flyers, cards and posters will print right. Fixes proportions and broken QR codes.

1.0.1
Version
remote
Transport
4
Tools

Security review

Review passed

Reviewed Jan 1, 2000.

  • tools: 4 tools scanned
  • metadata: scanned

No findings.

Tools (4)

  • list_print_sizes

    The named print sizes `size` accepts, with their dimensions.

  • plan_artwork

    What to ask an image model for, before generating artwork for this print size. Returns the pixel dimensions to generate at, the floor below which it will look soft, the proportions, the smallest QR code that scans from where this piece is read, and a line to paste into the image prompt.

  • check_print_file

    Check whether artwork will print correctly at the given size. Give the artwork as file_url (public https link) or file_base64. `size` is required for images. Returns the verdict, what is wrong, whether repair reaches a printable file, and the prompt to regenerate with when it cannot.

  • fix_print_file

    Repair what can be repaired and return download links for the print-ready file. Rebuilds QR codes so they scan, fixes proportions by adding paper rather than cropping, and returns a PDF the size of the paper (inside a border a home printer can reach, where the paper is one a home printer takes) plus a PNG and, where it differs, an edge-to-edge PDF for print shops. For small pieces such as business cards and invitations it also returns letter and A4 sheets with several copies and cut marks. Links last 30 minutes. Resolution is never faked: when that is the problem the result carries the prompt to regenerate with. `qr_url` is the link a QR code should carry when the one on the artwork was drawn by an image model and decodes to nothing.