Search…

X3 Photo Gallery Support Forums

Search…
 
MikeR
Experienced
Topic Author
Posts: 216
Joined: 29 Sep 2006, 09:58

Center Slideshow

19 Apr 2016, 08:23

Hi Karl,

I use the slideshow (without the intro) with square images (small images 500*500 px).

I would like to center the images. (I use the scaledown parameter)

If I set 100% the stage is too big for my needs, there's a lot of space around the image (and in particular on top of it)
0354.jpg
0354.jpg (65.24 KiB) Viewed 3196 times
If I set the stage to 500 px (instead of the 100%) the image is no more centered
0355.jpg
0355.jpg (54 KiB) Viewed 3196 times
Also if I set the stage to 60%.

Can you help ?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Center Slideshow

19 Apr 2016, 08:44

Sorry not quite sure what you mean ... A link would help.

You should never set the width to anything else than 100%, and really that setting should perhaps not be included. Instead, you have the gallery MODULE width, which you can set to narrow or narrowest (etc). Then, the slideshow module will CENTER inside. Also, why not set the height of the slideshow to the same height of your images then?

Really not sure what you are trying to achieve. You also have the carousel layout, which seems like it does what you are trying to do ...
 
MikeR
Experienced
Topic Author
Posts: 216
Joined: 29 Sep 2006, 09:58

Re: Center Slideshow

19 Apr 2016, 10:02

Yes with the Module Width it's centered, I get confused with the other parameters

Carrousel and slideshow are 2 different things.
I don't want the carrousel

If possible I would like :

- a slideshow
- with image size reduced to fit the height of the stage (with reasonable margins)
- no need to scroll to view the image
- centered horizontally

In your examples https://demo.photo.gallery/examples/gallery/slideshow/ we have to scroll to view entirely the image

