Results 1 to 3 of 3

Thread: simplegallery image dimension issue

  1. #1
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default simplegallery image dimension issue

    1) Script Title: simplegallery image dimension issue

    2) Script URL (on DD): http://www.dynamicdrive.com/forums/n...=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. #2
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image quality issue

    Does anyone have any ideas about this quality issue? I tried another approach and replaced the Flickr images with the original images which are high quality images. The images display and fit the simplegallery objects size, but even with these very high quality images they are all grainy - the quality is lost. There is an image on the header that is behind this simplegallery widget that looks great which is the same image size as these other images I'm using with simplegallery.

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm the script doesn't actually resize any of the images it shows, despite what you set in the "dimensions" property"

    Code:
    dimensions: [402, 285],
    The above just affects the dimensions of the gallery itself, with images larger than that being partially hidden. Please post a link to the page on your site that contains the problematic script so we can check it out.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •