Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Nondo
Topic Author
Posts: 23
Joined: 22 Mar 2007, 17:05

Smart display positions

10 May 2007, 02:20

For the Imagevue users an embedded gallery, how about a quick PHP script that could figure out the best placement for image descriptions based on the image dimensions?

With a portrait oriented image you have a lot of extra space on the left and right sides of your image for descriptions. If you have a landscape oriented image then you have extra space on the top and bottom.

Example: The script sees that the image blah.JPG has a height of 600 and a width of 409 (portrait orientation) and displays the image description to the right or left. The same script then sees that the next image plant.JPG has a width of 600 and a height of 409 (landscape) and displays the image description on the top or bottom.

Does it already exist? Or is there not a demand for it.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Smart display positions

18 May 2007, 01:38

Nondo wrote:Does it already exist? Or is there not a demand for it.
I think the slideshow would be better of with a more "intelligent" description system, that places the text block based on free space and orientation of an image. This will not be PHP though, it will be the SWF(flash) that calculates the area and chooses where to display description. I will keep this in mind for a future version ...