diff --git a/docs/src/tutorials/conic/ellipse_fitting.jl b/docs/src/tutorials/conic/ellipse_fitting.jl index 6ca4a302862..d77e7ae63bb 100644 --- a/docs/src/tutorials/conic/ellipse_fitting.jl +++ b/docs/src/tutorials/conic/ellipse_fitting.jl @@ -97,7 +97,8 @@ end # how the rotation and position of elliptical galaxies can be useful information # to astronomers. -img = Images.load("../../assets/cartwheel_galaxy.png"); +filename = joinpath(@__DIR__, "..", "..", "assets", "cartwheel_galaxy.png") +img = Images.load(filename); # We convert the image to gray scale so that we can work with a single channel.