e2interactive forums » Sample of (E)2 Photo Gallery

Search:

Change image size

(3 posts)

  1. i am sure I could go through all my images and photoshop them to a smaller size, but i am wondering if I can change the size in the script. The thumbnails looke like they are displayed about 100x100 pixels, i would rather they be about 60x60. And i would like to make the images smaller that appear, i am not sure if the code can restrict the image display for the large photos, or it is just deplaying them at their natural/oringal size. I dont want them to be cut off or stretched so i would like to evenly resize the larger photos, possibly reduce their sizes by 20%. I have a lot so it would be nice not having to do this manually using photoshop, if i can get the gallery to display them to a maximum %, like 100% or adjust all images to 80% of their original size.

    Any help would be great, the thumbnails i would like to at least make smaller if possible. The reason is my site that i have designed will be using the gallery in an IFrame so it calls for scrolling a lot if everything is larger then it needs to be.

    Thanks.

    Posted 10 months ago #
  2. Rogue,

    I can't help with your image size issue (i manually resize my images), but i would recommend modifying the gallery page (removing body and html tags etc) and including it with the php include function. It will be far more browser and SEO friendly than using an iFrame. I used this method on my site inspiredgraphix.com.au/photography.php

    BTW., just had a quick look, and i think if you modify lines 208 & 209 of the uploaders index.php

    $handle->image_y = 600;
    $handle->image_x = 600;

    to the values that you want, and 231 & 232

    $handle->image_y = 100;
    $handle->image_x = 100;

    that will sort out the thumbnails too. I haven't tried it, but give it a shot :D

    Rob

    Posted 10 months ago #
  3. Actually after i posted this i did just as you said, modifed the uploaders index. The only thing is it you modify the script it will only resize new uploades because the script is written to resize them at the time of uploading it wont change the display of the images that are currently there.

    Thankfully i was only testing so I didnt have many images up already, so i changed the index page to 60x60 for thumbnails, and 300x300 for the gallery photo. It seems to have worked just fine.

    Posted 10 months ago #

RSS feed for this topic

Reply

You must log in to post.