FotobogenDocumentation

Using Fotobogen

Everything is done in a web browser. Your site is at its address; the admin is at the same address followed by /admin.

The admin

Log in at /admin with the account you made during setup. You arrive at Overview, which shows the site and its server at a glance. Every other page is in the menu down the left side (behind a Menu button on a phone):

PageWhat it is for
UploadAdding photographs
LibraryEvery photo: order, hide, delete, edit, copy links; and the trash
AlbumsNamed sets of photos
SkinsHow the public site looks, and light or dark
ModulesLooks applied to photos: film, frames, watermark
Site textThe site's name and every word on it
Icon and logoThe picture in the browser tab, and a logo in place of the name
Search and sharingWhat search engines and shared links show
Visitor statisticsCounting visits with a service you choose; off to begin with
PagesPages of words (About, Contact) and links of your own in the site's menu
Embed on another siteA slideshow of your photos for other sites to show; off to begin with
SettingsTitle, layout, privacy, licence, slideshow
SystemBackup, restore, version, updates
WebhooksTelling another program when a photo is added, published, or deleted
API tokensLetting a script or another program upload
Two-step loginAsking for a code from your phone after the password; off to begin with. More about it.

A login lasts 30 days from when you last used it, and never more than 90 days from when it was made. Five wrong passwords in 15 minutes from one address locks that address out for the rest of the 15 minutes.

Uploading

Choose Upload, then pick files or drop them on the page. Each file shows its progress and what became of it.

The upload page listing five files: three ready with thumbnails, one duplicate, one not accepted
Each file gets its own row and its own result.

Once processed, a photo is on your site, unless you have set new uploads to start as drafts.

The words that come with a photo

Lightroom, Capture One, Apple Photos and most other programs save a photo's title, caption and keywords inside the file when they export it. Fotobogen reads them when the file arrives:

The upload page says what it read from each file, with a link to check it. Everything can be changed afterwards. If your files carry notes or keywords that are not meant for visitors, switch this off under Settings, New uploads. A description a camera writes by itself, such as "OLYMPUS DIGITAL CAMERA", is ignored. From a HEIC only its camera details are read, and a description if the camera data holds one; not a title or keywords.

Every photo has alt text

Alt text is what a screen reader says in place of the picture. A photo that arrives with none is given a start, so that none goes out silent:

Fotobogen does not look at the picture, so this is a start and not a description. Such photos are flagged Alt text to check in the library until you rewrite the text, or say on the photo's page that it is right as it is. Alt text can be changed but not emptied.

A whole folder at once

On the server, in Fotobogen's folder, with the site running:

pnpm fotobogen import ~/Pictures/export
pnpm fotobogen import ~/Pictures/export --albums
pnpm fotobogen import ~/Pictures/export --album "Iceland 2023"

The photos go in exactly as uploads from the admin do, so the same rules apply, the words inside each file are read, and new photos are drafts or public as your settings say. What is already in the library is skipped, so the command can be run again after an interruption. It ends by listing any file it could not take, with the reason. Import only a folder that is yours: everything in it is published, and with --albums the names of its folders become albums.

In Docker the folder has to be one the container can see, such as a folder inside the data directory: docker compose exec app node scripts/fotobogen.mjs import /data/inbox. If the site is not on port 5150, add --url http://127.0.0.1:5160 with its port. The command only talks to a site on the same machine.

The library

Library shows every photograph. The first one there is the first on your site.

The photo library: a grid of photo cards with checkboxes and Up, Down, and To top buttons
The library, with the buttons that reorder from the keyboard.

Editing a photo

Open a photo from the library to change:

The edit page previewing a photo inside a film border with sprocket holes, above a strip of small previews of different film looks
The strip of looks under a photo, with a film frame chosen.

Beside the form is what the camera recorded in the file: camera, lens, exposure, and place.

Links to a photo

Further down the same page is a Links panel: the full address of the photo's page, the address of each size of the picture, and a line of HTML that shows the photo linked to its page. Each has a Copy button. Use them in an email, a post, or another website.

The pictures are public files: anyone with a picture's address can open it, with no login, and any website can show it. Nothing needs setting up for that (no CORS configuration); Fotobogen tells browsers that other sites may read its photos. Nothing checks who asks for a picture, either: its address has a long name that cannot be guessed, and keeps working for anyone who has it, even after the photo is hidden, until the photo is deleted or rendered again. The links begin with your site's address. On your own machine they begin with http://localhost:5150, which works only there, until you set the address under Admin, Search and sharing or as SITE_URL on the server.

Deleting, and the trash

