# Strip Image Height and Width from source variable

**URL:** <https://community.hubspot.com/t/strip-image-height-and-width-from-source-variable/47001>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [November 15, 2021, 10:31pm UTC](https://community.hubspot.com/t/strip-image-height-and-width-from-source-variable/47001 "2021-11-15T22:31:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [November 16, 2021, 7:38am UTC](https://community.hubspot.com/t/strip-image-height-and-width-from-source-variable/47001/2 "2021-11-16T07:38:04Z")

</div>

Hi @redbranchmedia ,  
I suppose you need to remove the option from the field itself instead of trying to prevent this through HubL. You could use a filter to retrieve everything before the **?**

```lia-code-sample
{% set image_array = module.image.src|split('?') %}
{% set image_url = image_array[0] %}

```

But you could also decide to prevent setting an explicit width and height by setting **resizable** to false in the fields.json:

```lia-code-sample
{
 "name" : "image",
 "label" : "Image",
 "sortable" : false,
 "required" : false,
 "locked" : false,
 "responsive" : false,
 "resizable" : false,
 "type" : "image",
 "default" : {}
}

```

---

_[View the full topic](https://community.hubspot.com/t/strip-image-height-and-width-from-source-variable/47001)._
