Forums

JJ NextGen JQuery Carousel
Auto crop thumbnail? (3 posts)

  1. ianmcabee
    Member
    Posted 6 months ago #

    Is there any way to crop the thumbnails so they doesn't stretch the image based on the dimensions set?

    http://wordpress.org/extend/plugins/jj-nextgen-jquery-carousel/

  2. unwohltaeter
    Member
    Posted 1 month ago #

    I used TimThumb to get around this problem.
    Upload TimThumb in your theme directory and edit jj_ngg_jquery_carousel.php (plugin-directory -> includes).

    Search for this:
    $output .= "<img src=\"" . $image->imageURL . "\" " . $image_description . $width_d . $height_d . " border=\"0\" />";

    Replace with:
    $output .= "<a href=\"" . $image->imageURL . "\"><img src=\"" . get_bloginfo('template_directory') . "/timthumb.php?h=" . $height . "&w=" . $width . "&src=" . $image->imageURL . "\" " . $image_description . $width_d . $height_d . " border=\"0\" /></a>";

  3. abozabra
    Member
    Posted 2 weeks ago #

    'unwohltaeter' Thank you!

Reply

You must log in to post.

About this Plugin

About this Topic