Error when uploading SVG image in the header
-
I’m trying to switch my png header image to a svg.
TEst site is here: Cboard
To upload the SVG in the WP library I used this snippet below (maybe this is the problem)://Allow SVG through WordPress Media Uploader function cc_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } add_filter('upload_mimes', 'cc_mime_types');
The svg file is showing in the library but after selecting it and clicking on the option select and crop, on the next click “crop” I get an error “Problem resizing the image”
Any idea how to solve this problem?
Simone is uptodate, no fancy plugins installed, child theme in place.Thanks,
Giorgio
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error when uploading SVG image in the header’ is closed to new replies.