no thumbnail for SVG files

222 views
Skip to first unread message

Com Jack85

unread,
Jun 5, 2018, 10:32:58 AM6/5/18
to ResourceSpace
Hello.
we have a problem with the creation of thumbnails for SVG files.
with other files, png, jpg, giv and mpeg, we had noch problem.

if i upload a SVG files, we get no thumbnail.



I found the following entrys in the logs.

1.
<pre>Exiftool tag Exiftool: extracted field before escape check 'EXIFTOOL:EXIFTOOLVERSION', value is '10.96' Exiftool: extracted field 'EXIFTOOL:EXIFTOOLVERSION', value is '10.96' Exiftool: extracted field before escape check 'FILE:FILENAME', value is '12_4286f4c29675912.svg' Exiftool: extracted field 'FILE:FILENAME', value is '12_4286f4c29675912.svg' Exiftool: extracted field before escape check 'FILE:DIRECTORY', value is 'E:/ResourceSpace/include/ /filestore/1/2_b6172058daa452a' Exiftool: extracted field 'FILE:DIRECTORY', value is 'E:/ResourceSpace/include/ /filestore/1/2_b6172058daa452a' Exiftool: extracted field before escape check 'FILE:FILESIZE', value is '9.0 kB' Exiftool: extracted field 'FILE:FILESIZE', value is '9.0 kB' Exiftool: extracted field before escape check 'FILE:FILEMODIFYDATE', value is '2018-06-04 22:08:46' Exiftool: extracted field 'FILE:FILEMODIFYDATE', value is '2018-06-04 22:08:46' Exiftool: extracted field before escape check 'FILE:FILEACCESSDATE', value is '2018-06-04 22:08:46' Exiftool: extracted field 'FILE:FILEACCESSDATE', value is '2018-06-04 22:08:46' Exiftool: extracted field before escape check 'FILE:FILECREATEDATE', value is '2018-06-04 22:08:46' Exiftool: extracted field 'FILE:FILECREATEDATE', value is '2018-06-04 22:08:46' Exiftool: extracted field before escape check 'FILE:FILEPERMISSIONS', value is 'rw-rw-rw-' Exiftool: extracted field 'FILE:FILEPERMISSIONS', value is 'rw-rw-rw-' Exiftool: extracted field before escape check 'FILE:FILETYPE', value is 'SVG' Exiftool: extracted field 'FILE:FILETYPE', value is 'SVG' Exiftool: extracted field before escape check 'FILE:FILETYPEEXTENSION', value is 'svg' Exiftool: extracted field 'FILE:FILETYPEEXTENSION', value is 'svg' Exiftool: extracted field before escape check 'FILE:MIMETYPE', value is 'image/svg+xml' Exiftool: extracted field 'FILE:MIMETYPE', value is 'image/svg+xml' Exiftool: extracted field before escape check 'SVG:SVGVERSION', value is '1.1' Exiftool: extracted field 'SVG:SVGVERSION', value is '1.1' Exiftool: extracted field before escape check 'SVG:ID', value is 'Ebene_1' Exiftool: extracted field 'SVG:ID', value is 'Ebene_1' Exiftool: extracted field before escape check 'SVG:XMLNS', value is 'http://www.w3.org/2000/svg' Exiftool: extracted field 'SVG:XMLNS', value is 'http://www.w3.org/2000/svg' Exiftool: extracted field before escape check 'SVG:TAGX', value is '0px' Exiftool: extracted field 'SVG:TAGX', value is '0px' Exiftool: extracted field before escape check 'SVG:TAGY', value is '0px' Exiftool: extracted field 'SVG:TAGY', value is '0px' Exiftool: extracted field before escape check 'SVG:VIEWBOX', value is '0 0 1194.9 600' Exiftool: extracted field 'SVG:VIEWBOX', value is '0 0 1194.9 600' Exiftool: extracted field before escape check 'SVG:STYLE', value is 'enable-background:new 0 0 1194.9 600;' Exiftool: extracted field 'SVG:STYLE', value is 'enable-background:new 0 0 1194.9 600;' Exiftool: extracted field before escape check 'SVG:TITLE', value is 'blue-pattern' Exiftool: extracted field 'SVG:TITLE', value is 'blue-pattern' EXIF - option for field 8 : yes EXIF - custom option for filename field 51 : yes</pre>