Deleting a photo, from the library or from its own page, moves it to the trash. It is off your site at once: the grid, its page, its albums, the feed. It is kept for 30 days, with the file you uploaded, and then removed for good.

In the library, choose Show, Trash to see what is there and the day each photo will go. Tick photos and press:

Two things to know. Uploading a file that is in the trash is refused, with a note saying where it is: restore it, or delete it for good first. And while a photo is in the trash its picture files still exist, so someone who already has a picture's own address can still open it; to withdraw those addresses, delete the photo for good.

Publishing, scheduling, and drafts

On a photo's page, Publish has three choices:

In Settings you can make every new upload start as a draft, so nothing is public until you say so.

Albums and tags

Albums on the front page

Each album has a switch, Offer it on the front page (Admin, Albums, Edit). The albums switched on appear as a row of names over the photos on your front page: All, then each album. A visitor who chooses one sees that album alone, in its own order; All brings everything back. A new album is offered there unless you switch it off. With none switched on there is no row. Only a public album with photos in it is offered.

The order of the front page is under Admin, Settings: shuffled, a new order for each visit, or the order of your library. A new site starts shuffled; a site set up before version 1.8.0 keeps the order of its library until you change it.

Private albums

An album can be private: for a client, a family, a few friends. Under Admin, Albums, edit the album and choose Private. It gets a link that cannot be guessed, shown in the album's entry with a Copy button. Send that link to the people who may see the album.

What visitors see

The public site: a dark page with a masonry grid of photographs of different shapes
The grid.
A photo page: the photograph with its title, description, date taken, camera, lens, exposure settings, size, and tags beside it, and Previous and Next links
A photo. (The camera details shown are example values: the sample photos arrive with none.)

Only photos that are processed and public are ever shown. Where a photo was taken is never shown unless you switch that on.

Settings

Admin, Settings holds:

Making the site your own

Nothing a visitor sees has to say "Fotobogen". It is your site, at your address, under your name.

Site text

Admin, Site text holds the site's title and tagline, and every fixed piece of text on the public pages: the links at the top, the buttons, the labels beside a photo, the slideshow's controls, and what is shown when a page cannot be found. Each field shows the wording used now. Type your own to replace it; leave it empty to keep the default.

Search and sharing

Admin, Search and sharing decides what search engines show for your site and what appears when someone shares a link to it. Every field is optional, and the page previews the result as you type.

SettingIf you leave it alone
Title of your home pageYour site's title
Description of your siteYour tagline
How the titles of other pages are written"Photo | Site"
Picture shown when your site is sharedYour newest photo
Let search engines list this siteYes
Your site's proper addressThe address each visitor used
Photographer's name, and username on XNone
Google and Bing verification codesNone

A link to one photo always shows that photo, with its own title, description, and alt text. Asking search engines not to list the site is a request the well-known ones honour; it does not make the site private.

How it looks

Skins change the look, the colours, and light or dark.

Sample photos

Fotobogen can download 25 photographs so that a new site has something to show. They come from Lorem Picsum (Unsplash photographs, credited to their photographers) and are not part of the software. Overview has Download sample photos (Download the rest when some are already there), and Remove sample photos deletes all of them, and only them, for good (not to the trash). The samples arrive in two sample albums, "Coast and mountains" and "Desk and table", so you can see how albums work; removing the samples removes those albums too if nothing else is in them, and deleting an album never deletes its photos.

Backups and updates

Admin, System shows the version, what is stored, and the free space, and has Download a backup, restore, and Check for updates. When a newer release is found, a note on every admin page says so, and the System page can install it for you. Take a backup regularly and keep it somewhere other than the server. Backing up and restoring are covered with the questions.

Uploading from a script or another program

Under API tokens, make a token of the Upload only kind and copy it. A program then sends it with each request, in place of logging in. From a terminal:

curl -H "Authorization: Bearer fb_YOUR_TOKEN" \
     -F "file=@photo.jpg" \
     https://photos.example.com/api/admin/photos

The answer says whether the photo was accepted, and its id. To upload a whole folder:

for photo in *.jpg; do
  curl -sS -H "Authorization: Bearer fb_YOUR_TOKEN" -F "file=@$photo" \
       https://photos.example.com/api/admin/photos
  echo
done

Keyboard and accessibility

The admin and the public site are built to WCAG 2.2 level AA and are tested for it on every change: everything can be reached and worked from the keyboard, text has a contrast of at least 4.5 to 1 in light and dark, and nothing scrolls sideways on a phone. Motion is reduced when your device asks for that. If you find something that does not meet this, it is a bug: please report it.

Back: Configuration Next: Updating