PDA

View Full Version : Images Wont Crop


tonygmg362159
04-20-2010, 11:36 AM
I am trying to set a dimension in what I want the image sizes to be in the grid_fullsize gallery and in the index page i am changing the line with this code

$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=62c&full=782p'));


If i set that to anything less than it is at the moment my images wont display at all?

does anyone have any idea's?

A page can be seen here at the moment the image is larger than the gallery

http://www.ndwgdc.co.uk/Mainwebsite/Image_Gallery.php

Jason Byrnes
04-21-2010, 07:48 AM
when images are uploaded, they are resized based on the settings in the admin/common/properties.php file.


there are two types of images settings, proportional an cropped. the sizes for these are set in the following arrays:


$GLOBALS['resize_proportional'] = array(
array('w' => 1024, 'h' => 768, 'watermark' => true),
array('w' => 782, 'h' => 481, 'watermark' => true),
array('w' => 163, 'h' => 92)
);
$GLOBALS['resize_cropped'] = array(
array('w' => 62, 'h' => 62),
array('w' => 132, 'h' => 140),
array('w' => 102, 'h' => 102),
array('w' => 42, 'h' => 42),
array('w' => 782, 'h' => 481, 'watermark' => true),
array('w' => 999, 'h' => 260, 'watermark' => true)
);



if you wish to use a different image size, you will need to add it to these arrays, then re import your images.

tonygmg362159
04-21-2010, 03:32 PM
Thanks again Jason worked fine once i changed the global file. Makes me feel like a right gorm now!!