If Preset module

If preset provides a new imagecache preset to render convert images based on its dimensions.

Also, allows to do not perform an action if the conditions are not met. So, for example you can scale and crop an image only if the ratio (ratio = width/height) is bigger than 1.5.

The current actions that this imagecache preset provides are:

  • Scale
  • Scale and crop
  • Do nothing

All the information is storaged in one preset. Therefore, you don't need to create multiple presets to scale an horizontal or vertical image.

Downloads

Version Downloads Date Links
6.x-1.0-beta1 tar.gz (8.53 KB) | zip (9.15 KB) 2011-Mar-02 Notes

Project Information


Maintainers for If Preset

  • dagmar - 2 commits
    last: 1 year ago, first: 1 year ago

Issues for If Preset

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports