GIF or Video in Drupal? When to Use Each Format and Where to Host Your Videos

When should you use a GIF or video in Drupal? Imagine you are writing a guide on how to insert an image. If the reader only needs to find the button that opens the Media Library, a screenshot with the button highlighted is enough. If they need to see how a block is dragged to change its position, a short animation can make the gesture clear. And if they have to follow the whole process, from uploading the image to inserting it in the article, a video with controls lets them pause and go back to any step.
The same question works for a news story, a help page or a product page. What does the reader need to see to understand the content or complete the task? The answer helps you choose the format before deciding where to host it.
| If the reader needs to… | Use… |
|---|---|
| Find the button that opens the Media Library | A screenshot with the button highlighted |
| See how a block is dragged to change its position | A short animation, with the instruction also in writing |
| Follow the whole process to upload and insert an image | A video with controls and the steps in writing |
GIF or Video in Drupal: When a Short Animation Is Enough
A GIF can be useful to show a brief change that is hard to explain with a single screenshot. For example, if you are documenting how to reorder two blocks in Drupal, you can show what happens when one of them is dragged. Write the instruction next to the image as well. If the animation contains text needed to complete the task, put it in the body of the guide, where it can be read and consulted at any pace.
Before uploading the GIF, compare its size with that of the same clip exported as MP4 or WebM. A compressed video can transfer less data even if the clip lasts only a few seconds. Compare the formats at a similar visual quality and check that the interface labels are still legible on mobile.1
When to Use a Video
For a multi-step tutorial, a long demonstration or an explanation with voice, use a player that lets the reader start, pause and resume playback. In a guide, keep the written steps so that an instruction can be consulted without searching for the exact second in the recording.
How to Make Animations and Videos Accessible
Pay attention to how long it stays in motion. A three-second GIF on an infinite loop exceeds five seconds of movement. According to WCAG (Web Content Accessibility Guidelines) criterion 2.2.2, if the animation starts on its own, lasts more than five seconds and appears alongside other content, the user must be able to pause, stop or hide it, except when the movement is essential to the activity.2
In a video, check that playback can be started, paused and captions turned on with the keyboard. If there is speech or relevant sounds, provide captions that capture them. If a step depends on something that happens on screen, explain it in the narration too. When the video is already recorded and the audio track leaves out necessary visual information, an audio description can fill that gap. A descriptive transcript also makes it easier to consult the content outside the player.3
Where to Host the Video
For a public tutorial, YouTube or Vimeo can take care of storage and distribution.
For a paid course or internal content, start by defining who can watch it. A specialized platform or an infrastructure managed by your team can work, depending on the access controls you need. If the article requires logging in, also check what happens when the playback link is opened outside that session.
Whatever the provider, keep the original videos and the captions in a backup under your team's control. You will need them if you change platforms or lose access to the account.
What Costs to Expect If You Host Your Own Videos
The cost depends on how much material you keep, how many times it is played and which tasks your team takes on.
- Storage. Count the originals, the backups and the versions in different resolutions. All of them take up space even if nobody plays the videos.
- Transfer. Check how much traffic your plan includes and how additional usage is billed. A single popular video can generate more traffic than an entire catalog that is rarely viewed.
- Operation. Include the time spent preparing the files, maintaining the player and managing access to private or paid videos.
For example, a 50 MB video that is fully downloaded in 1,000 plays generates about 50 GB of transfer. If the player offers several quality levels or users watch only part of the video, actual usage may vary.
How to Reduce the Impact of Video on Performance
The embedded player adds its own requests to the page. If the video complements the article, you can show a poster image with a play button and load the external player when it is activated. That way, anyone who only wants to read the article avoids that load.4
How to Insert a Remote Video in Drupal
To reuse a YouTube or Vimeo video across several pieces of content, create it as an item in the Media Library. Verify that the Media and Media Library modules are enabled and that the Remote video media type exists. In the article's text format, add the button for inserting from the Media Library to CKEditor 5 and enable the media embed filter.5 6
- Open the Media Library from CKEditor and select Remote video.
- If the video is already in the library, search for it by name. If it is new, paste its URL and save the item.
- Select the video, insert it and review the page with the permissions of the audience it is intended for. Test playback, keyboard operation and captions where applicable.
When you need that same video on another page, select it from the Media Library. That way you can reuse the same item in a news story, a guide or a help page.
In Short
Choose the format based on what the reader needs to see, and the hosting based on who needs to access the video and how much work your team can take on. If you would rather leave your Drupal site's infrastructure to specialists, take a look at SeedCloud, the managed hosting service from Seed EM.
Sources
- Comparison of animated GIF and video on web.dev. ↩
- WCAG 2.2 on pausing, stopping or hiding content. ↩
- W3C guide on audio and video accessibility. ↩
- web.dev video performance guide. ↩
- Remote video configuration in Drupal. ↩
- Drupal documentation on embedding media with CKEditor 5. ↩
Published by Seed EM · .