function juicebox_image_default_styles in Juicebox HTML5 Responsive Image Galleries 7.2
Implements hook_image_default_styles().
File
- ./
juicebox.module, line 129 - Provides Drupal integration with the Juicebox library. This file contains the relevant Drupal hook implementations and callbacks.
Code
function juicebox_image_default_styles() {
$styles = array();
// Add suggested styles for multi-size support.
$styles['juicebox_small'] = array(
'label' => 'Juicebox small (800x800)',
'effects' => array(
array(
'name' => 'image_scale',
'data' => array(
'width' => 800,
'height' => 800,
'upscale' => FALSE,
),
'weight' => 0,
),
),
);
$styles['juicebox_medium'] = array(
'label' => 'Juicebox medium (1024x1024)',
'effects' => array(
array(
'name' => 'image_scale',
'data' => array(
'width' => 1024,
'height' => 1024,
'upscale' => FALSE,
),
'weight' => 0,
),
),
);
$styles['juicebox_large'] = array(
'label' => 'Juicebox large (2048x2048)',
'effects' => array(
array(
'name' => 'image_scale',
'data' => array(
'width' => 2048,
'height' => 2048,
'upscale' => FALSE,
),
'weight' => 0,
),
),
);
// Add a default thumbnail style that will fit (without stretching or scaling)
// within the stock Juicebox thumbnail space.
$styles['juicebox_square_thumbnail'] = array(
'label' => 'Juicebox square thumbnail (85x85)',
'effects' => array(
array(
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 85,
'height' => 85,
),
'weight' => 0,
),
),
);
return $styles;
}