folderblog
What is folderblog?
Folderblog is a free PHP script that automatically displays the images placed in a given directory, no database needed. It can be used as a blog or gallery — and anything in between.

» demo blog   » learn more   » download now

Discussion
FB3: changing size of main image(back to index)
i switched to fb3 and i can't get the size of the image right... http://therohan.com/fb.php

i noticed in fb.php there is a call to getimagesize, do i need the GD library for this? where can i change the size of the image?
posted by rohan on 12 Jul 05 at 3:38 PM
You can resize images using the GD library (imagecopyresampled) -- it's the same function used to resize thumbs.

Folderblog doesn't resize main images at all -- to resize a 3, 4, 5, 6 megapixel image would max out the memory limit of many servers, and it's just not worth it to have people uploading a 1 meg 5-megapixel file just to have the script resize it down to a manageable size.
posted by donald on 12 Jul 05 at 4:47 PM
i didnt really want to resize images, i guess my first post was a bit misleading. i don't have GD support anyway.

my images are 750x500 pixels but fb3 draws a border that isnt that big... http://therohan.com/fb.php what i actually want to do is make the border larger.
posted by rohan on 13 Jul 05 at 10:05 AM
That's easy to do. In your style.css file, find the line that says
img {border: 1px solid #666; 
margin: 0px; }
and change the 1px to 10px or 20px or however wide you want the border to be.
posted by donald on 13 Jul 05 at 11:56 AM
okay i'm having trouble explaining myself...

i dont want to change the width of the border....i want to change the size of it so that it encloses my images, if you take a look at http://therohan.com/fb.php you'll get an idea. the grey border doesnt enclose the whole image and overlaps the categories text.

thanks for your help!
posted by rohan on 14 Jul 05 at 12:31 PM
Sorry for the confusion. In template_style.css, bump up the .mainimage width and .thumbs width to 800px or so:
.mainimage { 
text-align: center;
width: 700px;
background-color: #eee;
-moz-border-radius: 10px;
}
.thumbs {
width: 700px;
}
posted by donald on 14 Jul 05 at 3:32 PM
Yeah, me too...

To sorta echo rohan's point, is there an 'easy' way to duplicate my slightly customized basic template and slightly customized style.css running under fb v 2.02 to fb 3.0x ?

I've started fiddling with fb 3.0 and hope to have it look and feel the same as my current fb 2.02 install asap.

http://www.Photopia.TYO.ca/fb3/fb.php
http://www.Photopia.TYO.ca
posted by HiMY [photopia] on 14 Jul 05 at 3:35 PM
great! that worked, thankyou!
posted by rohan on 15 Jul 05 at 4:11 PM
Post a Reply:

Name:    Remember me
URL:    
(include http:// or mailto:)
(back to index)