Scanning a picture and uploading it onto a website involves both a reproduction and communication to the public of the copyright material. You will generally need permission from the copyright owner to do this, unless copyright has expired.
If the works were acquired in electronic form (for example, articles in electronic journals) then you can make them available online within the premises of the gallery, provided that users cannot make an electronic reproduction or communicate the works using equipment in the gallery.