# How to display an array of UInt8 as a color image

**URL:** <https://discourse.julialang.org/t/how-to-display-an-array-of-uint8-as-a-color-image/93990>\
**Category:** Visualization\
**Created:** [February 3, 2023, 2:05pm UTC](https://discourse.julialang.org/t/how-to-display-an-array-of-uint8-as-a-color-image/93990 "2023-02-03T14:05:22Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 6, 2023, 1:30pm UTC](https://discourse.julialang.org/t/how-to-display-an-array-of-uint8-as-a-color-image/93990/9 "2023-02-06T13:30:50Z")

</div>

> [@Tetane](#):
>
> I was thinking of a solution like what Matlab is doing to plot images. Matlab only takes the pixels needed for the plot at the current zoom, by decimating the image.

See the discussion here: [Plotting image data in Julia is much slower than MATLAB](https://discourse.julialang.org/t/plotting-image-data-in-julia-is-much-slower-than-matlab/79660)

It’s pretty easy to do a downsampling call yourself, and there are packages like [InteractiveViz.jl](https://github.com/org-arl/InteractiveViz.jl) that will do it for you.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-display-an-array-of-uint8-as-a-color-image/93990)._
