Contact image selection and association method and system for mobile device
AssigneeBlackBerry Limited
InventorsPiotr Tysowski, Earl Wikkerink, Stuart Pollock
Life of this patent
Estimating the term…
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.
Claims16
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.
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.
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.
Dependencies are inferred from the claim text.