User pictures (or avatars) or pictures are part of the user.module, not the profile module.
Enable user pictures for Drupal 7
- Navigate to Configuration > People > Account settings.
- In the Personalization settings, select Enable user pictures.
- For Picture directory type pictures
- Under Picture display style, select thumbnail (you can change the size settings
- Click "Save configuration".
Next, ensure your user pictures display in your theme. These are enabled by default in Bartik, the default theme of Drupal 7 , so you may have to check this with any new theme you add.
- Go to Appearance and click "Settings" for the theme you have enabled as default.
- In the Toggle display settings, select User pictures in posts and/or User pictures in comments.
- Click "Save configuration".
Enable user pictures in Drupal 6 or earlier
- Navigate to the administration area for user module configuration page under Administer > User Management > User Settings. In Drupal 4.7 this screen is available from administer > settings > users.
- In the Pictures settings, for Picture support, select Enabled (Enable picture support.)
- You must set the directory where you want the images to be stored. Make sure the directory is created and make sure you have that directory has write permissions (that is, chmod to 755).
- Click "Save Configuration"
Once the pictures are enabled you must also make sure to change your settings to display them:
- Go to Administer > Site Building > Themes and click the "Configure" tab to change the setting for all of your themes. (To only make the change to one theme, click the "configure" link next to your-theme-name instead.)
- Check the boxes for "User pictures in posts" or/and "User pictures in comments" as appropriate.
- Make sure the check box for each content type you wish to use avatars is checked in the "Display post information on" section.
- Click "Save Configuration"
Displaying avatar images (in theme)
In the node.tpl.php, use "$node->picture" to get the URL of the image.
Moving images
The database stores the name of the directory you set in Step #3. If you want to move your images to a new directory you must complete the following steps:
- Update the directory identified in the previous section.
- Move existing images to the new directory.
- Update the database manually to use the new directory location. In Drupal 6.x the images are stored in the table
users
.