EnglishHi rvelices,
In [Forum, post 127614 by rvelices in topic 18755] [multisize] AJAX load for thumbnails I'm not sure you replied to my question "how to I know which size is the default size?".
As we have changed the default dimensions for sizes, and that size L was 648x576 and is now 1008x756, this is now far too big for a default size. I would like to switch the default size to size M instead (which is currently 792x594 by default).
Offline
plg wrote:
As we have changed the default dimensions for sizes, and that size L was 648x576 and is now 1008x756, this is now far too big for a default size. I would like to switch the default size to size M instead (which is currently 792x594 by default).
OK, but please put the defaiult size in config_default
Offline
Actually, I don't understand what in the code makes size L as default size. I search, I read, I can't find :-/
Offline
plg wrote:
Actually, I don't understand what in the code makes size L as default size. I search, I read, I can't find :-/
picture.php function default_picture_content
$deriv_type = pwg_get_session_var('picture_deriv', IMG_LARGE);
Offline
Perfect, I was searching in include/derivative_std_params.inc.php instead of performing a grep on IMG_LARGE on all *.php files!
Are you ok for this new parameter in include/config_defaults.inc.php?
// 'small', 'medium' or 'large' $conf['derivative_default_size'] = 'medium';
and this change in picture.php?
$deriv_type = pwg_get_session_var('picture_deriv', $conf['derivative_default_size']);(twice on the page)
We can't use the constants defined in include/derivative_std_params.inc.php.
Offline
plg wrote:
Are you ok for this new parameter in include/config_defaults.inc.php?
perfect
Offline
[Bugtracker, feature 2633, fixed] [multiple size] ability to select default size and [Subversion] r15299
Offline