AI OnAI Off
I just found out that you should not point directly to the original image; instead a 'thumnail' version should be created and pointed at, like this:
Thumbnail thumb = currentImage.GetThumbnail(currentImage.Width, currentImage.Height, ThumbnailFormat.Proportional);
img.Href = thumb.Url
the links to the images are like this: /EPiServerCommunity/Modules/ImageGallery/GetImage.aspx?imageId=378&orig=false
when I'm logged in, I can see the images, if not they are invisible. If I try to directly go to this link I'm redirected to
the login page. Has anyone an idea what might be the problem?