sloporto
08-29-2009, 02:29 AM
1) Script Title: simplegallery image dimension issue
2) Script URL (on DD): http://www.dynamicdrive.com/forums/newthread.php?do=newthread&f=2
var mygallery=new simpleGallery({
wrapperid: "simplegallery",
dimensions: [402, 285],
3) Describe problem: I'm using a WordPress theme that uses simplegallery. I'm trying to customize it a little. The online help says:
"dimensions": Should be set to the width and height of your images, which are assumed to all be the same size. Those images that are larger will be partially clipped, while those that are smaller will appear with extra whitespace inside the gallery.
What I'm finding is my image is 320x240 so it appears simplegallery stretches the image to the 402x285 and so it gets grainy and looses quality. I then resized the image to 1600x1124 pixels and it actually now appears in the simplegallery as a smaller image with lots of white space. So I'm confused with what the dimension coordinates really are. Are they not pixels? I want a nice crisp image. By the way I found I could only get the images to appear if I used the flickr option.
Any help would be appreciated. thanks.
2) Script URL (on DD): http://www.dynamicdrive.com/forums/newthread.php?do=newthread&f=2
var mygallery=new simpleGallery({
wrapperid: "simplegallery",
dimensions: [402, 285],
3) Describe problem: I'm using a WordPress theme that uses simplegallery. I'm trying to customize it a little. The online help says:
"dimensions": Should be set to the width and height of your images, which are assumed to all be the same size. Those images that are larger will be partially clipped, while those that are smaller will appear with extra whitespace inside the gallery.
What I'm finding is my image is 320x240 so it appears simplegallery stretches the image to the 402x285 and so it gets grainy and looses quality. I then resized the image to 1600x1124 pixels and it actually now appears in the simplegallery as a smaller image with lots of white space. So I'm confused with what the dimension coordinates really are. Are they not pixels? I want a nice crisp image. By the way I found I could only get the images to appear if I used the flickr option.
Any help would be appreciated. thanks.