After sending the first message, I did some poking around and realized that the files/imagecache directory has not been created. If I understand correctly from the article (and from looking at other sites where I've used imagecache), this directory should be created, and that's where the resized and cached pictures would be stored. Anybody know why the directory wouldn't be created?
Thanks.
Steve
-------- Original Message -------- Subject: User Pictures Not Resized With Imagecache Date: Sat, 09 Feb 2008 23:54:35 -0800 From: Steve Edwards killshot91@comcast.net To: support@drupal.org
I'm attempting to follow Nate Haug's instructions in his article at lullabot.com (http://www.lullabot.com/articles/imagecache_example_user_profile_pictures) on using ImageCache to modify user profile pictures. (as a note, during the course of the article, he provides code for a module called ImageCache Profiles that is now available on the modules download page). I've followed all the instructions in the article, but when I go to my user page, the photo is displayed in full size. Here's what I've done:
1) Enabled user pictures in user settings at admin/user/settings. 2) Installed and enabled imagecache, imageapi, and imagecache_profiles modules 3) Created 'thumb' preset (scale an crop to 100 x 100) as prescribed at admin/build/imagecache 4) Set "Set user profile picture size with this ImageCache preset" and "Set default user picture size with this ImageCache preset" fields at admin/user/settings both to 'thumb'. 5) Uploaded user picture at user/x/edit (where x is my user id).
In addition, when I go to the Edit page, I get these errors:
* warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/campfire/public_html/members/includes/image.inc on line 238. * warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/campfire/public_html/members/includes/image.inc on line 246. * warning: imagejpeg(): supplied argument is not a valid Image resource in /home/campfire/public_html/members/includes/image.inc on line 321. * warning: imagedestroy(): supplied argument is not a valid Image resource in /home/campfire/public_html/members/includes/image.inc on line 249.
Can anyone tell if I'm missing a step somewhere?
Thanks.
Steve