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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Chopped off heads?

Thread began 1/22/2011 2:25 pm by Sally | Last modified 8/25/2011 10:24 am by Jason Byrnes | 1149 views | 5 replies |

Sally

Chopped off heads?

I've noticed on some pics, the heads or top of the pics are chopped off. If you look at the thumbnail you see the top of the head, but when it shows the big pic (in Dissolve Slide Show) the head is cut off.

I've attached a file with what the slidshow thumbnail is and what the larger pic is. PG has clearly created a larger pic in which it's cropped the head off.

I can remake the galleries, but I need to know how to avoid it happening again.

Thanks.

Attached Files
045_62c.zip
Sign in to reply to this post

Jason ByrnesWebAssist

power gallery creates some resized images that are cropped and others that are resized proportionally.

see this thread for details:
showpost.php?p=36751&postcount=2

in the gallery index.php file, there is a line similar to:
$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=62c&full=782c'));

this is setting it to use the 62c image for the thumbnail and the 782c image for the large one.

you can change that to:
$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=62c&full=782p'));

to set it to use the proportional image instead of the cropped image.

Sign in to reply to this post

Sally

Oh that was easy! I thought I'd have to redo them all. Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Spionred

My have a similar problem. My large image looks fine but the thumb crops each side.

I though it might be a relative size issue so I resized the tumbs so the large image is 600x450 and the thumbs are 175x131 and changed the code based on what you suggested above to:

//process gallery
$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=175p&full=600p'));
?>
.
.
.
.
<div class="thumbs" style="text-align:center;">
<?php if(sizeof($gallery['images']) <= 0) { ?>
<div class="no-images">no images</div>
<?php } ?>
<?php
$random = rand(0, 10000);
for($i = 0; $i < sizeof($gallery['images']); $i++) {
echo '<a href="' . $gallery['images'][$i]['fullsize']['url'] . '" rel="lightbox-pg' . $random . '" name="<strong>' . str_replace('"', '\"', $gallery['images'][$i]['title']) . (strlen($gallery['images'][$i]['title']) > 0 ? ':' : '') . '</strong> ' . str_replace('"', '\"', $gallery['images'][$i]['description']) . '"><img alt="" title="' . $i . '##' . str_replace('"', '\"', $gallery['images'][$i]['title']) . '##' . str_replace('"', '\"', $gallery['images'][$i]['description']) . '" src="' . $gallery['images'][$i]['thumb']['url'] . '" width="175px" height="131px" alt="test" /></a>';
}
?>
</div>



now the thumb wont show at all.

if you go to footware.php you will see what's happening.

Any help would be very much appreciated.

Cheers,
Kevin.

Sign in to reply to this post

Jason ByrnesWebAssist

my recommendation of code change was based on image sizes automatically created by power gallery, power gallery does not create a 175p image by default.

See the following thread for details on adding a custom image size:
showpost.php?p=36751&postcount=2

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...