Behind the scenes · 5 min read
How GetFreePics works — a fast, free photo library on a shoestring
Behind the scenes of GetFreePics — a static site with no database, photos served at the right size by an image CDN, colour placeholders for slow phones, protected originals, multilingual search and one Pinterest feed per board.
GetFreePics started with a simple idea: put my travel photos from Myanmar and Thailand online and let anyone use them for free. Today the library has more than 530 photos, taken between 2004 and 2026 on everything from a pocket Panasonic to a Nikon D750 and, lately, an iPhone 16 Pro Max. They cover temples, street food, islands and everyday life.
A photo site has to be fast, especially on phones, and it should cost almost nothing to run. This post explains how the site is put together and what I learned along the way. It might help if you're thinking of building something similar.
No database, just a spreadsheet
The whole library lives in one CSV file. Each row is one photo with its title, description, country, category, tags, size, camera and lens, plus whether it's for editorial use only. A few small JSON files hold everything else:
- Places: an intro for each place and its names in local languages.
- Search aliases: other names and spellings for search.
- Collections: themed sets of photos.
- Download limits: which photos can only be downloaded small.
A single build script reads those files and writes plain HTML pages for every photo, tag, place, country, collection and guide. It has no framework and no dependencies. The result is a folder of static files, hosted on Cloudflare Pages. When I push a change to GitHub, the site rebuilds and goes live in a couple of minutes.
Static pages are fast, cheap and hard to break. There's no server to patch and no database to back up. The spreadsheet is the backup.
Every photo gets proper metadata
Before a photo goes online, each file is prepared:
- Information embedded in the file: title, description, keywords, location, copyright and a link back to its page. The details travel with the photo wherever it's downloaded.
- GPS removed. Phones record where every shot was taken, and that shouldn't be published.
- A watermarked copy for social media. The photos on the site itself carry no watermark.
- An "About this photo" section on each page, written from the camera data: when it was taken, the camera and settings, and what those settings did. For example, a 25-second exposure smooths a river, and an ultra-wide lens fits in a whole temple.
Images at the right size, in the right format
The original files are large, around 3000 pixels wide. Sending those to a phone would be slow and waste data. So the originals are uploaded once to Cloudinary, an image CDN, and every image on the site asks it for the size it needs.
- The grid offers each photo at five widths, and the browser picks the one that fits the screen.
- The format is chosen automatically. Browsers that support WebP or AVIF get those smaller files instead of JPEG.
- Grid thumbnails use slightly stronger compression than the photo pages. On a phone screen the difference is hard to see, but the files are much smaller.
When I tested scrolling the home page on an emulated iPhone, these changes cut the data used from about 6.3 MB to about 3.2 MB for the same scroll.
Colour placeholders instead of grey boxes
On a slow connection a photo grid can look like a wall of empty boxes. Each photo's average colour is worked out in advance and stored in a small JSON file. That colour fills the photo's space until the image arrives, so the page looks finished almost at once: a warm gold for a pagoda, a deep blue for a night shot. Every box also has the photo's exact shape reserved, so nothing jumps around while the page loads.
Downloads: free, but not scrapeable
Every photo can be downloaded free, with a size menu: Small (640 px), Medium (1280 px), Large (1920 px) or the original. The smaller sizes come straight from Cloudinary as normal downloads.
Originals are handed out through short-lived signed links. Each link works for ten minutes, and each visitor is limited to a reasonable number per hour. Real people never notice, but a script can't download the whole library in a minute.
Some phone photos look lovely on screen but fall apart when you zoom in, often because of heavy processing in the phone. Those can be marked "small only": their download is capped at 640 px and the full-size file is never published.
Search that understands local names
Search runs in the browser and allows for typos and spacing, so "shwedagon", "shwe dagon" and "shwedagonn" all work. There's also a list of other names and spellings, about 300 so far:
- Old place names: Rangoon → Yangon, Pagan → Bagan.
- Names in Burmese, Thai and Khmer script.
- Common misspellings, plus things people actually type, like "donald duck temple" or "monk's trail".
Place pages, not thin tag pages
Every tag gets a page, but most tags only have a few photos. Pages like that add little for visitors and can look like filler to search engines. So only places with a written intro and at least three photos, and plain tags with ten or more, are included in the sitemap and open to search engines. The rest stay on the site for browsing but are hidden from search results. About 75 places, from Shwezigon Pagoda to Wat Phnom, have their own short introduction.
One Pinterest feed per board
Pinterest can auto-pin from an RSS feed into a board of your choice, one feed per board. So the build writes a set of themed feeds alongside the main one:
- Thailand temples
- Myanmar travel
- Night and long exposure
- Beaches and islands
- Dreamy landscapes
- Street food
- Phone wallpapers
- Classic cars
New photos land on the right boards automatically, with no manual pinning.
Likes and views without tracking people
The like button and view counts run on a tiny serverless function with a small database. Visitors are counted with a one-way hash, so no raw IP addresses are stored. Each person is counted once per photo per day, bots are ignored, and the numbers only appear once a photo has had a few visits.
What I'd tell anyone starting a photo site
- Keep the data in one plain file. A spreadsheet is easy to edit, easy to back up and easy to rebuild from.
- Write real words. Titles, descriptions and place intros help people and search engines far more than another hundred photos with no context.
- Test on a phone with a slow connection. That's how most people will see the site.
- Be honest about quality. Mark photos editorial when they show people or brands, and limit downloads of photos that don't hold up at full size.
The site keeps growing. New batches go up most weeks, and more guides are on the way. If you use a photo, a credit link is always appreciated, and it helps the site grow.