Skip to content
Images you may use and can find again

Images you may use and can find again

· Bert Altena

Thousands of photos and videos spread over an image library, a clip library and Dropbox. Recording per file what it may be used for, and making everything searchable by what can be seen.

Every company that does marketing has a folder of images. Usually more than one: an image library on the website, a folder of videos, a shared Dropbox with what photographers and customers delivered. Two questions keep coming back, and always at a moment when there is a rush. Where is that one photo of that lake at sunset? And are we actually allowed to use it in an ad?

On a booking platform I work on, both questions were put into the system this month. An earlier post covered the image library with alt texts and photo review; this is the sequel.

May I use this photo?

Every photo and video in the image library now has a rights card. It records the origin and, separately per use, whether it is allowed: website, social media and ads. Per use the status is yes, no, unknown or per contract. Plus: whether people are recognisable, the date, the evidence, and who recorded it and when.

The result per use is allowed, warning or blocked. No always blocks. Unknown gives a warning for the website and social media, but blocks ads. The line is deliberately stricter there, because an ad reaches the most people and is the hardest to take back.

A few things happen by themselves. An own recording starts as own material. An owner with a signed contract grants rights for everything, and that contract is looked up again at every check, not copied once. Photos from a customer report get the customer card, website only. A helper gave existing images a status retroactively, and a card that was already there is never overwritten.

The most important part is on the server side. Before a reel or a scheduled post goes out, the system collects all files in it and asks per file whether it is allowed for that use. So it cannot be forgotten by accident.

Searching by what can be seen

A file name like IMG_4471.jpg says nothing. So there is a dedicated index for all images, across the image library, the clip library and soon Dropbox.

Each round of the background job, the Claude API describes ten new files. The image is sent scaled down to 800 pixels, and the description uses fixed lists: mood, what is in the picture, time of day, season, direction. Fixed lists, because otherwise you get ten words for the same thing and filtering stops being useful.

You can search the description, the labels, the venue, the file name and the alt texts in every language. On top of that there are filters for source, type, venue, mood, image, time of day, season and direction, plus a filter for only images cleared for ads. That last filter relies on the rights cards above.

The rule that keeps it reliable: an edit by a person always wins over the AI. Once someone has improved a description, it is never overwritten again.

A silent failure the console found

After a few days the nightly check reported that descriptions were failing. A new database console showed it was 575 failures, all with the same reason: the API did answer, but there was no usable response in it.

The cause was dull. The limit on the length of the answer was too tight, so a longer description with labels was cut off. That limit was raised, and for an unreadable answer the reason for stopping and the start of the text are now stored. That way truncation and a genuinely wrong answer can be told apart. A button retries the failed ones, first as a trial with a few files, because every attempt is a paid call.

Dropbox as a source, without ever deleting anything

A lot of images are not in the library but in Dropbox. Now you can point at source folders in Dropbox. Each round the system reads only what changed, adds the files to the index and fetches a small 640 pixel preview to its own server, outside the web folder. The original stays in Dropbox.

The connection contains not a single call to delete or move anything in Dropbox. Removing from the library is possible, but that only touches the index and the preview. If someone moves a file in Dropbox, the description a person wrote is kept. And finished videos are put back into a fixed folder for renders; any other path is refused.

A photo in house style, without EXIF

The last piece is a simple editor for photos in house style. You edit a photo, set a focal point, and create the four social media formats in one go: square, 4:5, portrait 9:16 and wide 16:9, around that focal point, with a bar with text and logo, the logo only, or nothing.

Saving always creates a new version next to the original. The server rebuilds the file, so no EXIF data or GPS location remains. And the new version takes over the rights, the alt texts and the focal point of the original. An edited photo may therefore never do more than the original.

What I take from this

Images are almost never the problem. The problem is the information around them: what is on it, where it came from, what it may be used for. Record that per file and let the server check it, and a question that used to take an afternoon becomes a filter.

More of the platform is in the portfolio. If you want to set up your own image archive like this, let me know via the contact page.

Frequently Asked Questions

Why record per photo what it may be used for?
Because a photo you were allowed to use on your website is not automatically allowed in an ad. If you record the rights per file and per use, you no longer have to look them up when there is a rush, and the system can check them.
May AI write the descriptions of your photos?
Yes, as an aid. An AI describes the image using fixed lists for mood, time of day and season, so you can search. An edit by a person always wins, and the AI never overwrites it.
Is it safe to connect Dropbox?
It can be, if the connection only reads what it needs and cannot delete or move anything. Previews are stored on your own server, and the original always stays in Dropbox.
Chat met ons