# How to change the display size of an image in IJulia (Jupyter)?

**URL:** https://discourse.julialang.org/t/how-to-change-the-display-size-of-an-image-in-ijulia-jupyter/70675
**Category:** Visualization
**Tags:** images, jupyter
**Created:** [October 31, 2021, 2:56am UTC](https://discourse.julialang.org/t/how-to-change-the-display-size-of-an-image-in-ijulia-jupyter/70675 "2021-10-31T02:56:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shuhua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuhua/32/27618_2.png) [@Shuhua](https://discourse.julialang.org/u/Shuhua)
#### Post date: [October 31, 2021, 2:56am UTC](https://discourse.julialang.org/t/how-to-change-the-display-size-of-an-image-in-ijulia-jupyter/70675/1 "2021-10-31T02:56:51Z")

</div>

We can generate a random image with a `rand` array. However, regardless of the size of the array, the image is always displayed in Jupyter IJulia (in VS code) with a fixed size. Is there any way to adjust the display size?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/a/4a78fc7558f7cef8912b1ae17f0865d65c215508.png)

---

<div class="post-metadata">

### Author: ![trilobit](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@trilobit](https://discourse.julialang.org/u/trilobit)
#### Post date: [October 31, 2021, 10:13am UTC](https://discourse.julialang.org/t/how-to-change-the-display-size-of-an-image-in-ijulia-jupyter/70675/2 "2021-10-31T10:13:53Z")

</div>

You can upsample the image  
i.e.

 ![img](https://global.discourse-cdn.com/julialang/original/3X/8/f/8f3e5853dfd5bcd339213c956f084f6c2b8ce70a.png)

---

<div class="post-metadata">

### Author: ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)
#### Post date: [November 8, 2022, 8:58am UTC](https://discourse.julialang.org/t/how-to-change-the-display-size-of-an-image-in-ijulia-jupyter/70675/4 "2022-11-08T08:58:12Z")

</div>

thank you for the workaround. I am applying it to a custom gif out of images.

Here computing the `upsample` demands a lot of resources, is there a quicker way to resize the displayed output? Some parameter of the `display` function maybe? (Couldn’t find anything myself sofar)
