Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#4150 LightBox size question

Posted in ‘Event Gallery Extended’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by sbluege on Wednesday, 20 October 2021 08:59 UTC

johnk

I have a question about the size of images which can be shown in the lightbox.  I have seen you say that images greater than 1600px are truncated.  I don't got any problems with standard images, but when I try and display tall and thin images I do.  For instance an image which is 300x1066 pixels gives problems in several of the viewers.  If I use the PageableList, when I click on this item I see a very poor image (before I invoke the light box).  To improve this I put a white background on the image so I have a 1066x1066 image.  Now the preview image is OK but the lightbox image is rubbish.

When you say a 1600px limit on images is that width or height or does it mean the total number of pixels.  I am not sure what I am aiming at to satisfy the lightbox.

Thanks
John

Attachments

mountain_pathway_300x1066.jpg
mountain_pathway_1066.jpg

sbluege

Hi John, 

With 1600px I mean the longer side of an image. This limit could be increased in a magic file.

The presentation on the single image page is indeed ugly with images having a very high/low width/height-ratio. Your fix with the fill-space is valid. The white background causes issues in the lightbox, right? 

So, I have three ideas: 

- if you don't need those single pages for the images, there would be no issue with those images
- what about using a white lightbox instead of a black one? 
- I could try to fix the single page and limit the width of the image.

What do you think?

johnk

Hi Sven,

Thanks for getting back to me.  Yes you are right the putting a background on a very narrow or wide image does seem to sort out the problem.  Leaving only an issue with the white background causing problems with the lightbox.

I dont think I am sufficiently conversant with your package to understand the reply completely.

a) How would I switch off a single page for a given image?

b) How would I use a white light box.  I dont see that anywhere in the lightbox edit item which lets me do that.

c) How would you fix the single page issue and limit the width of the image?

Sorry Im a bit confused.
John 

sbluege

Sorry for the late answer! 

 

a) there are different layouts for the images. If you switch to any but the "pageable layout", there is no dedicated image page. The naming is pretty stupid, I know ;)

https://www.svenbluege.de/joomla-event-gallery/event-gallery-manual/intro-and-installation#layouts-for-event

 

b) that can be done with custom CSS. This would make the background white: 

div.pswp__bg {background: white;}
 
div.pswp__ui--fit .pswp__top-bar, div.pswp__ui--fit .pswp__caption {
    background:rgba(0,0,0,0.7);
}

c) with magic coding ;) The image will be restricted to a maximum height and will not exceed their original size. But I would only do this if a) or b) are not working since images with this format are kind of an edge case. 

johnk

Hi Sven, thanks for these suggestions.  I will try 1) or 2).  Please mark this ticket as closed I don't think any further action is needed.

sbluege

Done. Please don't hesitate to reopen it.