# Hubdb images attributes

**URL:** <https://community.hubspot.com/t/hubdb-images-attributes/46962>\
**Category:** CMS Development\
**Created:** [November 15, 2021, 3:07pm UTC](https://community.hubspot.com/t/hubdb-images-attributes/46962 "2021-11-15T15:07:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel4Teixeira](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@Miguel4Teixeira](https://community.hubspot.com/u/Miguel4Teixeira)\
**Post date:** [November 15, 2021, 3:07pm UTC](https://community.hubspot.com/t/hubdb-images-attributes/46962/1 "2021-11-15T15:07:12Z")

</div>

Hi,

Is it possible to retreive images attributes (width and height) from an hubdb table form the field image?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 16, 2021, 4:09pm UTC](https://community.hubspot.com/t/hubdb-images-attributes/46962/2 "2021-11-16T16:09:23Z")

</div>

@Miguel4Teixeira

Yes, this is available to you. You can access it by adding **.width** and **.height** to you image

Example:

```lia-code-sample
{% for row in hubdb_table_rows(4824747) %}
{{ row.feature_image.width }}
{% endfor %}

```

---

<div class="post-metadata">

**Author:** ![Miguel4Teixeira](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@Miguel4Teixeira](https://community.hubspot.com/u/Miguel4Teixeira)\
**Post date:** [November 16, 2021, 4:21pm UTC](https://community.hubspot.com/t/hubdb-images-attributes/46962/3 "2021-11-16T16:21:05Z")

</div>

Hi @dennisedson ,

That does not work, I have already tried it. It returns “null” for width and height.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 16, 2021, 4:28pm UTC](https://community.hubspot.com/t/hubdb-images-attributes/46962/4 "2021-11-16T16:28:02Z")

</div>

hmm…

Maybe you can add an example of your code.

Here is a screengrab of my code and a working preview.

 ![hubdb.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/b/4b10212fc5a2089f0d4fe8d09b06d17582144970.png)

---

<div class="post-metadata">

**Author:** ![Miguel4Teixeira](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@Miguel4Teixeira](https://community.hubspot.com/u/Miguel4Teixeira)\
**Post date:** [November 16, 2021, 4:38pm UTC](https://community.hubspot.com/t/hubdb-images-attributes/46962/5 "2021-11-16T16:38:46Z")

</div>

Hi @dennisedson ,

Theres a print of my code:

 ![transferir.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/343bb78c8f70d0e993dacb1d305560beaa7a9cf9.jpeg)

---

<div class="post-metadata">

**Author:** ![Miguel4Teixeira](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@Miguel4Teixeira](https://community.hubspot.com/u/Miguel4Teixeira)\
**Post date:** [November 17, 2021, 8:50am UTC](https://community.hubspot.com/t/hubdb-images-attributes/46962/6 "2021-11-17T08:50:20Z")

</div>

Hi @dennisedson ,

I have solved it. The problem was in the import of the table content, it was made by csv. I uploaded the images, inserted manually and now its all ok.
