# Create image from SQL text

**URL:** <https://forum.inductiveautomation.com/t/create-image-from-sql-text/73642>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 12, 2023, 10:41am UTC](https://forum.inductiveautomation.com/t/create-image-from-sql-text/73642 "2023-05-12T10:41:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [May 12, 2023, 12:02pm UTC](https://forum.inductiveautomation.com/t/create-image-from-sql-text/73642/4 "2023-05-12T12:02:29Z")

</div>

this might be usefull too

> [@Perspective - Best Way To Display Grid 10,000 x 384](https://forum.inductiveautomation.com/t/perspective-best-way-to-display-grid-10-000-x-384/50526/21):
>
> The pypng library is a straight port. The attached script package has the pypng (png) library along with a couple of helper functions to process the DINTs to a list of lists suitable for pypng… File size stays about 480k [test\_graphics\_2021-09-02\_1214.zip](https://forum.inductiveautomation.com/uploads/short-url/3UhwxwjgFCEf8k7HkBUxsnTQcGe.zip) (24.0 KB) import random # Randomized Sample Data sampleData = [random.randrange(0, 2\*\*32) for j in xrange(120000)] # Process the DINTs to a list of lists suitable for pypng (single-bit depth) data, width, height = graphics.dint.processData(sa…

---

_[View the full topic](https://forum.inductiveautomation.com/t/create-image-from-sql-text/73642)._
