Converting From RGB Images
If you encouter an image in a standard graphics format (e.g. PNG, JPG) that you want to analyze or store in an AstroImage, it will likely contain RGB (or similar) pixels.
It is possible to store RGB data in an AstroImage. Let's see how that works:
using AstroImages
download("http://www.astro.uvic.ca/~wthompson/astroimages/fits/mw-crop2-small.png","mw-crop2-small.png")
# First we load it from the PNG file
mw_png = load("mw-crop2-small.png")