• wondering what the issue might be here. I’ve set my custom thumbnail sizes to 300×244, and regenerated them about 4 times. I’ve cleared all of my image cache before regenerating thumbnails.

    I can’t get my images to generate an image size inside of the dynamic folder that is larger than 91×86.

    What am I doing wrong? The gallery thumbnails are completely pixelated and look very ugly on the front end.

    What is this dynamic folder and why is it not generating the proper thumbnail sizes?

    Thanks

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @evan Herman – Sorry to read you are having issues with modifying thumbnail sizes but unfortunately there is not very much to go on in your description.

    Perhaps a link to the page/post where the “wrong” sized thumbnail is being displayed?

    – Cais.

    Thread Starter Evan Herman

    (@eherman24)

    Hi Photocrati,

    I’ve altered a function in one of the core plugin files located in adapter.nextgen_basic_album_controller.php :

    function prepare_legacy_album_params($displayed_gallery, $params)
        {
            $image_mapper = $this->object->get_registry()->get_utility('I_Image_Mapper');
            $storage      = $this->object->get_registry()->get_utility('I_Gallery_Storage');
            $image_gen    = $this->object->get_registry()->get_utility('I_Dynamic_Thumbnails_Manager');
    
            if (empty($displayed_gallery->display_settings['override_thumbnail_settings']))
            {
                // legacy templates expect these dimensions
                $image_gen_params = array(
                    'width'  => 91,
                    'height' => 68,
                    'crop'   => TRUE
                );
            }
            else {
                // use settings requested by user
                $image_gen_params = array(
                    'width'     => $displayed_gallery->display_settings['thumbnail_width'],
                    'height'    => $displayed_gallery->display_settings['thumbnail_height'],
                    'quality'   => isset($displayed_gallery->display_settings['thumbnail_quality']) ? $displayed_gallery->display_settings['thumbnail_quality'] : 100,
                    'crop'      => isset($displayed_gallery->display_settings['thumbnail_crop']) ? $displayed_gallery->display_settings['thumbnail_crop'] : NULL,
                    'watermark' => isset($displayed_gallery->display_settings['thumbnail_watermark']) ? $displayed_gallery->display_settings['thumbnail_watermark'] : NULL
                );
            }

    I can see that the thumbnail images are rendered at 91×68, unless $displayed_gallery->display_settings is set on the custom gallery.

    I’m wondering how I can set custom display settings. I’ve tried altering settings in both the gallery settings or other options, but no matter what settings I adjust it appears that the display settings are never updated and the default, hard coded values are used.

    I can’t provide a link as the site is currently sitting on a localhost development server, but in a breif description the gallery thumbnail being used is 91×68 px , so it’s pixelated.

    I guess I’ll play around with the settings and the core file to see what I can come up with.

    Plugin Contributor photocrati

    (@photocrati)

    @evan Herman – The modifications you are making to the plugin core files appear very similar to a very old issue with NextGEN Gallery that was resolved completely and should not be necessary with current releases of NextGEN Gallery.

    What version are you working with?

    – Cais.

    Thread Starter Evan Herman

    (@eherman24)

    Hi Cais,

    thanks for the response.

    We are using v2.0.66.33.

    I’ve tried changing the value of the settings in ‘Other Options > Thumbnail Options’. I added a custom thumbnail size in ‘Default thumbnail dimensions:’ and in the Size list option.

    After that I clear my image cache, and go into ‘Manage Galleries’, select my galleries and click ‘Create New Thumbnails’. After the thumbnails are re-created, nothing seems to change on the front end.

    In the ‘Dynamic’ folder (where the custom preview images are generated) I can only ever find a 91×68 image. The new image size never gets generated, and the front end displays the 91×68 thumbnail.

    It seems that the code in what I have mentioned in my previous post doesn’t actually get set, and regardless the default gallery thumbnail size is used.

    Maybe I’m just missing something, or doing something wrong on my end.

    Thanks,
    Evan

    Plugin Contributor photocrati

    (@photocrati)

    @evan Herman – Can you point to the specific URL of the display where this issue is present?

    – Cais.

    Thread Starter Evan Herman

    (@eherman24)

    Unfortunately not, the site is still being developed on a localhost install.

    It seems that the only work around is to modify core plugin files, which as you know is not ideal.

    Plugin Contributor photocrati

    (@photocrati)

    @evan Herman – Do you have a remote test server you can work with? Aside from ensuring the problem persists, or does not … it will also allow other to offer any suggestions for additional troubleshooting.

    Thanks!

    – Cais.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Difficult time re-generating gallery preview image….’ is closed to new replies.