fanningert / kirbycms-extension-image

KirbyCMS Extension - Image Extended
http://www.fanninger.at/thomas/works/kirbycms-extension-image
GNU General Public License v3.0
28 stars 2 forks source link

Image profiles support #4

Closed fanningert closed 9 years ago

fanningert commented 9 years ago

Possible to define in the config.php some image profiles.

Example:

$img_profiles = array();
$img_profiles['template'] = {
  'width' => 200,
  'height' => 200,
  'resize' => 'crop',
  'grayscale' => true,
  ...
};
c::set('kirby.extension.imageext.profiles', $img_profiles);
c::set('kirby.extension.imageext.default_profile', 'template');

Usage of different profiles with the tag and overwrite some profile settings.

(imagext: picture.jpg profile: template blur: true)
fanningert commented 9 years ago

Profiles support is included in version 0.9. Only the default profile parameter is at the moment not implemented.

fanningert commented 9 years ago

Is now working