
You know what drives designers crazy? When you turn their beautiful (stock photo- and lorem ipsum-laden) comps into a community with users who've been empowered to color outside the lines (or in this case, outside the designer's painstakingly thought-out grid).
Case in point, we had a client who commissioned us to implement a pretty straight-forward Drupal design. The design became problematic when we realized users were able to upload all manor of mugshots (tall, skinny, short, stubby, or square) as long as they fit within the 85px by 85px max size restriction we set for picture uploads.
Because of these odd-sized avatars, the working community looked a little "rough". Definitely not as precise and aligned as the designer's comp.
That may not bother you but it really bugs designers (and brand-conscious clients).
So we turned to the ImageCache module.
According to the project page, "ImageCache is a dynamic image derivative generator. It allows you to assign a set of image manipulation functions to a preset and generate images on the fly based on the preset name."
Here's what that means to me:




Nate Haug wrote a very nice tutorial to get you started with ImageCache.
Nate also wrote a complimentary (and indispensable) module that, among other things, adds validation functions to the picture upload form to make sure your users are indeed uploading photos that meet the minimum size requirements you've set. It also does some magic to flush old images from the cache if a user decides to change their photo and upload another. You can get the imagecache_profiles module here.
Comments
Post new comment