Bug 30 - Some contact pictures are not synchronized on the phone
Summary: Some contact pictures are not synchronized on the phone
Status: RESOLVED INVALID
Alias: None
Product: ZeXtras
Classification: Unclassified
Component: ZxMobile (show other bugs)
Version: 1.2.2
Hardware: -- CentOS 5 - 64bit
: Normal normal
Assignee: ZeXtras Bugzilla Admin
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2012-02-15 14:14 CET by Marc Bessière
Modified: 2012-02-15 18:14 CET (History)
1 user (show)

See Also:
Browser: ---
Zimlet Chat version: ---
Zimbra Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Bessière 2012-02-15 14:14:05 CET
Zimbra : ZCS OSE 7.1.4
OS     : Scientific Linux 5.7 (same as RHEL 5.7)

Phone  : Samsung Galaxy SII
OS     : Android 4.0.3

I have a list of 789 contact with part them having pictures.
Some pictures are missing on the phone.

Nothing noticable with the missing picture compared to the showed ones.

Using CardDav protocol is working fine with all the pictures.
Comment 1 Marc Bessière 2012-02-15 15:34:03 CET
The bug is also present with IOS device (iPad).
Comment 2 Cine 2012-02-15 16:19:51 CET
Hello Marc,


Can you please verify if the unsynchronized Contact Pictures have size greater than 48kb?

The ActiveSync protocol has a size limit of 48kb on Contact Pictures, and right now ZxMobile only support this feature strictly according to the ActiveSync protocol's specification. 

Tests on all supported platforms are being carried on in order to verify if any additional feature (such as different file sizes and image types) are supported even if not strictly compliant to the protocol's specifications.

As soon as new supported features are found they are being implemented in ZeXtras Mobile.



Have a nice day,
Cine
Comment 3 Marc Bessière 2012-02-15 16:34:26 CET
Hello Cine,

Thanks for this quick response time, I'm impressed ;-)

>> Can you please verify if the unsynchronized Contact Pictures have size greater
>> than 48kb?

The first unsynchronized picture I've tested was indeed 115 Ko.

>> The ActiveSync protocol has a size limit of 48kb on Contact Pictures, and right
>> now ZxMobile only support this feature strictly according to the ActiveSync
>> protocol's specification.

Ok, I understand. I was not aware of this limitation.
I hope some days, this limitation will be greater.

>> Tests on all supported platforms are being carried on in order to verify if any
>> additional feature (such as different file sizes and image types) are supported
>> even if not strictly compliant to the protocol's specifications.

That will be great if so. Thanks for going further...

>> As soon as new supported features are found they are being implemented in
>> ZeXtras Mobile.

Great.

Warm regards.
--
Marc
Comment 4 Marc Bessière 2012-02-15 17:15:33 CET
Is there also a pixel size limitation ?
Because I've got a 46,4 Ko picture which is 600x600 pixels and did not sync.
Comment 5 Cine 2012-02-15 17:52:04 CET
Hello,

the 48kb limit is calculated on the base64-encoded image, and usually the encoding process causes the file to grow in size of about 1/7th of the original size. 

To quick check the size of your image when encoded in base64 you can do as follows:

On Linux:
Open a terminal and run the following command (no quotes):

"base64 image.jpg > encoded_image"

and then check the size with 

"ls -lah encoded_image"

On Mac OSX
Open a terminal and run the following command (no quotes):

"openssl base64 -in image.jpg -out encoded_image"

and then check the size with 

"ls -lah encoded_image"


(afaik Windows doesn't have a bundled base64 utility)
Comment 6 Marc Bessière 2012-02-15 18:14:51 CET
>> the 48kb limit is calculated on the base64-encoded image, and usually the
>> encoding process causes the file to grow in size of about 1/7th of the original
>> size. 

I see. Thanks for this precious information.
I'll check my images.

Warm regards
--
Marcet