# IJulia displayed image size

**URL:** <https://discourse.julialang.org/t/ijulia-displayed-image-size/9880>\
**Category:** General Usage\
**Created:** [March 22, 2018, 7:39am UTC](https://discourse.julialang.org/t/ijulia-displayed-image-size/9880 "2018-03-22T07:39:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![denizyuret](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/denizyuret/32/568_2.png) [@denizyuret](https://discourse.julialang.org/u/denizyuret)\
**Post date:** [March 22, 2018, 7:39am UTC](https://discourse.julialang.org/t/ijulia-displayed-image-size/9880/1 "2018-03-22T07:39:27Z")

</div>

How can I control the size of the images displayed in IJulia? It seems to pick a size regardless of the pixel size in a way I don’t understand.

---

<div class="post-metadata">

**Author:** ![Evizero](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evizero/32/10118_2.png) [@Evizero](https://discourse.julialang.org/u/Evizero)\
**Post date:** [March 22, 2018, 8:37am UTC](https://discourse.julialang.org/t/ijulia-displayed-image-size/9880/2 "2018-03-22T08:37:26Z")

</div>

The way the `show` method is implemented ([link](https://github.com/JuliaImages/Images.jl/blob/master/src/showmime.jl#L19-L39)) it makes sure that the image has a certain min/max pixel count.

As to motivation for this, Prof Holy wrote the following comment there

> Really large images can make display very slow, so we shrink big images. Conversely, tiny images don’t show up well, so in such cases we repeat pixels.

---

<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:** [March 22, 2018, 1:14pm UTC](https://discourse.julialang.org/t/ijulia-displayed-image-size/9880/3 "2018-03-22T13:14:41Z")

</div>

> [@denizyuret](#):
>
> How can I control the size of the images displayed in IJulia?

Displayed by what? The `Images` package, a plotting package, …?

Basically, it is up to the `show` routine for whatever type you are displaying, and different packages will give you different levels of control over this.
