For anyone whose views_gallery module seems to be installed and configured correctly:

Don’t forget to enable anonymous user permissions. This goes for most uploaded content, including attachments.