# Makie marker as image

**URL:** https://discourse.julialang.org/t/makie-marker-as-image/63091
**Category:** New to Julia
**Tags:** makie
**Created:** [June 17, 2021, 2:09pm UTC](https://discourse.julialang.org/t/makie-marker-as-image/63091 "2021-06-17T14:09:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![miki\_berkovich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/miki_berkovich/32/11848_2.png) [@miki\_berkovich](https://discourse.julialang.org/u/miki_berkovich)
#### Post date: [June 17, 2021, 2:09pm UTC](https://discourse.julialang.org/t/makie-marker-as-image/63091/1 "2021-06-17T14:09:39Z")

</div>

Hello 🙂  
I got an error, which wasn’t there at the previous versions of `Makie.jl`.  
When I plot a scatter with marker set to an image as follow:

```julia
# I load the following Pkg:
using Makie
using CairoMakie
import GLMakie
# Then I create the main figure and an axis
fig = Figure(resolution = (700, 700))
ax1 = Makie.Axis(fig)

# I have an image of a car named "marker_car" which was loaded from a png file
# and I pass this image as a marker
scatter!(ax1, car_pos, marker = marker_car, markersize= car_size)

```

Then I get the following error:

```julia
Error showing value of type Figure:
ERROR: MethodError: no method matching to_spritemarker(::RGBA{N0f8})
Closest candidates are:
  to_spritemarker(::Makie.FastPixel) at C:\Users\miki\.julia\packages\Makie\c5WJV\src\conversions.jl:1166
  to_spritemarker(::Circle{T} where T) at C:\Users\miki\.julia\packages\Makie\c5WJV\src\conversions.jl:1167
  to_spritemarker(::Type{var"#s298"} where var"#s298"<:(Circle{T} where T)) at C:\Users\miki\.julia\packages\Makie\c5WJV\src\conversions.jl:1168

```

What gone wrong?  
thanks in a head

---

<div class="post-metadata">

### Author: ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)
#### Post date: [June 17, 2021, 8:55pm UTC](https://discourse.julialang.org/t/makie-marker-as-image/63091/2 "2021-06-17T20:55:33Z")

</div>

> `to_spritemarker(::RGBA{N0f8})`

Since this is only getting a single color - Are you really passing an image?

---

<div class="post-metadata">

### Author: ![miki\_berkovich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/miki_berkovich/32/11848_2.png) [@miki\_berkovich](https://discourse.julialang.org/u/miki_berkovich)
#### Post date: [June 20, 2021, 5:09am UTC](https://discourse.julialang.org/t/makie-marker-as-image/63091/3 "2021-06-20T05:09:45Z")

</div>

hi, this is the type of the `marker_car`:

```julia
julia> typeof(marker_car)
Observable{Matrix{RGBA{N0f8}}}

```

so its a Matrix of RGBA which is the correct type for an image.

---

<div class="post-metadata">

### Author: ![miki\_berkovich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/miki_berkovich/32/11848_2.png) [@miki\_berkovich](https://discourse.julialang.org/u/miki_berkovich)
#### Post date: [June 20, 2021, 8:35am UTC](https://discourse.julialang.org/t/makie-marker-as-image/63091/4 "2021-06-20T08:35:50Z")

</div>

hello again  
I think the issue is solved, I updated my opengl drivers for my windows and reinstall the Makie Pkg and now the errors are gone, I’m not sure what fixed it but now all is OK.  
thank you all
