Viewing 7 replies - 1 through 7 (of 7 total)
  • Yes, same thing here:

    http://starkart.ch/

    In “Options”>”Thumbnail” > The “Set fix dimension” box is unchecked- “Ignore the aspect ratio, no portrait thumbnails”
    still the Nextgen Widget is showing them in fix dimensions??

    Anyone have an idea?

    starkart

    (@starkart)

    Still an issue… no solving in sight?

    Thread Starter fouinix

    (@fouinix)

    No issue 🙁

    Gerald Cox

    (@coupland)

    Ok, this has driven me crazy for months. I finally tracked down the problem. It seems to be in the widgets.php file under the nextgen widgets folder. There, I found this code:

    if ( $instance[‘show’] == ‘original’ )
    $out .= ‘<img src=”‘ . get_option (‘siteurl’) . ‘/’ . ‘index.php?callback=image&pid=’.$image->pid.’&width=’.$instance[‘width’].’&height=’.$instance[‘height’]. ‘” title=”‘.$alttext.'” alt=”‘.$alttext.'” />’;
    else
    $out .= ‘<img src=”‘.$image->thumbURL.'” width=”‘.$instance[‘width’].'” height=”‘.$instance[‘height’].'” title=”‘.$alttext.'” alt=”‘.$alttext.'” />’;

    From my elementary programming experience, this appears to look for the Fixed Dimension value and either pull static heights and widths set in the options or pull the actual thumbnail height and widths information. I do not know enough about how the data is stored to actually permanently fix this in the code, but I just changed

    if ( $instance[‘show’] == ‘original’ )

    to

    if ( $instance[‘show’] <> ‘original’ )

    and that was good enough for me. I’m assuming that the <> condition will never be met so this will hardcode the php to respect ratio.

    My thumbnails now show the correct ratio without distortion and stretching. I would appreciate any feedback from someone that can figure out a permanent fix for this beyond my workaround. Either way, I’m happy for now. 🙂

    I hope this helps.

    Thread Starter fouinix

    (@fouinix)

    It works, but not very well. Only 3 pictures appears (In the config I ask 4 pictures). I have the same problem if I choose 6 pictures, only 3 are shown.

    Thread Starter fouinix

    (@fouinix)

    I have error 500 in my log file :
    “GET /index.php?callback=image&pid=23&width=150&height=150 HTTP/1.1” 500

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: NextGEN Gallery] Widgzt thumbnail doesn’t respect the ratio’ is closed to new replies.