# Error with svg Image in Background

**URL:** <https://forums.realmacsoftware.com/t/error-with-svg-image-in-background/44923>\
**Category:** RapidWeaver Elements\
**Created:** [October 10, 2024, 2:02am UTC](https://forums.realmacsoftware.com/t/error-with-svg-image-in-background/44923 "2024-10-10T02:02:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [October 10, 2024, 2:02am UTC](https://forums.realmacsoftware.com/t/error-with-svg-image-in-background/44923/1 "2024-10-10T02:02:20Z")

</div>

I noticed when using an image component to set a icon and dropped in an .svg then it throws an error:

**Parse error : syntax error, unexpected identifier “version”** in /private/var/folders/57/nnccdyq14tnfjwt684rwg55c0000gn/T/com.realmacsoftware.rapidweaverelements/RapidWeaver/2989/RWDocumentPagePreview/document-E45B4360-E4A3-45B2-81B1-F27550C25750/index.php on line 21

using this in template: `bg-[url('{{imagebg}}')]`

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [October 10, 2024, 8:27am UTC](https://forums.realmacsoftware.com/t/error-with-svg-image-in-background/44923/2 "2024-10-10T08:27:24Z")

</div>

Yeah, we know about this. The image component should only accept images (not SVG’s).

We have a specific SVG component that should be used, but please note that is also a work in-progress so you might hit issues there too.

We’re in the process of massively reworking ALL our components… stay tuned.

---

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [October 10, 2024, 5:48pm UTC](https://forums.realmacsoftware.com/t/error-with-svg-image-in-background/44923/3 "2024-10-10T17:48:37Z")

</div>

Oh, noticed there is no dev component call for svg - is the call “vector”: {} or something sim? I know it may not work, but I’m trying to rough setup controls so it’s easier to tweak down the road.

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [October 14, 2024, 8:50am UTC](https://forums.realmacsoftware.com/t/error-with-svg-image-in-background/44923/4 "2024-10-14T08:50:45Z")

</div>

it’s not finalised yet, but you will be able to specify which types of resources the `resource` control accepts. It will look something along these lines:

```json
resource: {
    accepts: ['svg']
}

```