2.
<pre>Create previews create_previews(ref = 12, thumbonly = , extension = svg, previewonly = , previewbased = , alternative = -1, ignoremaxsize = , ingested = , checksum_required = 1) create_previews - generate checksum for 12 File source is E:ResourceSpaceinclude/../filestore1/2_b6172058daa452a/12_4286f4c29675912.svg</pre>



3.
<pre>Starting preview preprocessing. File extension is svg. FFMPEG-VIDEO: #################################################################### FFMPEG-VIDEO: Start trying FFMPeg for video files -- resource ID 12 create_previews_using_im(ref=12,thumbonly=,extension=svg,previewonly=,previewbased=,alternative=-1,ingested=) Contemplating hpr (sw=1194.9, tw=999999, sh=600, th=999999, extension=svg) Generating preview size hpr to E:ResourceSpaceinclude/../filestore1/2_b6172058daa452a/12hpr_c085273ae5f6e55.jpg Contemplating lpr (sw=1194.9, tw=2000, sh=600, th=2000, extension=svg) Contemplating fbc (sw=1194.9, tw=1640, sh=600, th=624, extension=svg) Contemplating scr (sw=1194.9, tw=1400, sh=600, th=800, extension=svg) Generating preview size scr to E:ResourceSpaceinclude/../filestore1/2_b6172058daa452a/12scr_73461efa42c6929.jpg Contemplating pre (sw=1194.9, tw=700, sh=600, th=450, extension=svg) Generating preview size pre to E:ResourceSpaceinclude/../filestore1/2_b6172058daa452a/12pre_10f88dc19e3b1cf.jpg Contemplating thm (sw=1194.9, tw=150, sh=600, th=150, extension=svg) Generating preview size thm to E:ResourceSpaceinclude/../filestore1/2_b6172058daa452a/12thm_d5a1dd87b003b9f.jpg Contemplating col (sw=1194.9, tw=75, sh=600, th=75, extension=svg) Generating preview size col to E:ResourceSpaceinclude/../filestore1/2_b6172058daa452a/12col_2de3a481ae7ee71.jpg</pre>


David Varela

unread,
Apr 26, 2020, 10:50:26 AM4/26/20
to ResourceSpace
I found a similar issue that appears to be resolved in Exiftool version 11.66 here:

I noticed this issue on one server that is running Ubuntu 16.04 and so I will need to install package from source to bring to current version.
Directions here
https://exiftool.org/install.html#Unix

Jeff Nova

unread,
Apr 26, 2020, 3:04:21 PM4/26/20
to resour...@googlegroups.com
Update exiftool to the latest version and you’ll need to make sure Imagemagick has the delegate for SVG installed. - J

On Apr 26, 2020, at 7:50 AM, David Varela <varel...@gmail.com> wrote:


--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/resourcespace/2b55f7a9-fb59-42b2-903b-0fadba30edec%40googlegroups.com.

German Fred

unread,
May 27, 2020, 8:37:39 AM5/27/20
to ResourceSpace
It it helps, I was able to resolve the same problem by doing the following on an Ubuntu 18.04 server:

Compile and install the latest version of ImageMagick: https://linuxconfig.org/how-to-install-imagemagick-7-on-ubuntu-18-04-linux
Compile and install the latest version of Exiftool: https://linoxide.com/linux-how-to/install-use-exiftool-linux-ubuntu-centos/

Installed Inkscape (Imagemagick uses it for SVG conversion): apt install inkscape

Made sure that $imagemagick_path = and $exiftool_path = in config.php pointed to the correct locations for the newly installed versions (They installed to /usr/local/bin/ on my server)

After that SVG works well.

GF
Reply all
Reply to author
Forward
0 new messages