• Hey all.

    I’ve been using the NextGen Gallery plugin for quite a while now, but I’ve noticed some weird behaviour when I’m using the singlepic feature. Whenever I use this feature, for example like this:

    [singlepic id=165 w=320 h=240 float=none]

    The image displays (original size 336 x 336) as 240 x 240. I think that what happens is that it resizes to the smallest size (being 240px), but I want it to crop so it fits in 320 x 240.

    Is this possible? Am I doing something wrong?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • in nggfunctions.php in function nggSinglePicture find next line:

    // clean mode if needed
        $mode = ( preg_match('/(web20|watermark)/i', $mode) ) ? $mode : '';

    and change it to:

    // clean mode if needed
        $mode = ( preg_match('/(web20|watermark<strong>|crop</strong>)/i', $mode) ) ? $mode : '';

    then use [singlepic id=165 w=320 h=240 mode=crop float=none]

    I am sorry in previous message i added html tags in code.

    and change it to:

    // clean mode if needed
        $mode = ( preg_match('/(web20|watermark|crop)/i', $mode) ) ? $mode : '';
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Singlepic Function not cropping images correctly’ is closed to new replies.