So, designkit runs whatever image that is output through a variable (e.g. $logo) through the imagecache method (determined by designkit[image] in .info file), then outputs that new altered image, which is sweet...
Since this method has already figured out the process of running specific items through imagecache, it would be awesome if it could be extended in a way that enabled the themer to actually create and/or override imagecache presets from the theme layer.
e.g.
designkit[image][thumb_large_square][imagecache] = "imagecache_scale:100x100"
designkit[image][thumb_small][imagecache] = "imagecache_scale:65x100%"
designkit[image][thumb_small_landscape][imagecache] = "imagecache_scale:65x36"
designkit[image][thumb_small_square][imagecache] = "imagecache_scale:65x65"
designkit[image][thumb_square][imagecache] = "imagecache_scale:80x80"
designkit[image][thumb_tiny][imagecache] = "imagecache_scale:40x100%"
designkit[image][thumb_tiny_landscape][imagecache] = "imagecache_scale:40x22"
designkit[image][thumb_tiny_square][imagecache] = "imagecache_scale:50x50"
(where [thumb_large_square] would actually be the name of the imagecache preset to set (or override the current thumb_large_square preset dimensions and crop/scale methods))
Since it isn't possible to change dimensions through code after install, this could be very useful. Hope that makes sense. Anywho, thanks for the module =]
Comments
Comment #1
yhahn commentedGreat idea. Will look into it.
Comment #2
danmasq commentedTake a look at http://drupal.org/project/dcss
dcss_imagecache()in dcss.inc =]Comment #3
kharbat commentedi'm trying to use percentage inside the action just like "imagecache_scale:40x100%" but it's not working .. i wonder what's wrong
Comment #4
mrfelton commentedWould love to see this feature. See http://www.koumbit.org/en/articles/theme-specific-image-styles-equivelen...
Comment #5
avpadernoI am closing this issue, since it is for a Drupal version that is no longer supported. Please re-open this issue if it is relevant for a project release for a supported Drupal version.