If I change the Module Width to narrowest but I have a lot of space around the image
If I change the Module Width to narrower The size exceed the window (I have to scroll to view entirely the image
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Center Slideshow

19 Apr 2016, 11:20

I gotta say that your logic is a bit off here ...
In your examples https://demo.photo.gallery/examples/gallery/slideshow/ we have to scroll to view entirely the image
Yes ... so you want to make it so it takes the REMAINDER of the screen that is below the menu? How is that logical when screens come at all heights from 320 px to 1600px? If you want to slideshow height fully visible on all devices, it would be humungous on large screens, and almost invisible on small screens ...
- with image size reduced to fit the height of the stage (with reasonable margins)
Set to 100% stage height, UNDER menu:
https://demo.photo.gallery/examples/plu ... how-intro/

Set to 100% stage height, but will naturally start BELOW menu:
https://demo.photo.gallery/examples/gallery/slideshow/
- no need to scroll to view the image
You mean no need to scroll to see the FULL image? How will that look on small devices? You will have maybe 100px height available, and the image inside will scale width to fit height, so it will be really really small. Having said all that, this is not even possible ... There is no way to "use remainder of screen height below menu". The only way we achieve a full-height slideshow like here, is because its UNDER the menu, and we can set it at 100% height of viewport.
- centered horizontally
So regardless of the height, the slideshow is ALWAYS centered, unless you are setting a slideshow width to less than 100% ... which is not logical. What purpose would that serve?
If I change the Module Width to narrowest but I have a lot of space around the image
If I change the Module Width to narrower The size exceed the window (I have to scroll to view entirely the image
Yes, you will have space around the image unless you set it to "cover" mode. This will be variable depending on the size and aspect of the device viewing it.

I can assure you that you have not considered all scenarios here, so you may want to re-think your approach. You can give me a screenshot of what you would like to achieve, and if it's possible, I will tell you how to do it ... If not, I will tell you why.

Sorry to be straight-forward, but I have a lot of experience working with gallery layouts.
 
MikeR
Experienced
Topic Author
Posts: 216
Joined: 29 Sep 2006, 09:58

Re: Center Slideshow

19 Apr 2016, 13:07

I'll try to explain
My goal is to have a nice and simple home page

By simple I mean :

- just a menu
- a slideshow below the menu (with a reasonable margin between the menu and the top of the slideshow (maybe 50-70 px ?)
- a slideshow always fully visible without any scrolling
- no footer (that's OK)

I don't want scaleup, so the max size of the slideshow will the size of the image

In the example below my images are 800*800 px

Example 1 : screen resolution 3840 x 2160 px

The slideshow (stage) will be 800*800 px (no scaleup) and centered (horizontaly and verticaly) in the space below the menu.
There will be a lot of space but it's my choice to not upload higher resolution. For now there's not a lot of UHD screen

Example 2 : screen is 1920*1200 px and under

If the space below the menu is too small to fit the native resolution of the image (800*800 px), so the the slideshow size will be reduced to use the available space (centered horizontaly and verticaly and with respect of reasonable top and below margin . )

Example 3 : iphone 4 resolution 640*960

So the slideshow size could be 540*540 px (50 px for the margin top bottom left and right). It's not too small.
----------------
Below are 2 examples with different parameters : image is 800*800 px screen is 1920*1080 px and scaledown parameter

- with Module Width : narrowest (the slideshow is centered but my printscreen only show the right part of the screen)
0362.jpg
0362.jpg (69.26 KiB) Viewed 3180 times
The image is not centered vertically and there's no need of the scrolling bar on the right (there's nothing under the image, no footer).
I think it will be prettier centered and without the scrolling bar.

- with Module Width : narrower (the slideshow is centered but my printscreen only show the right part of the screen)
0364.jpg
0364.jpg (92.77 KiB) Viewed 3180 times
The image is too big for the space available. It's not reduced, it's not centered vertically and there's no need of the scrolling bar on the right (there's nothing under the image, no footer).

Hope you understand what I mean.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Center Slideshow

19 Apr 2016, 13:28

First of all, I am not sure why you still have PX dimension on the slideshow width ... The slideshow width sets the slideshow AREA. Set it to 100% width, so the content will be centered horizontally. Please let's start from there ...

Do you have a link? It would help tremendously. If you have a link to some similar functionality on any other website, that would also be helpful ...

Next, I am not sure where you get the idea that there is some easy way to create "set the height of slideshow to equal the available area below the menu, including some margin, while still seeing the whole image, but on different screen sizes lets adjust the size".
I don't want scaleup, so the max size of the slideshow will the size of the image
When you use slideshow setting "original" then the image will NOT scale ... its that simple. But if you are going to use such an non-flexible setting, you are responsible to set the SIZE of the slideshow itself (width/height) to accommodate such. First of all, set the WIDTH to 100% ... just because the width of the slideshow is 100%, it doesnt affect the image sizes within the slideshow. It just will make sure images are centered horizontally, and they have 100% screen width AVAILABLE if the image stretches that wide (which it certainly will do on an iphone, which is 320px).

HOWEVER: Your above statement means you will need to create your image sizes no larger than the smallest device screen, excluding the menu, without scrolling ... if you want your condition to be fulfilled.
Example 3 : iphone 4 resolution 640*960
You are aware that 640*960 is "double density" resolution, but from a web browser its 320*480? It just uses the double density screen for higher resolution on images, and smoother fonts, but technically it 320*480 ... The same goes for ALL modern mobile devices.

You cant just put out the slideshow size to different sizes based on all your assumptions. I am not sure how you propose to set the WIDTH and HEIGHT of the slideshow canvas based on all those conditions.
The image is too big for the space available. It's not reduced, it's not centered vertically and there's no need of the scrolling bar on the right (there's nothing under the image, no footer).
In your screenshots, it looks like you are using the default 1600px image provided from the samples. Yes its way too big for that area ... I thought you said you didnt want images to scale? If you dont scale the image (original), then obviously it will be too big for smaller area.

Apologies, but your logic is really far from any productive target here. I need some link, and preferably an example of how it would work ... In your screenshots, I just see some slideshow limited by width, and therefore not centered, without image scaling (and therefore the image is cropped within the area).
 
MikeR
Experienced
Topic Author
Posts: 216
Joined: 29 Sep 2006, 09:58

Re: Center Slideshow

21 Apr 2016, 02:43

Thanks
I'll come back with more details and links