[support] User Pictures Not Resized With Imagecache
    Steve Edwards 
    killshot91 at comcast.net
       
    Sun Feb 10 07:54:35 UTC 2008
    
    
  
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
    
    
More information about the support
mailing list