jesconstantine / massdotgov

D8 sandbox for pilot feature dev
0 stars 2 forks source link

Allow svg to be uploaded in image field #5

Open jesconstantine opened 8 years ago

jesconstantine commented 8 years ago

likely includes switching to imagemagick for image toolkit, enabling svg in imagemagick module, and updating image fields in content types

powpow12 commented 8 years ago
powpow12 commented 8 years ago

Drupal doesn't support SVGs on nodes because "By GD (our default image toolkit) does not support SVG. So you cannot generate image styles of them. " https://www.drupal.org/node/2541480

powpow12 commented 8 years ago

ImageMagick doesn't use Apache's processes, and is installed on all Acquia servers. Acquia recommends ImageMagick over GD library. https://docs.acquia.com/articles/scoping-impact-image-processing

SVG is trying to get to core here. https://www.drupal.org/node/1014816. However this is has security concerns SVG and XSS,https://grepular.com/Scalable_Vector_Graphics_and_XSS

powpow12 commented 8 years ago

trying to set up imagemagick tool kit and Drupal project:

I ran into issues from here on out (work in progress).