[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Inf-IT DAVcl] CardDavMATE contact photo size


Hi Vasyl,

there is a "hidden" configuration option (append it into the config.js)

var globalContactPhotoScaleFactor=1.5;

which says the scale factor of the stored picture, e.g.:
1 = the picture will be resized (if it is bigger than) to the size of the "photo box" (in the CardDavMATE interface)
1.5 (default) = the picture will be resized to the size of 1.5x "photo box" size

so in short: you cannot say the exact size, but you can say: max size = N x the size of the "photo box"

The reason why we downscale the image is that if you upload a 1MB photo then the whole vCard is extremely big
(base64 encoding) and it slows down the processing + also use a ton of network bandwidth (100 contacts with 1MB
base64 encoded photo is an "interesting" experience in the browser :-))).

JM

p.s.: do not forget to execute the cache_update.sh after you change the config.js



> On 20 Nov 2014, at 13:15, Vasyl Olenchenko <olenchenko@xxxxxxxxx> wrote:
> 
> Hi.
> 
> I am using CardDavMATE for some time now (don't remember from which version) and I don't remember having any issues with contact photo size (contacts are synced with my Nexus 5).
> Lately I have installed CardDavMATE 0.12.0-rc3 and my contacts photos are re-sized to 274x246px which does not look good on Nexus 5. I have tried to edit one contact and replace photo with bigger size but it was re-sized after saving.
> 
> Is there any way to disable resizing of contacts photos or change its configuration??
> 
> Vasyl
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Follow-Ups:
Re: [Inf-IT DAVcl] CardDavMATE contact photo sizeVasyl Olenchenko <olenchenko@xxxxxxxxx>
References:
[Inf-IT DAVcl] CardDavMATE contact photo sizeVasyl Olenchenko <olenchenko@xxxxxxxxx>