Skip to main content
← Back to projects

The Peters Collection

An archive management and image licensing platform for a collection of vintage photographs by John Peters, spanning the 1960s to the early 2000s, with a searchable public gallery, protected images and online licence sales.

The Peters Collection
The Peters Collection is a home for a large archive of vintage photographs, much of it covering vehicles and motoring events. It gives researchers, publishers, educators and enthusiasts a public gallery they can browse and search by event series, event, year and vehicle, and lets them buy a licence to use an image.

Behind the gallery is an admin back office for managing the archive. Photographs can be uploaded in bulk, including very large TIFF scans, and edited individually or in batches. Each photograph is linked to the events and vehicles it shows, vehicles keep an ownership history, and the digital catalogue is tied to the physical archive so every print can be traced to its storage location, tray and box.

Licensing is built around reusable tiers for personal, editorial and commercial use, each with its own permitted and prohibited uses and credit requirements, with prices set per photograph. Visitors can add licences to a basket as guests and pay through Stripe, and administrators manage users, roles and the watermark used to protect the images.

Case Study

1

The Challenge

The whole value of the collection is in the images themselves, so the site had to show the archive off publicly while making sure nobody could take the full-quality files without paying for a licence. It also had to handle very large scans, make buying a licence straightforward and reliable, and reflect how a real physical archive is organised, connecting each photograph to the events, vehicles and storage boxes it belongs to.

2

The Solution

I built it on Laravel 13 with Livewire 4 and Flux, using Spatie Media Library to store originals on a dedicated S3-compatible disk and generate six sizes of every photograph, including one with the watermark baked into the image. The browser never sees a storage URL: every image is served through a proxy that checks who is asking and returns the watermarked version unless the visitor is an administrator or has paid for a licence to that photograph. Checkout uses Stripe's embedded checkout through Laravel Cashier, and orders are fulfilled either when the buyer returns or by a Stripe webhook if they close the browser, with a status check so an order is never fulfilled twice. Guest baskets are merged into the account when a visitor signs in, roles and permissions are handled with Spatie Permission, and users can be removed in line with GDPR.

3

The Outcome

The archive management, licensing and checkout are built and covered by over a hundred feature tests running in CI on GitHub Actions. The project has recently been upgraded to PHP 8.5, Laravel 13, Livewire 4 and Tailwind CSS 4, and subscriptions are the next area in development.

Technologies Used

PHP 8.5 Laravel 13 Livewire 4 Flux Tailwind CSS 4 Spatie Media Library Spatie Permission Laravel Cashier Stripe S3 PHPUnit

More Projects You Might Like