[sip-comm-dev] Question about avatar and resizing


#1

Hello,

I'm currently working on implementing the work of my GSoC student in
the trunk (and by the way improving it). The project was about the
possibility to set an avatar for the user.
You can more informations about the project on the website :
http://www.sip-communicator.org/index.php/GSOC2009/DudeCoMyPhoto .

I have a question about the resizing of the images. The current
project have a tool to edit the image (resizing and select a specific
part) and it works well for images larger than the clipping zone. But
for smaller images (the clip size is 96x96), the edit tool just resize
it to the clip size (it take the smaller dimension, set the value to
96 and resize the image according to it). If the image is really
smaller the result is awful.

I've attached two screenshots to show the results.
Image 1 (edittool_big) shows the edit tool with a big image (375x500)
Image 2 (edittool_small) shows the edit tool with a small image
(60x80) which is attached.

The two image are the the same image but the smaller has been resized
with The Gimp. As you can see the small image resized is blurred (the
original is attached to the mail).

Here is my questions :
Should I leave the resizing ?
If yes, is resing on the smaller dimension a good idea ?
If no, center the image in the clipper ? any other idea ?

The edit tool is clearly inspired of the ImagePicker from Apple. Can
someone with a Mac tell me how they handle this problem ?

Cheers,

Damien


#2

Hello Damien,

Damien Roth a écrit :

Here is my questions :
Should I leave the resizing ?
  

To my opinion, I would say yes. I would rather see a tiny avatar than a blurred one,
which wouldn't be as much visible.

The edit tool is clearly inspired of the ImagePicker from Apple. Can
someone with a Mac tell me how they handle this problem ?

Apparently, there is no resizing with the ImagePicker (see attached), but then, the IM
software may do it regarding to the visible area you've set.

You can set a 1x1px avatar image in the ImagePicker (this is exgerated but real), and sets
the bigger area available for the avatar, it won't be resized.
Moreover, it allows you to set the avatar wherever you want, even all outside the visible area.

Hope it answers your question!

Regards,
Valentin