---
url: https://docs.artemsemkin.com/velum/html/content/pictures-and-video.md
description: Replace the pictures and videos with your own, at the right size.
---

# Pictures and video

Every picture is a file in `assets/images/`, and every video one in `assets/videos/`. In the download each one is a placeholder in one plain colour with its size written on it (`1920x1280`), so you can see where each picture goes and at what size.

## How to access

**HTML/assets/images/** and **HTML/assets/videos/**

The pictures are grouped by what they show: `projects/`, `posts/`, `pages/`, `menu/` and `logo/`.

![A placeholder in the Studio page: its size is the size to export your picture at](https://docs.artemsemkin.com/velum/html/images/content/pictures-and-video-1.png)

## Replacing a picture under the same name

Save your picture over the placeholder, with the same file name. No page needs an edit, whatever your picture's size: the frame crops it to its own shape, and the lightbox opens it in its own.

A picture often appears on several pages under that one name (a project's picture is on its page, its archive cards and the burger menu), so all of them change at once.

## Giving a picture a new name

Search all pages for the old file name and replace it with the new one, as [Edit every page at once](../get-started/edit-every-page-at-once) shows:

| Search | Replace |
| --- | --- |
| `assets/images/projects/kozan-featured-image.jpg` | `assets/images/projects/kozan-cover.jpg` |

Replace every result. In one page the same picture is often written twice: in its `<img>` `src`, and in the `href` of the link around it when that link opens it in the lightbox, or again in a preview that appears on hover. Keep a project's card and the top of its page on the same file: on the visit from one to the other, the picture flies between them.

## Changing a frame's shape

A picture's frame keeps the shape in its `data-aspect-ratio`, and the `<img>` carries the picture's `width` and `height`. To show a portrait in a square frame, change all three:

```html
<div class="js-parallax-image__frame media-ratio arts-parallax__frame" data-aspect-ratio="var(--parallax-image-media-ratio, 1024 / 1024)"><img
    width="1024"
    height="1024"
    src="assets/images/pages/architect-avatar.jpg"
```

Change only the two numbers at the end of `data-aspect-ratio`, here `1024 / 1024`.

## Exporting pictures

The template shows each file as it is, with no smaller copies for phones. Export at the size the placeholder shows (most are `1920x1280`, `1536x1920` or `768x1024`) and compress the file before you upload it: a JPEG at quality 75 to 85, or a service such as [TinyPNG](https://tinypng.com/). A file of a few hundred kilobytes loads fast. More on picture sizes and the host: [Hosting and speed](../ship/hosting-and-speed).

## Playing your own video in the lightbox

A picture that opens a video links to it. To play a file of your own instead of a video site, put it in `assets/videos/` and point the link at it, with the video's size:

```html
<a
  href="assets/videos/my-video.mp4"
  data-arts-lightbox=""
  data-arts-lightbox-width="1280"
  data-arts-lightbox-height="720"
```

The picture inside the link stays as it is: it is what visitors see before they click. In a gallery of several links that share a `data-arts-lightbox-group`, also give the link `data-arts-lightbox-thumb` with a picture for its thumbnail, as the Maison Sable card in `works-lightbox.html` does.

Next: [Logo and site icon](./logo-and-site-icon).
