close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Images Wont Crop

Thread began 4/20/2010 2:36 pm by tonygmg362159 | Last modified 4/21/2010 6:32 pm by tonygmg362159 | 799 views | 2 replies |

tonygmg362159

Images Wont Crop

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

Image_Gallery.php

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

tonygmg362159

Thanks again Jason worked fine once i changed the global file. Makes me feel like a right gorm now!!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...