# Different image orientation in Images vs Makie

**URL:** <https://discourse.julialang.org/t/different-image-orientation-in-images-vs-makie/42288>\
**Category:** New to Julia\
**Created:** [June 30, 2020, 7:18am UTC](https://discourse.julialang.org/t/different-image-orientation-in-images-vs-makie/42288 "2020-06-30T07:18:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Post date:** [June 30, 2020, 7:18am UTC](https://discourse.julialang.org/t/different-image-orientation-in-images-vs-makie/42288/1 "2020-06-30T07:18:30Z")

</div>

I have this (raw) image:

```julia
julia> depth1D
640×480 reshape(reinterpret(Float32, ::Array{UInt8,1}), 640, 480) with eltype Float32:

```

When I display it with Images, calling `imshow(depth1D)`, I get this orientation:

 ![imshow](https://global.discourse-cdn.com/julialang/original/3X/f/a/fa6a7f7a4367601d3b196c64a0a8568c5d730913.png)

When I display it with Makie, calling `image(depth1D)`, I get different orientation:

 ![makie](https://global.discourse-cdn.com/julialang/original/3X/f/9/f9ae161bd51662e613fd7e74dd885663d4725260.png)

It is not a big problem, but since I want to use both packages, I would like to be able to reconcile the differences.

---

<div class="post-metadata">

**Author:** ![NiclasMattsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/niclasmattsson/32/21988_2.png) [@NiclasMattsson](https://discourse.julialang.org/u/NiclasMattsson)\
**Post date:** [June 30, 2020, 1:44pm UTC](https://discourse.julialang.org/t/different-image-orientation-in-images-vs-makie/42288/2 "2020-06-30T13:44:27Z")

</div>

Yes, this is a known quirk. In the world of image processing, the standard is to display image data in a matrix transposed and flipped along the y-axis. This makes the image have the same orientation as the matrix when it is printed numerically in the usual row-column order. Images.jl follows this convention (compare the numerical grayscale values with its image representation in [this example](https://juliaimages.org/stable/quickstart/#Quickstart-1)).

Makie does not yet follow this convention. Arguably it should though (for the `image()` command only), and this is being discussed in several issues, e.g. [#205](https://github.com/JuliaPlots/Makie.jl/issues/205), [#389](https://github.com/JuliaPlots/Makie.jl/issues/389) and [#524](https://github.com/JuliaPlots/Makie.jl/issues/524). (Note when reading the historical discussion in #205 that there was much confusion due to two different problems being discussed at once, and it took a while before everyone realized this.)

Displaying images transposed and flipped is likely to become the default in Makie too eventually, but for now you have to do it manually yourself.
