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.