Imagecache Profiles
Last modified: February 6, 2009 - 16:28
Imagecache_Profiles module allows you to set user profile pictures that are consistent throughout your site and allows avatars on the user profile pages to be a different size.
Part 1. Imagecache Preset Example
These options here as an example, your settings can vary.
- Download, install and enable the ImageCache module
- Go to Administer › Site building › Imagecache. Click "Add New Preset"
- Create two new ImageCache preset with the following settings:
- preset namespace: user_image_default
- select "Add Scale and Crop" from the New Actions fieldgroup
- set weight to 0
- set width and height to 100
- Update Actions
- preset namespace: user_image_large
- select "Add Scale and Crop" from the New Actions fieldgroup
- set weight to 0
- set width and height to 200
- Update Actions
Part 2. Installation Instructions
- Download, install and enable the ImageCache_Profiles module
- Enable user pictures at admin/user/settings
- If setting a default picture it should use a relative url path (ex. sites/default/files/default-picture.png)
- Set up Picture settings at bottm of User Settings page:
- Set picture maximum dimensions to 1600x1400
- Set picture maximum file size to 1024
- Set your picture guidelines text to: "Photo must be larger than 200x200 pixels." To prevent upscaling, these dimensions should be the dimensions of your largest preset.
- Select the ImageCache presets (added in Part 1 above):
- Profile picture preset: Select the ImageCache preset to set the user picture size on a user's profile page
- Comment picture preset: Select the ImageCache preset to set the user picture size within comments
- Default picture preset: Select the ImageCache preset to set the default user picture size throughout the site
- To prevent upscaling, these dimensions should be the dimensions of your largest preset (in this example it is 200):
- Set picture minimum width in pixels: 200
- Set picture minimum height in pixels: 200
- Save configuration
Adding a profile picture to panels
If you and want to add an Imagecache profile picture to a profile panel page (including the one that comes default from Advanced Profile Kit module) , then you can add it very easily by editing a panel page (e.g. profile), go to content tab, then add a pane to one of the regions, then choose the User picure. and SAVE! There should now be a picture of the user, resized to your profile imagecache profile preset.

How does this module manage
How does this module manage anon images?
handled in drupal core by default
By default Drupal comes with support for user images, and the ability to select "Default picture: " where you specify the path to the default image.
This module *only* handles resizing the images. So it will resize the user pictures, and whatever default picture you have.
Go to admin/user/settings and check out the options there by default :)
Best of luck,
-h
- Tips on Giving effective feedback in the forums
On Part 2, step 5: "Select
On Part 2, step 5: "Select the ImageCache presets..."
Where exactly I select the ImageCache presets? I looked everywhere, but could not find it, at least was not obvious to me.
Thank you
@fxarte
You will need to go to admin/user/settings for that. It should be below 'Picture guidelines' textarea
Web Developer
BrightLemon Limited, London
http://www.brightlemon.com
Select the ImageCache presets
sorry, did wrong posting here... please delete
ImageCache presets
I set up my presets as you described above. I then went to /user/settings and selected an ImageCache preset for "Profile picture preset", "Comment picture preset" and "Default picture preset". Doing this however caused my profile image not to be recognized and, instead, replaced with a small question mark in a box. If I select to have no ImageCache preset (the blank option in the drop down) for these settings then my profile picture appears fine and as it should. Everything up until this point seems to be working (the imposed minimum size limits etc). I can't figure out what could be going wrong, everything seems to be set up as per the above instructions.
I would really appreciate some advice, I'm looking forward to being able to fully use this module.
Fixed
Looking at the documentation for Imagecache, "it requires an image manipulation library such as GD2 or ImageMagick and requires clean urls to be enabled." I don't have the libraries and I don't have the correct permissions on my server to enable clean urls. Please correct me if these things shouldn't matter when using the methods described above, but if they are an issue then consider this problem fixed :). Thanks any way.