Read in Arabic or English, and switch any time.Digital Issue #412 • Editorial Broadsheet
HomeSoftware EngineeringWeb Hosting & ServersSEO & Web ArchitectureSecurity & Cloud NetworksAI & DataTech & StartupsTech Tutorials & ToolsSearchGamesChatCode runnerSign inالعربية
Design looks
Classic
Modern
Minimal
Pack 2

How to Install Thumbnail and Media Add-ons on Debian

Debian Add-ons Installation Guide This article provides a comprehensive guide for installing various tools on a Debian system. These tools enable faster thumbnail generation for different file types and provide powerful media processing capabilities. 1. PNG…

أحمد سمير2 min read

Debian Add-ons Installation Guide

This article provides a comprehensive guide for installing various tools on a Debian system. These tools enable faster thumbnail generation for different file types and provide powerful media processing capabilities.

1. PNG Quantization (pngquant)

pngquant is a command-line utility for converting 24-bit PNG files to 8-bit, which significantly reduces their size without a noticeable loss in quality.

To install pngquant from the official Debian repositories, run the following command in your terminal:

code
sudo apt install pngquant

2. STL 3D Model Thumbnails (stl-thumb)

stl-thumb is a specialized tool that generates thumbnails for .stl 3D model files. Because it is not in the standard Debian repositories, you need to download a .deb package directly.

Installation Steps:

  1. Navigate to the stl-thumb GitHub releases page and download the .deb file that matches your system’s architecture (e.g., stl-thumb_0.5.0_amd64.deb).
  2. Open a terminal, go to the directory where you downloaded the file, and run the installation command, making sure to use the correct filename:
code
sudo apt install ./stl-thumb_0.5.0_amd64.deb

3. Office Document Thumbnails (libreoffice)

To enable thumbnail generation for Office documents, you need a recent version of LibreOffice (v6.3 or higher). Using the Debian backports repository is the recommended way to get a newer version while maintaining system stability.

Installation Steps:

  1. Identify your Debian codename. You can find this by running lsb_release -a. In your case, the codename is bookworm.
  2. Add the backports repository. Edit the sources.list file with a text editor:
code
sudo nano /etc/apt/sources.list

Add the following line to the end of the file, then save and exit:

code
deb [http://deb.debian.org/debian/](http://deb.debian.org/debian/) bookworm-backports main
  1. Install LibreOffice. Update your package list and install the software from the backports repository:
code
sudo apt update
sudo apt install -t bookworm-backports libreoffice

4. Image Processing (libvips)

libvips is a fast image processing library that is perfect for tasks like thumbnail generation due to its low memory usage and high speed.

Install libvips-tools to get the core library and its command-line utilities:

code
sudo apt install libvips-tools

5. Media Conversion (imagemagick & ffmpeg)

ImageMagick and FFmpeg are two industry-standard tools for image and media manipulation.

  • ImageMagick handles a wide variety of image formats for tasks like editing, converting, and creating thumbnails.
  • FFmpeg is the go-to tool for processing video and audio files, including format conversion and streaming.

Install them with these separate commands:

code
sudo apt install imagemagick
sudo apt install ffmpeg
أحمد سمير

مهندس برمجيات وكاتب تقني، أبحث في هندسة الويب الحديثة، ومحركات البحث، وتقنيات SolidJS وGo.

Was this useful? Share your reaction

Comments 0

No comments yet. Be the first.

Sign in to comment

One weekly email. No noise.

One chosen article and a short note from the field.