Created
September 25, 2012 13:22
-
-
Save nucklearproject/3781785 to your computer and use it in GitHub Desktop.
Drupal imagecache, resize image only if large with imagacache_customactions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imagecache, imagacache_customactions example | |
if($image->info['width'] < 500 || $image->info['height'] < 500 ){ | |
//imageapi_image_scale($image, $width = 500 ); | |
return $image; | |
} else { | |
imageapi_image_scale($image, $width = 500 ); | |
return $image; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment