# Image in Power Table

**URL:** <https://forum.inductiveautomation.com/t/image-in-power-table/105433>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [April 22, 2025, 7:52pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433 "2025-04-22T19:52:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [April 22, 2025, 7:52pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/1 "2025-04-22T19:52:20Z")

</div>

Hi, i Want to incruse a image in a cell of data of a power table, is it possible ? I have my database in Mysql and I want to based in this sentence and in the component based example such as configure cell but not colors, images of my repository. if someone can helpme please with this.

```python
SELECT 
  CASE 
    WHEN EXISTS (
      SELECT 1 
      FROM mantenimiento.INSTRUCTIVOS_COMPONENTE 
      WHERE EQUIPO_ID_EQUIPO = '155'
    ) THEN 1
    ELSE 0
  END AS resultado;

```

---

<div class="post-metadata">

**Author:** ![Simon\_Hathout\_Willar](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Simon\_Hathout\_Willar](https://forum.inductiveautomation.com/u/Simon_Hathout_Willar)\
**Post date:** [April 22, 2025, 8:23pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/2 "2025-04-22T20:23:55Z")

</div>

Do you want the image in a Power Chart (graph) or a Power Table (table)?

If it is in a Power Table, the ConfigureCell extension function with the IconPath property is likely your best bet

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 22, 2025, 8:24pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/3 "2025-04-22T20:24:56Z")

</div>

Your question title says Power Chart. The body of the post says "power table". Which is it?  
It looks like a Vision question so include the vision tag from the dropdown below your question title.

Please also see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

> **Formatted query**
>
> ```sql
> SELECT
> CASE
> WHEN EXISTS (
> SELECT 1
> FROM mantenimiento.INSTRUCTIVOS_COMPONENTE
> WHERE EQUIPO_ID_EQUIPO = '155'
> ) THEN 1
> ELSE 0
> END
> AS resultado;
> 
> ```

---

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [April 22, 2025, 8:29pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/4 "2025-04-22T20:29:01Z")

</div>

I want the image in a power table, I tried in the configure cell but don't works, is there any other form?

---

<div class="post-metadata">

**Author:** ![Simon\_Hathout\_Willar](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Simon\_Hathout\_Willar](https://forum.inductiveautomation.com/u/Simon_Hathout_Willar)\
**Post date:** [April 22, 2025, 8:30pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/5 "2025-04-22T20:30:24Z")

</div>

Where are your images stored? If they are stored in Ignition's image manager, the IconPath property in the return dictionary should work

---

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [April 22, 2025, 8:45pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/6 "2025-04-22T20:45:53Z")

</div>

In my image browser for example this is the image componentesFV.png.  
Could you help me with one example how to do this with configure cell please?

---

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [April 22, 2025, 8:46pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/7 "2025-04-22T20:46:15Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![Simon\_Hathout\_Willar](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Simon\_Hathout\_Willar](https://forum.inductiveautomation.com/u/Simon_Hathout_Willar)\
**Post date:** [April 22, 2025, 8:48pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/8 "2025-04-22T20:48:32Z")

</div>

```python
if value == 1 :
    return {"iconPath": "componentesFV.png", "text": ""}
else :
    return {"text":""} # Don't show the 0

```

---

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [April 25, 2025, 2:20pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/9 "2025-04-25T14:20:23Z")

</div>

Is there any form to change the size of the image ? this is my code.

```python
def configureCell(self, value, textValue, selected, rowIndex, colIndex, colName, rowView, colView):
	if colName != "Numero":	
		return None
	else:
		Infraestructura=self.data.getValueAt(rowIndex,"CATEGORIA")	
		if Infraestructura == "INFRAESTRUCTURA NECESARIA" :
			return {"iconPath": "componentesFV.png", "text": ""}
		else :
			return {"text":""}

```

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 25, 2025, 2:44pm UTC](https://forum.inductiveautomation.com/t/image-in-power-table/105433/10 "2025-04-25T14:44:01Z")

</div>

Resizing the image in code is a lot more complicated. If you only have a fixed set of icons, it's going to be a lot easier to just manually make resized copies and upload those to image management separately.
