# Images.jl loading image produces artifact

**URL:** https://discourse.julialang.org/t/images-jl-loading-image-produces-artifact/89249
**Category:** Specific Domains
**Tags:** images
**Created:** [October 25, 2022, 1:23pm UTC](https://discourse.julialang.org/t/images-jl-loading-image-produces-artifact/89249 "2022-10-25T13:23:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [October 25, 2022, 1:23pm UTC](https://discourse.julialang.org/t/images-jl-loading-image-produces-artifact/89249/1 "2022-10-25T13:23:15Z")

</div>

I have made an issue ([Images.jl issue 1017](https://github.com/JuliaImages/Images.jl/issues/1017)), but here is a copy of the text in case I can get help faster and/or make a more googlable resource for this problem:

The original image looks like this:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/6/b6f403938280833e4f3000787a71db906d4f6bc8.png)

I then load the image with the following command:  
`Images.load(joinpath(pwd(), "above_focal_sum", "113mm.tif"))`

The resulting image looks like this (imprecise cropping, color and lines are of interest)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/3/b/3b177c34f720a3faf912e342b2ec39604e1fd69e.png)  
, where the image is displayed in a pluto notebook

There is now an artifact in the image, with vertical lines across the entire thing. The artifact is very visible in a plot of the values of two slices of the image, where the RGB values have been converted to `Gray` and then to float:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/8/d/8dafbd8cc188c0a1f2c30d80a89e793bf97d3cca.png)

As can be seen from the path, the image is a .tif file. The original image is grayscale, whereas the read in image has RGB values and visually a warmer tone.  
The original image file can be found at [113mm.tif - Google Drive](https://drive.google.com/file/d/1dIhkYY5C7EumgCZaLI0TqPlorRjL1BX0/view?usp=sharing)

Can anyone help me on how to correctly read the image?

---

<div class="post-metadata">

### Author: ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)
#### Post date: [October 25, 2022, 1:26pm UTC](https://discourse.julialang.org/t/images-jl-loading-image-produces-artifact/89249/2 "2022-10-25T13:26:30Z")

</div>

This looks like a disagreement over how to process gamma values.

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [October 25, 2022, 1:55pm UTC](https://discourse.julialang.org/t/images-jl-loading-image-produces-artifact/89249/3 "2022-10-25T13:55:30Z")

</div>

On MacOS, I see this:

 ![Screenshot 2022-10-25 at 14.52.40](https://global.discourse-cdn.com/julialang/original/3X/5/5/55725ef46cdae63d9d44ef6e7f56067d9359689d.png)

I noted that this used QuartzImageIO (MacOS) and TiffImages…

---

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [October 25, 2022, 2:24pm UTC](https://discourse.julialang.org/t/images-jl-loading-image-produces-artifact/89249/4 "2022-10-25T14:24:52Z")

</div>

I tried to use TiffImages directly to begin with (["Compression COMPRESSION\_LZW is not implemented" · Issue #91 · tlnagy/TiffImages.jl · GitHub](https://github.com/tlnagy/TiffImages.jl/issues/91)), which resulted in an error about the encryption of the file. Can I use QuartzImageIO on Linux (Mint)?

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [October 25, 2022, 2:47pm UTC](https://discourse.julialang.org/t/images-jl-loading-image-produces-artifact/89249/5 "2022-10-25T14:47:13Z")

</div>

> [@TheLateKronos](#):
>
> Can I use QuartzImageIO on Linux (Mint)?

Probably not. Quartz is Apple’s graphics system.
