Plotting an image - why does a white border appear?

Try playing with keyword argument size. Reducing the margins using Measures also helps to some extent.

The following code frames the mandrill more tightly:

using TestImages, Measures, Plots

img = testimage("mandrill")
plot(img, framestyle=:none, size=size(img), margins=-10mm)