1. Overview of the options
Automated image editing
ImageMagick is the standard image processing software and is available on the vast majority of web hosting plans – either as a command-line program (a program without a graphical interface) or directly as a PHP library. camindo CMS can use both to post-process uploaded images automatically.
The uploaded file (“Upload”) is always kept. In addition, camindo CMS generates one or more modified versions of the image (“Thumbnails”). Typical uses: thumbnails in a reduced size that load quickly on the website, images with a fixed aspect ratio (square, for example), a logo placed into the image, or a digital watermark.
If ImageMagick is not available, camindo CMS uses the PHP library GD, which is available practically everywhere; the range of functions is considerably smaller, though.
To learn what ImageMagick can do, visit the ImageMagick website: https://imagemagick.org
Watermarks
I am repeatedly asked how images on a website can be protected against unauthorized copying. Ultimately, the reality is: anything visible on the internet can be downloaded and modified by anyone—even if doing so is illegal.
Watermarks make unauthorized reuse harder or provable. Common methods are:
| Method | Advantages | Disadvantages |
|---|---|---|
| Meta tag with copyright information | very simple | easy to remove |
| Steganographic pixels (invisible information in the image) | inconspicuous | lost even with simple post-processing, such as resizing |
| Semi-transparent lettering or logo with a copyright notice in the image | the harder to remove, the more of the image it covers | conspicuous, may be distracting |
| Digital watermark (embedded in the frequency domain of the image) | very robust: survives – up to a certain degree – resizing, cropping, recompression and blurring; can only be read with the private key | more complex technology |
camindo CMS supports all four methods: the first three with ImageMagick, the fourth with the Linux command-line program camindo-watermark (source: https://github.com/dirkintelligence/camindo-watermark). If it is installed on the web server, a text of up to seven characters, such as “M-MAYER”, can be hidden invisibly in the image. It can only be read with the previously defined “private key” – right in the back end of the CMS. Viewers will hardly notice the watermark. We recommend combining several methods, for example meta tag + copyright line in the image + digital watermark.
PDF preview
ImageMagick can also process vector data and, for example, convert a PDF page into a raster image. To do so, it relies internally on Ghostscript, which has repeatedly had security vulnerabilities in the past. That is why this function is blocked in camindo CMS by default. Instead, camindo CMS converts PDF pages into images with the command-line program pdftoppm from the poppler-utils.
Source: https://poppler.freedesktop.org
Video still
A single still image (frame) from a video can also be extracted automatically. For this, camindo CMS uses the command-line program ffmpeg.