# US 8,542,808 B2 · Contact image selection and association method and system for mobile device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,542,808 B2
- Document ID: US8542808B2
- Status: Granted
- Kind: B2
- Application number: 13/097,436
- Filed: 2011-04-29
- Published: 2011-08-25
- Granted: 2013-09-24
- Earliest claimed: 2006-07-14
- Assignees: BlackBerry Limited
- Applicants: Piotr Tysowski; Earl Wikkerink; Stuart Pollock
- Inventors: Piotr Tysowski; Earl Wikkerink; Stuart Pollock
- Web page: https://patentgrep.com/patent/US8542808B2

## CPC

- H04N 19/192: the adaptation method, adaptation tool or adaptation type being iterative or recursive
- G06F 16/51: Indexing; Data structures therefor; Storage structures
- H04N 19/124: Quantisation
- H04N 19/152: by measuring the fullness of the transmission buffer
- H04N 19/172: the region being a picture, frame or field
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/60: using transform coding
- H04M 1/27475: using interactive graphical means or pictorial representations
- H04M 1/576: {associated with a pictorial or graphical representation}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)

## Abstract

A method and computing device for encoding an image according to a preset encoding parameter for the image. The encoding producing an encoded image having a file size. If it is determined that the file size exceeds a maximum file size and the encoding parameter does not meet a threshold, the encoding parameter is modified. The encoding, determining and modifying are repeated until the file size does not exceed a maximum file size or the encoding parameter meets the threshold.

## Claims

### Claim 1

A computer-implemented method for encoding an image based on a maximum file size requirement, the method comprising:
receiving a selection of a portion of the image;
cropping the image according to the selection, to produce a sub-image;
setting an encoding parameter;
encoding the sub-image according to the encoding parameter to produce an encoded sub-image;
determining that a file size of the sub-image file exceeds the maximum file size and that the encoding parameter does not meet a threshold and, in response, modifying the encoding parameter;
repeating the encoding, the determining, and the modifying until the file size does not exceed the maximum file size or the encoding parameter meets the threshold; and
saving the encoded sub-image.

### Claim 2 (depends on 1)

The method according to claim 1 wherein the encoding parameter comprises any one of a quality factor, image dimensions and color depth.

### Claim 3 (depends on 1)

The method according to claim 1 wherein the maximum file size is about 3 kilobytes.

### Claim 4 (depends on 1)

The method according to claim 1 wherein encoding the sub-image comprises encoding the sub-image according to any one of JPEG, GIF and PNG image file formats.

### Claim 5 (depends on 1)

The method according to claim 1 wherein setting an encoding parameter comprises setting a JPEG compression quality factor to about 75 on a scale of 0 to 100, wherein modifying the encoding parameter comprises decreasing the quality factor and wherein the encoding parameter meets the threshold when the quality factor is below about 50.

### Claim 6 (depends on 5)

The method according to claim 5, comprising receiving configuration data from a host system before setting the quality factor, the configuration data containing any one of an initial encoding parameter, a threshold encoding parameter and a maximum file size.

### Claim 7

A computing device for encoding an image based on a maximum file size requirement, the device comprising:
a memory containing at least one image file containing image data for rendering an image; and
a cropping module for receiving a selection of a portion of an image and cropping the image according to the selection, to produce a sub-image;
an image encoder for receiving selection of the sub-image and encoding the sub-image according to an encoding parameter to produce a sub-image file,
wherein the image encoder is configured to incrementally modify the encoding parameter and re-encode the sub-image with the modified encoding parameter until a file size of the sub-image file exceeds the maximum file size or the encoding parameter meets a threshold and to save the encoded sub-image.

### Claim 8 (depends on 7)

The computer implemented method according to claim 7 wherein the encoding parameter comprises any one of a quality factor, image dimensions and color depth.

### Claim 9 (depends on 7)

The computing device according to claim 7 wherein the maximum file size is about 3 kilobytes.

### Claim 10 (depends on 7)

The computing device according to claim 7 wherein the image encoder comprises any one of a JPEG, GIF and PNG image encoder.

### Claim 11 (depends on 7)

The computing device according to claim 7 wherein the encoding parameter comprises a JPEG compression quality factor of about 75 on a scale of 0 to 100 and the threshold comprises about 50, and wherein the image encoder is configured to modify the encoding parameter by decreasing the encoding parameter.

### Claim 12

A non-transitory machine-readable medium having encoded thereon computer-readable instructions executable by a processor, the computer-readable instructions for:
receiving a selection of a portion of an image;
cropping the image according to the selection, to produce a sub-image;
setting an encoding parameter;
encoding the sub-image according to the encoding parameter to produce an encoded sub-image;
determining that a file size of the sub-image file exceeds the maximum file size and that the encoding parameter does not meet a threshold and, in response, modifying the encoding parameter;
repeating the encoding, the determining, and the modifying until the file size does not exceed the maximum file size or the encoding parameter meets the threshold; and
saving the encoded sub-image.

### Claim 13 (depends on 12)

The non-transitory machine-readable medium according to claim 12 wherein the encoding parameter comprises any one of a quality factor, image dimensions and color depth.

### Claim 14 (depends on 12)

The non-transitory machine-readable medium according to claim 12 wherein the maximum file size is about 3 kilobytes.

### Claim 15 (depends on 12)

The non-transitory machine-readable medium according to claim 12 wherein the instructions for encoding the sub-image comprise instructions for encoding the sub-image according to anyone of JPEG, GIF and PNG image file formats.

### Claim 16 (depends on 12)

The non-transitory machine-readable medium according to claim 12 wherein the instructions for setting an encoding parameter comprise instructions for setting a JPEG compression quality factor to about 75 on a scale of 0 to 100, wherein modifying the encoding parameter comprises decreasing the quality factor and wherein the encoding parameter meets the threshold when the quality factor is below about 50.
