artpixeltrace provides certificate generation and image verification for digital artwork authenticity within the Artalytics platform. It enables PDF certificate of authenticity generation, perceptual hashing for duplicate detection, and Procreate canvas signature validation.
Installation
# Install from GitHub (requires GITHUB_PAT)
pak::pkg_install("artalytics/artpixeltrace")System requirements: LaTeX (tinytex), ImageMagick, FFTW3. See DESCRIPTION for full list.
Environment Variables
artpixeltrace requires environment variables configured through its dependencies (artcore, artutils).
Quick Example
library(artpixeltrace)
# Step 1: Verify canvas has artist signature
is_signed <- isCanvasSigned("path/to/artwork.procreate")
# Step 2: Compute perceptual hash for duplicate detection
hash <- image_phash("path/to/artwork.png")
hash$art_hash # "a1b2c3d4e5f6"
# Step 3: Generate certificate of authenticity
cert <- renderCertificate(
artist = "746bxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
artwork = "99xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
saveDB = TRUE,
saveCDN = TRUE
)
# Certificate now available at cert$path_pdfPackage Hierarchy
artpipelines / modUpload (consumers)
|
artpixeltrace (this package)
|
artutils (data access layer)
|
artcore (database/CDN infrastructure)
artpixeltrace depends on artutils and artcore. It is used by: - artpipelines - Artwork verification pipeline - modUpload - Artwork upload module
Documentation
- Get Started - Package overview and ecosystem context
- Quickstart - Generate your first certificate
- Advanced Workflow - Batch processing and duplicate detection
- Function Reference - Complete API documentation
Development
For AI agent instructions and coding standards, see AGENTS.md.
# Run tests (requires database/CDN access)
devtools::test()
# Full package check
devtools::check()Proprietary - Do Not Distribute
