# Icon customization

**URL:** <https://community.bluescape.com/t/icon-customization/5579>\
**Category:** Developer\
**Created:** [February 16, 2024, 3:59pm UTC](https://community.bluescape.com/t/icon-customization/5579 "2024-02-16T15:59:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amerehei](https://sea1.discourse-cdn.com/bluescape/user_avatar/community.bluescape.com/amerehei/32/5629_2.png) [@Amerehei](https://community.bluescape.com/u/Amerehei)\
**Post date:** [February 16, 2024, 3:59pm UTC](https://community.bluescape.com/t/icon-customization/5579/1 "2024-02-16T15:59:17Z")

</div>

Is there anyway in BS to add some custom SVG icons to the media library?

The `CreateIconInput` accepts `assetPath`, how to set it as a custom icon?

---

<div class="post-metadata">

**Author:** ![kkoechley](https://sea1.discourse-cdn.com/bluescape/user_avatar/community.bluescape.com/kkoechley/32/2474_2.png) [@kkoechley](https://community.bluescape.com/u/kkoechley)\
**Post date:** [February 16, 2024, 9:55pm UTC](https://community.bluescape.com/t/icon-customization/5579/2 "2024-02-16T21:55:34Z")

</div>

Hi @Amerehei,

Unfortunately, we don’t currently have the ability to create custom SVG icons. You would need to use one of the supported image formats using the `createImage` mutation:

```auto
enum ImageFormatInput {
  jpeg
  jpg
  gif
  png
  tiff
  tif
  jpegMime
  gifMime
  pngMime
  tiffMime
}

```

For example to load PNG from URL:

```auto
#create Image from URL
mutation createImageFromUrl($ws: String! $x:Float! $y:Float! $title:String! $imageFormat:ImageFormatInput! $url:String! ) {
    createImage(
          workspaceId: $ws
          input: {
            pinned:false
            title:$title
            imageFormat: $imageFormat
            sourceUrl: $url
            width:200
            height:200
            transform: {
              x: $x
              y: $y
              #scale:$scale
            }
    }) 
    {
        content{ uploadId url fields}
        preview{uploadId url fields}
        image{id pinned width height ingestionState}
    }
}

```

variables:

```auto
{
    "ws": "{{workspaceID}}",
    "title":"testimage.jpeg",
    "imageFormat":"png",
    "previewFormat":"png",
    "url":"http://www.pngall.com/wp-content/uploads/5/Explosion-Boom.png",
    "x":0,
    "y":0,
    "scale":1
}

```

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/bluescape/user_avatar/community.bluescape.com/system/32/710_2.png) [@system](https://community.bluescape.com/u/system)\
**Post date:** [March 17, 2024, 9:55pm UTC](https://community.bluescape.com/t/icon-customization/5579/3 "2024-03-17T21:55:49Z")

</div>

Closed on March 17, 2024, 9:55pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
