Smart display positions
Posted: 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.
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.