AI TOOLS

Share a photo gallery as a link

Claude and ChatGPT write photo galleries as one HTML file that points at photos on your computer. Put the photos where the link can reach them, keep the page fast, and avoid the iPhone format that shows as a blank box.

4 min read·

Ask an AI tool for a gallery of your trip, a product shoot or a portfolio and you get one HTML file with a grid, a lightbox and lines like <img src="photos/beach.jpg">. On your computer it works, because photos/beach.jpg sits next to the file.

Upload only the HTML file and every photo is a blank box. Tested in Chrome: the same page opened from a folder without the photos folder loaded each image with a width of 0. The page has to point at photos the link can reach.

Option 1: put the photos inside the file

Ask the AI tool to "embed every image as a base64 data URL so the page is one self-contained file". Each photo becomes text inside the HTML, and the file needs nothing else.

Base64 makes each photo about a third larger. Tested: a 215 KB JPEG became 287 KB of text, and a gallery of eight of them made a 2.3 MB HTML file. Every viewer downloads the whole file before the page finishes loading, including photos they never scroll to; loading="lazy" cannot help, because the bytes are already in the page.

This suits a dozen or so photos resized for the screen. Making an HTML file self-contained covers the conversion.

Option 2: upload the photos to Media

In the FileShare Pro app, open Media and drop the photos in. Each one gets its own URL on r.fileproapp.com; Copy URL puts it on your clipboard. Paste the URLs into the page in place of photos/beach.jpg, or give the AI tool the list and ask it to use them.

The HTML stays small and the browser fetches each photo only when it is needed. Add loading="lazy" to every <img> after the first row. Tested in Chrome on a gallery of eight hosted photos spaced down a long page: only the first was fetched on load, and the others as the page scrolled to them.

Media files count toward your storage (1 GB on Free) and the same per-file limit as uploads (100 MB on Free). They are not pages, so they do not count toward your file count.

Resize before you upload

Phone photos are often 3 to 5 MB each at 4,000 pixels wide. A gallery shows them at a few hundred pixels and the lightbox at screen width. Resize to about 1,600 pixels on the long side before uploading or embedding. On a Mac, sips -Z 1600 *.jpg resizes every JPEG in a folder in place, so run it on copies.

iPhone photos show as a blank box

iPhones save photos as HEIC by default, and Chrome does not display HEIC. Tested: the same photo as HEIC loaded with a width of 0 in Chrome, while the JPEG and WebP versions displayed. Safari shows HEIC, so the gallery can look fine on your Mac and broken for everyone on Windows or Android.

Convert to JPEG before uploading. On a Mac, sips -s format jpeg photo.heic --out photo.jpg converts one file.

Remove location data first

Phone photos can carry the GPS position where they were taken. Media serves each file exactly as uploaded, and anyone can open a photo URL and read that data from the file. Turn off location when you export, or strip it before uploading, for photos taken at home.

Upload the page and send the link

Drag the HTML file onto the dashboard and copy the link. Viewers need no account, and they can leave comments on the page, which suits picking favourites from a shoot: letting people comment on a web page.

To add photos later, upload them to Media, add the URLs to the page and upload the new HTML over the old file; the link stays the same: updating a shared link without changing it.

Related: sharing a 360 panorama as a link, sharing an HTML resume as a link and why an AI page works in chat but breaks when hosted.

Frequently asked

Does a password on the page protect the photos?

It protects the page, not photos in Media. A Media URL opens for anyone who has it, without the password. For photos that must stay behind the password, embed them in the HTML file instead: password-protecting an HTML page.

What happens to the gallery if I delete a photo from Media?

Its URL stops working and the gallery shows a blank box in its place. A browser that already loaded the photo can keep showing it from its own cache for up to an hour.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free