SVG Previews in Manager

Modx 2.7.1 PHP 7.2

I’m getting the following error when viewing svg files assigned to image TVs in the manager. They worked fine on the testing server but on moving platforms they are now not showing, so maybe not directly a Modx problem but any ideas would be welcome…

Could not generate thumbnail
phpThumb debug output:
    [0] => phpThumb() v1.7.15-201902101903 in file "phpthumb.class.php" on line 229
    [1] => setSourceFilename(/var/www/vhosts/####/httpdocs/###/##/###/####/###/size/#####.svg) set $this->sourceFilename to "/var/www/vhosts/####/httpdocs/####/####/####/####/####/####/######.svg" in file "phpthumb.class.php" on line 294
    [2] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 999
    [3] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg;webp) in file "phpthumb.class.php" on line 1005
    [4] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 1016
    [5] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 1023
    [6] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 1033
    [7] => resolvePath: /var/www/####/####/httpdocs/####/####/####/level02/###/####/#######.svg (allowed_dirs: Array
(

Did you do a transfer when moving to your new platform? I wonder if it could be an error in the thumbnail cache or something. :thinking: Not that I have any clue how to clear that. :disappointed:

Maybe ImageMagick is out of date on the new server?

Looks like a similar problem here: https://modx.pro/help/17025

I’m checking with the hosting company - tried adding a new SVG file and the thumbnail doesn’t get created at all so I think it’s to do with the hosting set up

It appears that the development server didn’t have ImageMagick installed but the new server does, so how is Modx handling image previews of SVGs in TVs? In the media browser they show up fine.

In my case, where phpThumb was not able to generate a thumbnail of a specific SVG file from an tv input, i had a false path configured in my mediasource.