// sizes of pictures (picturewidth values)
// You can add any size you like by adding a new value in the
// $cfg['view_sizes'] array.
// $cfg['view_sizes'][<new index>] = <new width value>
$cfg['view_sizes'][0] = 640;
$cfg['view_sizes'][1] = 800;
$cfg['view_sizes'][2] = 1024;
// default size for picture views (array index from $cfg['view_sizes'])
$cfg['default_view'] = 0;
-----------------------------
how about a value you can enter for origianl size?
It may seem like an easy solution to resize the pics to match the width of one of the view_sizes, but this has been giving me trouble, which leads to suggestion #2:
2. When I set the view_sizes variable to 640 and a picture is in portrait view, instead of landscape, the 480x640 image is resized to 640 x 853. I was using another php image gallery script ( <a href="http://photoframe.sourceforge.net/" target="_blank">http://photoframe.sourceforge.net/</a> ) that allows you to set a "box size" that the picture will be no bigger than. It resizes the longer side to 640 (width or height). It resizes the shorter side, too.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
Had two suggestions.
1. With regards to:
// sizes of pictures (picturewidth values)
// You can add any size you like by adding a new value in the
// $cfg['view_sizes'] array.
// $cfg['view_sizes'][<new index>] = <new width value>
$cfg['view_sizes'][0] = 640;
$cfg['view_sizes'][1] = 800;
$cfg['view_sizes'][2] = 1024;
// default size for picture views (array index from $cfg['view_sizes'])
$cfg['default_view'] = 0;
-----------------------------
how about a value you can enter for origianl size?
It may seem like an easy solution to resize the pics to match the width of one of the view_sizes, but this has been giving me trouble, which leads to suggestion #2:
2. When I set the view_sizes variable to 640 and a picture is in portrait view, instead of landscape, the 480x640 image is resized to 640 x 853. I was using another php image gallery script ( <a href="http://photoframe.sourceforge.net/" target="_blank">http://photoframe.sourceforge.net/</a> ) that allows you to set a "box size" that the picture will be no bigger than. It resizes the longer side to 640 (width or height). It resizes the shorter side, too.
Oops, crappy posting job, sorry! :(