I want to resize the uploaded avatars because of the user are uloading their pictures directly from their cam. in profile pages i am using image cache but in the avatar approval list the pictures are in orginal size (3000 mal 2000) and that brokes everything.

is their any possibillity to resize the images by image cache?

CommentFileSizeAuthor
#7 avatarapproval.tar_.gz28.58 KBmarinex
#3 change.diff1.51 KBmarinex

Comments

dalad’s picture

You mean you let users occupy something like 1MB on your server for each of their avatars? Quite expensive, don't you think? Have you tried setting the maximum size of uploaded user pictures on the admin/user/settings page, "picture support" section?

dalad’s picture

Status: Active » Closed (won't fix)
marinex’s picture

StatusFileSize
new1.51 KB

Hi I thing that it is good feature :-) I created patch. It is like Avatar selection module. It add dropdown box, where you can select preset for Approval list. It is for the latest dev version. This patch is for avatarapproval.pages.inc.

;-) Marinex

dalad’s picture

Status: Closed (won't fix) » Needs review

I'll see what I can do to integrate it as soon as I have time.
Thanks for your contribution

dalad’s picture

Hi marinex. It seems that the patch is not the only thing that needs to be applied in order to make things work. At the moment I'm trying to get avatars cached by imagecache but there are no files in the preset directory, only imagecache_sample.png

I would be grateful if you can make a list of all the steps that I need to follow in order to make imagecache work with avatarapproval in a clean environment (meaning: a new drupal installation, not your test installation)

Thank you

dalad’s picture

Status: Needs review » Closed (won't fix)
marinex’s picture

StatusFileSize
new28.58 KB

Hi Dalad Sorry for long delay.

I attach my Avatar Approval module.

dalad’s picture

Status: Closed (won't fix) » Needs review

thank you, I'll give a look. Reopening this issue...

R2-D8’s picture

I've always been, and still do, using imagecache_profiles to force the dimensions of uploaded user pictures. And through core limits i limit file dimension and size anyway.

The 7.x version of ImageCache Profiles still version needs a little work.
I'm looking forward uploading a patch in the corresponding issue thread.