CN104252697A - Method and apparatus for rotating photo automatically, and terminal - Google Patents

Method and apparatus for rotating photo automatically, and terminal Download PDF

Info

Publication number
CN104252697A
CN104252697A CN201310260871.2A CN201310260871A CN104252697A CN 104252697 A CN104252697 A CN 104252697A CN 201310260871 A CN201310260871 A CN 201310260871A CN 104252697 A CN104252697 A CN 104252697A
Authority
CN
China
Prior art keywords
uploaded
photo
property value
information
direction property
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310260871.2A
Other languages
Chinese (zh)
Inventor
柯向荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310260871.2A priority Critical patent/CN104252697A/en
Publication of CN104252697A publication Critical patent/CN104252697A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method and apparatus for rotating a photo automatically, and a terminal. The method comprises: obtaining information of a to-be-uploaded photo; extracting a direction attribute value contained by exchangeable image file information in the information of the to-be-uploaded photo; according to the direction attribute value, rotating the to-be-uploaded photo; and uploading the rotated to-be-uploaded photo. According to the invention, automatic rotation of the to-be-uploaded photo can be realized; and the photo uploading speed can be accelerated.

Description

A kind of method of picture autorotation, device and terminal
Technical field
The present invention relates to technical field of image processing, particularly relate to a kind of method of picture autorotation, device and terminal.
Background technology
Developing rapidly in recent years along with the communication technology, the function of instant communication software (such as QQ, MSN, ICQ) becomes increasingly abundant, and is integrated with the several functions such as document backup, Email, music, TV, game gradually.Instant communication software from initial simple chat tool, develops into the synthesization information platform integrating interchange, amusement, ecommerce, office cooperation and corporate client service etc.The terminal being provided with instant communication software can by internet, to other installed corresponding instant communication software another terminal messaging, upload or receive file.
When the terminal user being provided with instant communication software by taken by camera the photo upload that obtains to another terminal user or upload to customer group time, if the shooting direction of camera is different, also can difference be there is in the photo uploaded in the display of terminal display screen, there is the situation that subject turns upside down or couches sometimes, there is poor viewing effect, affect Consumer's Experience.In order to avoid the generation of this problem, existing technology adds photo spinfunction when upload pictures, but need terminal user to open photo manually to adjust, this photo is rotated and preserves to the state that correctly can show at terminal display screen, its operation needs artificial participation, very complicated, especially, when there is a large amount of photos in the photo that batch is uploaded and occurring the situation turning upside down or couch, adopt the program can bring huge inconvenience to user, have a strong impact on uploading speed.
Summary of the invention
In view of this, the invention provides a kind of method of picture autorotation, device and terminal, solve the technical matters that above background technology part is mentioned.
First aspect, the embodiment of the present invention provides a kind of method of picture autorotation, and described method comprises:
Obtain the information of photo to be uploaded;
Extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises;
According to described direction property value, rotate described photo to be uploaded;
Postrotational photo to be uploaded is uploaded.
Second aspect, the embodiment of the present invention provides a kind of device of picture autorotation, and described device comprises:
Photographic intelligence acquisition module, for obtaining the information of photo to be uploaded;
Direction property extracting module, the direction property value that the exchangeable image file information for extracting in the information of described photo to be uploaded comprises;
Photo rotary module, for according to described direction property value, rotates described photo to be uploaded;
Photo upload module, for uploading postrotational photo to be uploaded.
The third aspect, the embodiment of the present invention provides a kind of terminal, comprising: display screen, storer, one or more than one processor, and one or more than one program; Wherein, more than one or one program is stored in storer, and is configured by more than one or one processor execution, and more than one or one routine package is containing the instruction for carrying out following operation:
Obtain the information of photo to be uploaded;
Extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises;
According to described direction property value, rotate described photo to be uploaded;
Postrotational photo to be uploaded is uploaded.
Fourth aspect, the embodiment of the present invention provides a kind of computer-readable recording medium, it is characterized in that, described computer-readable recording medium stores more than one or one program, described more than one or one program is used for the method for an execution picture autorotation by one or more than one processor, described method comprises:
Obtain the information of photo to be uploaded;
Extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises;
According to described direction property value, rotate described photo to be uploaded;
Postrotational photo to be uploaded is uploaded.
A kind of method of picture autorotation that the present invention proposes, device and terminal have following features: before by photo upload to be uploaded, according to the direction property value that the exchangeable image file information in the information of photo to be uploaded comprises, automatic rotation is carried out to described photo to be uploaded, thus overcome in prior art need terminal user to open drawback that photo carries out manually adjusting the state that photo to be uploaded correctly can show at terminal display screen to it, improve the speed of upload pictures simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing the embodiment of the present invention is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the content of the embodiment of the present invention and these accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for a kind of picture autorotation that the embodiment of the present invention one provides;
Fig. 2 be the embodiment of the present invention one provide utilize digital camera front to take time each shooting direction, Orientation(direction) schematic diagram of property value, photo to be uploaded when not rotating and postrotational photo to be uploaded;
Fig. 3 is the structural representation of the device of a kind of picture autorotation that the embodiment of the present invention two provides.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not full content.
Embodiment one
Please refer to Fig. 1, it illustrates the schematic flow sheet of the method for a kind of picture autorotation that the embodiment of the present invention one provides.The method of the picture autorotation of the present embodiment is mainly used in the various terminal having photo upload function, and this terminal can comprise smart mobile phone, panel computer, personal digital assistant, pocket computer on knee and desk-top computer etc.The method of this picture autorotation, comprising:
Step S101, obtain the information of photo to be uploaded;
According to user input instruction, from terminal inner storer or external storage equipment, search photo to be uploaded, obtain the information of photo to be uploaded.Wherein, described external storage equipment can be USB flash disk, portable hard drive, storage card etc.; The whole descriptors to this to be uploaded photo of information for finding from terminal inner storer or external storage equipment of described photo to be uploaded.
Step S102, judge described photo to be uploaded information in whether comprise exchangeable image file information, if so, continue to perform step S103, otherwise, perform step S107;
After the information getting photo to be uploaded, judge whether comprise EXIF(Exchangeable Image File in the information of this photo to be uploaded, exchangeable image file) information.EXIF is special in adopting the photo setting of digital camera shooting, among the digital photograph information that can be additional to the forms such as JPEG, TIFF, RIFF, in order to record attribute information and the photographing information of digital photograph.Wherein, photographing information includes but not limited to one, two or more information in the model, shutter speed, f-number, direction property value, global positioning information etc. of the digital camera taking this photo.EXIF form has unified standard, is formulated at first by Japanese Electronic Industries Development Association, and this standard format defines various attribute information in order to identify digital photograph and the EXIF identifier of photographing information and the concrete meaning representated by each identifier.EXIF information comprises EXIF identifier and the information content corresponding with EXIF identifier.
By in the information of searching photo to be uploaded whether containing EXIF identifier and the information content corresponding to contained EXIF identifier for empty, judge whether comprise EXIF information in the information of photo to be uploaded.If so, then judge that the information of this photo to be uploaded comprises EXIF information, otherwise, then judge that the information of this photo to be uploaded does not comprise EXIF information.Wherein, all EXIF identifiers found from the information of photo to be uploaded and the information content of correspondence thereof constitute the EXIF information of this photo to be uploaded.
Whether step S103, the exchangeable image file information judged in the information of photo to be uploaded comprise direction property value, if so, continue to perform step S104, otherwise perform step S107;
Orientation(direction in EXIF information) property value is for describing the shooting direction of digital camera when taking pictures.Orientation property value whether is included in the EXIF information of photo captured by digital camera, relevant with the brand of this digital camera, model, some digital camera supports are to the record of Orientation property value, and the record to Orientation property value do not supported by some digital cameras.When digital camera possesses the function that can identify shooting direction, such as, when digital camera is built-in with direction sensor, Orientation property value can be recorded in EXIF information.
In the EXIF standard format that Japanese Electronic Industries Development Association specifies, the EXIF identifier of digital camera shooting direction is character string " 0x0112 ".By search in the EXIF information in the information from photo to be uploaded whether comprise character string " 0x0112 " and information content Orientation property value corresponding to this character string for empty, judge whether the EXIF information in the information of photo to be uploaded comprises Orientation property value.If so, then judge that the EXIF information in the information of photo to be uploaded comprises Orientation property value, otherwise, then judge that the EXIF information in the information of photo to be uploaded does not comprise Orientation property value.
Step S104, the direction property value included by exchangeable image file information extracted in the information of photo to be uploaded;
Digital camera is according to shooting direction to record Orientation property value in EXIF information when taking pictures, and described Orientation property value has 1 to 8 totally 8 kinds of values.Each Orientation property value and when Image Coding carries out to subject ranks zero point as shown in the table:
Orientation property value Coding initial row To encode initial row
1 The top of subject The left side of subject
2 The top of subject The right side of subject
3 The bottom of subject The right side of subject
4 The bottom of subject The left side of subject
5 The left side of subject The top of subject
6 The right side of subject The top of subject
7 The right side of subject The bottom of subject
8 The left side of subject The bottom of subject
When Orientation property value gets 1,3,6,8, the value of different shooting direction when taking for utilizing digital camera front, when Orientation property value gets 2,4,5,7, the value of different shooting direction when autodyning for utilizing digital camera.
Step S105, according to described direction property value, rotate photo to be uploaded;
When Orientation property value is 1 or 2, treats upload pictures and carry out 0 angle rotation; When Orientation property value is 8 or 7, treats upload pictures and carry out counterclockwise 90 degree of rotations; When Orientation property value is 3 or 4, treats upload pictures and carry out counterclockwise 180 degree of rotations; When Orientation property value is 6 or 5, treats upload pictures and carry out counterclockwise 270 degree of rotations.Wherein, the different angles treating upload pictures to rotate in the information by treating upload pictures except EXIF information about the amendment of image information content field realizes.
Fig. 2 be the embodiment of the present invention one provide utilize digital camera front to take time the schematic diagram of each shooting direction, Orientation property value, photo to be uploaded when not rotating and postrotational photo to be uploaded, see Fig. 2:
When Orientation property value is 1, the subject 200 in photo to be uploaded with correct position display at terminal display screen, therefore can retain original photo to be uploaded, it is not carried out to the rotation of any angle;
When Orientation property value is 8, subject when subject 200 now in photo to be uploaded is 1 relative to Orientation property value in photo to be uploaded has turned clockwise 90 degree, therefore be rotated counterclockwise 90 degree by treating upload pictures, to make the subject 200 in upload pictures can with correct position display at terminal display screen;
When Orientation property value is 3, subject when subject 200 now in photo to be uploaded is 1 relative to Orientation property value in photo to be uploaded has turned clockwise 180 degree, therefore be rotated counterclockwise 180 degree by treating upload pictures, to make the subject 200 in upload pictures can with correct position display at terminal display screen;
When Orientation property value is 6, subject when subject 200 now in photo to be uploaded is 1 relative to Orientation property value in photo to be uploaded has turned clockwise 270 degree, therefore be rotated counterclockwise 270 degree by treating upload pictures, to make the subject 200 in upload pictures can with correct position display at terminal display screen.
Certain those of ordinary skill in the art easily knows, when Orientation property value is 8, the subject when subject 200 that also can be considered in now photo to be uploaded is 1 relative to Orientation property value in photo to be uploaded has been rotated counterclockwise 270 degree, therefore turn clockwise 270 degree by treating upload pictures, can make the subject 200 in upload pictures can with correct position display at terminal display screen equally, other values of situation when being to(for) Orientation property value is similar, repeats no longer one by one here.
When utilizing digital camera to autodyne, the situation namely when Orientation property value gets 2,4,5,7, situation when taking with utilizing digital camera front is similar, does not remake be described in detail at this.
Step S106, described postrotational photo to be uploaded to be uploaded, process ends.
After the Orientation property value included by the EXIF information in the information of photo to be uploaded rotates photo to be uploaded, described postrotational photo to be uploaded is uploaded.
Step S107, directly photo to be uploaded to be uploaded, process ends.
When not comprising EXIF information in the information judging photo to be uploaded, maybe when the EXIF information in the information judging photo to be uploaded does not comprise Orientation property value, directly photo to be uploaded is uploaded.
Consider that there is user sometimes does not want that treating upload pictures carries out rotation adjustment, in order to avoid reduce the quality of photo to be uploaded, in order to better Consumer's Experience can be promoted, one of the present embodiment preferred embodiment in, also comprised before above-mentioned steps S102: receive touch-control input instruction, according to this touch-control input instruction, judge whether to enter automatic rotation picture mode to be uploaded.When judging to enter automatic rotation picture mode to be uploaded, perform above-mentioned steps S102.Preferably, by providing user's inputting interface, detecting the touching signals acted on this interface, receiving touch-control input instruction.
The method that embodiments of the invention one provide is by the direction property value included by the exchangeable image file information in the information of photo to be uploaded, treat the rotation that upload pictures carries out respective angles automatically, and without the need to adjusting the direction of photo to be uploaded manually, improve the speed of upload pictures, especially effectively can shorten uploading speed when user needs to upload photo in enormous quantities, promote Consumer's Experience.
Embodiment two
Please refer to Fig. 3, it illustrates the structural representation of the device of a kind of picture autorotation that the embodiment of the present invention two provides.This device comprises: photographic intelligence acquisition module 301, for obtaining the information of photo to be uploaded; Direction property extracting module 302, the direction property value that the exchangeable image file information for extracting in the information of described photo to be uploaded comprises; Photo rotary module 303, for according to described direction property value, rotates described photo to be uploaded; Photo upload module 304, for uploading postrotational photo to be uploaded.
In the present embodiment, photographic intelligence acquisition module 301, according to user input instruction, is searched photo to be uploaded, is obtained the information of photo to be uploaded from terminal inner storer or external storage equipment.Wherein, described external storage equipment can be USB flash disk, portable hard drive, storage card etc.; The whole descriptors to this to be uploaded photo of information for finding from terminal inner storer or external storage equipment of described photo to be uploaded.
In the present embodiment, direction property extracting module 302 specifically comprises: the first judging unit 3021, for judge described photo to be uploaded information in whether comprise exchangeable image file information; Second judging unit 3022, for when the first judging unit 3021 judges that the information of described photo to be uploaded comprises exchangeable image file information, judges whether comprise direction property value in described exchangeable image file information; Extraction unit 3023, for when the second judging unit 3022 judges that described exchangeable image file information comprises direction property value, extracts described direction property value.
First judging unit 3021 gets the information of photo to be uploaded at photographic intelligence acquisition module 301 after, judge whether comprise EXIF(Exchangeable Image File in the information of this photo to be uploaded, exchangeable image file) information.EXIF form has unified standard, is formulated at first by Japanese Electronic Industries Development Association, and this standard format defines various attribute information in order to identify digital photograph and the EXIF identifier of photographing information and the concrete meaning representated by each identifier.EXIF information comprises EXIF identifier and the information content corresponding with EXIF identifier.
First judging unit 3021 by the information of searching photo to be uploaded whether containing EXIF identifier and the information content corresponding to contained EXIF identifier for empty, judge whether comprise EXIF information in the information of photo to be uploaded.If so, then the first judging unit 3021 judges that the information of this photo to be uploaded comprises EXIF information, otherwise then the first judging unit 3021 judges that the information of this photo to be uploaded does not comprise EXIF information.Wherein, all EXIF identifiers found from the information of photo to be uploaded and the information content of correspondence thereof constitute the EXIF information of this photo to be uploaded.
Whether the second judging unit 3022 comprises character string " 0x0112 " and information content Orientation(direction corresponding to this character string by searching from the EXIF information the information of photo to be uploaded) property value for empty, do not judge whether the EXIF information in the information of photo to be uploaded comprises Orientation property value.If so, then the second judging unit 3022 judges that the EXIF information in the information of photo to be uploaded comprises Orientation property value, otherwise then the second judging unit 3022 judges that the EXIF information in the information of photo to be uploaded does not comprise Orientation property value.
The Orientation property value that extraction unit 3023 extracts has 1 to 8 totally 8 kinds of values.When Orientation property value gets 1,3,6,8, the value of different shooting direction when taking for utilizing digital camera front, when Orientation property value gets 2,4,5,7, the value of different shooting direction when autodyning for utilizing digital camera.
In the present embodiment, photo rotary module 303 specifically comprises: the first rotary unit 3031, for when Orientation property value is 1 or 2, treats upload pictures and carries out 0 angle rotation; Second rotary unit 3032, for when Orientation property value is 8 or 7, treats upload pictures and carries out counterclockwise 90 degree of rotations; 3rd rotary unit 3033, for when Orientation property value is 3 or 4, treats upload pictures and carries out counterclockwise 180 degree of rotations; 4th rotary unit 3034, for when Orientation property value is 6 or 5, treats upload pictures and carries out counterclockwise 270 degree of rotations.Wherein, the different angles that each rotary unit treats upload pictures to rotate in the information by treating upload pictures except EXIF information about the amendment of image information content field realizes.
One of the present embodiment preferred embodiment in, when photo upload module 304 is also for judging not comprise EXIF information in the information of photo to be uploaded when the first judging unit 3021, or when the EXIF information that the second judging unit 3022 judges in the information of photo to be uploaded does not comprise Orientation property value, directly photo to be uploaded is uploaded.
Consider that there is user sometimes does not want that treating upload pictures carries out rotation adjustment, in order to avoid reduce the quality of photo to be uploaded, in order to better Consumer's Experience can be promoted, one of the present embodiment preferred embodiment in, said apparatus also comprises mode selection module (not shown), for receiving touch-control input instruction, according to this touch-control input instruction, judge whether to enter automatic rotation picture mode to be uploaded.When mode selection module judges to enter automatic rotation picture mode to be uploaded, direction property extracting module 302 is started working.Preferably, mode selection module, by providing user's inputting interface, detects the touching signals acted on this interface, receives touch-control input instruction.
The direction property value of the device that embodiments of the invention two provide included by the exchangeable image file information in the information of photo to be uploaded, treat the rotation that upload pictures carries out respective angles automatically, and without the need to adjusting the direction of photo to be uploaded manually, improve the speed of upload pictures, especially effectively can shorten uploading speed when user needs to upload photo in enormous quantities, promote Consumer's Experience.
Embodiment three
Present embodiments provide a kind of terminal, this terminal comprises: display screen, storer, one or more than one processor, and one or more than one program; Wherein, described more than one or one program is stored in described storer, and is configured by described more than one or one processor execution, and described more than one or one routine package is containing the instruction for carrying out following operation:
Obtain the information of photo to be uploaded;
Extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises;
According to described direction property value, rotate described photo to be uploaded;
Postrotational photo to be uploaded is uploaded.
Preferably, in the storer of described terminal, also comprise the instruction for performing following operation:
Judge whether comprise exchangeable image file information in the information of described photo to be uploaded;
When the information of described photo to be uploaded comprises exchangeable image file information, then judge whether comprise direction property value in described exchangeable image file information further;
When described exchangeable image file information comprises direction property value, extract described direction property value.
Preferably, in the storer of described terminal, also comprise the instruction for performing following operation:
When not comprising exchangeable image file information in the information of described photo to be uploaded, or when not comprising direction property value in described exchangeable image file information, directly described photo to be uploaded is uploaded.
Preferably, in the storer of described terminal, also comprise the instruction for performing following operation:
Receive touch-control input instruction;
According to described touch-control input instruction, judge whether to enter automatic rotation picture mode to be uploaded;
When judging to enter automatic rotation picture mode to be uploaded, extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises.
Preferably, in the storer of described terminal, also comprise the instruction for performing following operation: when described direction property value is 1 or 2,0 angle rotation is carried out to described photo to be uploaded; When described direction property value is 8 or 7, counterclockwise 90 degree of rotations are carried out to described photo to be uploaded; When described direction property value is 3 or 4, counterclockwise 180 degree of rotations are carried out to described photo to be uploaded; When described direction property value is 6 or 5, counterclockwise 270 degree of rotations are carried out to described photo to be uploaded.
The direction property value of the terminal that embodiments of the invention three provide included by the exchangeable image file information in the information of photo to be uploaded, treat the rotation that upload pictures carries out respective angles automatically, and without the need to adjusting the direction of photo to be uploaded manually, improve the speed of upload pictures, especially effectively can shorten uploading speed when user needs to upload photo in enormous quantities, promote Consumer's Experience.
Embodiment four
This enforcement provides a kind of computer-readable recording medium, described computer-readable recording medium stores more than one or one program, described more than one or one program is used for the method for an execution automatic rotation photo to be uploaded by one or more than one processor, described method comprises:
Obtain the information of photo to be uploaded;
Extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises;
According to described direction property value, rotate described photo to be uploaded;
Postrotational photo to be uploaded is uploaded.
Preferably, in the information of the described photo to be uploaded of described extraction, the step of the direction property value that exchangeable image file information comprises specifically comprises:
Judge whether comprise exchangeable image file information in the information of described photo to be uploaded;
When the information of described photo to be uploaded comprises exchangeable image file information, then judge whether comprise direction property value in described exchangeable image file information further;
When described exchangeable image file information comprises direction property value, extract described direction property value.
Preferably, when not comprising exchangeable image file information in the information of described photo to be uploaded, or when not comprising direction property value in described exchangeable image file information, directly described photo to be uploaded is uploaded.
Preferably, the information of described acquisition photo to be uploaded, also comprises before extracting the step of the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises:
Receive touch-control input instruction;
According to described touch-control input instruction, judge whether to enter automatic rotation picture mode to be uploaded;
When judging to enter automatic rotation picture mode to be uploaded, perform the step of the direction property value that the exchangeable image file information in the information of the described photo to be uploaded of described extraction comprises.
Preferably, the described step according to the described photo to be uploaded of described direction property value rotation specifically comprises: when described direction property value is 1 or 2, carry out 0 angle rotation to described photo to be uploaded; When described direction property value is 8 or 7, counterclockwise 90 degree of rotations are carried out to described photo to be uploaded; When described direction property value is 3 or 4, counterclockwise 180 degree of rotations are carried out to described photo to be uploaded; When described direction property value is 6 or 5, counterclockwise 270 degree of rotations are carried out to described photo to be uploaded.
The direction property value of the computer-readable recording medium that embodiments of the invention four provide included by the exchangeable image file information in the information of photo to be uploaded, treat the rotation that upload pictures carries out respective angles automatically, and without the need to adjusting the direction of photo to be uploaded manually, improve the speed of upload pictures, especially effectively can shorten uploading speed when user needs to upload photo in enormous quantities, promote Consumer's Experience.
Embodiment of the method for the present invention (embodiment one), device embodiment (embodiment two), terminal embodiment (embodiment three), computer-readable recording medium embodiment (embodiment four) all belong to same design, the detail content of not detailed description in device embodiment, terminal embodiment, computer-readable recording medium embodiment, can reference method embodiment.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (20)

1. a method for picture autorotation, is characterized in that, described method comprises:
Obtain the information of photo to be uploaded;
Extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises;
According to described direction property value, rotate described photo to be uploaded;
Postrotational photo to be uploaded is uploaded.
2. the method for picture autorotation according to claim 1, is characterized in that, the step of the direction property value that the exchangeable image file information in the information of the described photo to be uploaded of described extraction comprises comprises:
Judge whether comprise exchangeable image file information in the information of described photo to be uploaded;
When the information of described photo to be uploaded comprises exchangeable image file information, then judge whether comprise direction property value in described exchangeable image file information further;
When described exchangeable image file information comprises direction property value, extract described direction property value.
3. the method for picture autorotation according to claim 2, it is characterized in that, when not comprising exchangeable image file information in the information of described photo to be uploaded, or when not comprising direction property value in described exchangeable image file information, directly described photo to be uploaded is uploaded.
4. the method for picture autorotation according to claim 1, is characterized in that, also comprises before the step of the direction property value that the exchangeable image file information in the information of the described photo to be uploaded of described extraction comprises: receive touch-control input instruction; According to described touch-control input instruction, judge whether to enter automatic rotation picture mode to be uploaded;
When judging to enter automatic rotation picture mode to be uploaded, perform the step of the direction property value that the exchangeable image file information in the information of the described photo to be uploaded of described extraction comprises.
5. the method for picture autorotation according to claim 1, is characterized in that, the described step according to the described photo to be uploaded of described direction property value rotation specifically comprises:
When described direction property value is 1 or 2,0 angle rotation is carried out to described photo to be uploaded;
When described direction property value is 8 or 7, counterclockwise 90 degree of rotations are carried out to described photo to be uploaded;
When described direction property value is 3 or 4, counterclockwise 180 degree of rotations are carried out to described photo to be uploaded;
When described direction property value is 6 or 5, counterclockwise 270 degree of rotations are carried out to described photo to be uploaded.
6. a device for picture autorotation, is characterized in that, described device comprises:
Photographic intelligence acquisition module, for obtaining the information of photo to be uploaded;
Direction property extracting module, the direction property value that the exchangeable image file information for extracting in the information of described photo to be uploaded comprises;
Photo rotary module, for according to described direction property value, rotates described photo to be uploaded;
Photo upload module, for uploading postrotational photo to be uploaded.
7. the device of picture autorotation according to claim 6, is characterized in that, described direction property extracting module comprises:
First judging unit, for judge described photo to be uploaded information in whether comprise exchangeable image file information;
Second judging unit, for when described first judging unit judges that the information of described photo to be uploaded comprises exchangeable image file information, judges whether comprise direction property value in described exchangeable image file information;
Extraction unit, for when described second judging unit judges that described exchangeable image file information comprises direction property value, extracts described direction property value.
8. the device of picture autorotation according to claim 7, it is characterized in that, when described photo upload module is also for judging not comprise exchangeable image file information in the information of described photo to be uploaded when described first judging unit, or when described second judging unit judges not comprise direction property value in described exchangeable image file information, directly described photo to be uploaded is uploaded.
9. the device of picture autorotation according to claim 6, is characterized in that, described device also comprises mode selection module, for receiving touch-control input instruction, according to described touch-control input instruction, judges whether to enter automatic rotation picture mode to be uploaded;
Described direction property extracting module, specifically for judging to enter automatic rotation picture mode to be uploaded at described mode selection module, extracts the direction property value that in the information of described photo to be uploaded, exchangeable image file information comprises.
10. the device of picture autorotation according to claim 6, is characterized in that, described photo rotary module comprises:
First rotary unit, for when described direction property value is 1 or 2, carries out 0 angle rotation to described photo to be uploaded;
Second rotary unit, for when described direction property value is 8 or 7, carries out counterclockwise 90 degree of rotations to described photo to be uploaded;
3rd rotary unit, for when described direction property value is 3 or 4, carries out counterclockwise 180 degree of rotations to described photo to be uploaded;
4th rotary unit, for when described direction property value is 6 or 5, carries out counterclockwise 270 degree of rotations to described photo to be uploaded.
11. 1 kinds of terminals, is characterized in that, comprising: display screen, storer, one or more than one processor, and one or more than one program; Wherein, described more than one or one program is stored in described storer, and is configured by described more than one or one processor execution, and described more than one or one routine package is containing the instruction for carrying out following operation:
Obtain the information of photo to be uploaded;
Extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises;
According to described direction property value, rotate described photo to be uploaded;
Postrotational photo to be uploaded is uploaded.
12. terminals according to claim 11, is characterized in that, comprise the instruction for performing following steps:
Judge whether comprise exchangeable image file information in the information of described photo to be uploaded;
When the information of described photo to be uploaded comprises exchangeable image file information, then judge whether comprise direction property value in described exchangeable image file information further;
When described exchangeable image file information comprises direction property value, extract described direction property value.
13. terminals according to claim 12, is characterized in that, comprise the instruction for performing following steps:
When not comprising exchangeable image file information in the information of described photo to be uploaded, or when not comprising direction property value in described exchangeable image file information, directly described photo to be uploaded is uploaded.
14. terminals according to claim 11, is characterized in that, comprise the instruction for performing following steps:
Receive touch-control input instruction;
According to described touch-control input instruction, judge whether to enter automatic rotation picture mode to be uploaded;
When judging to enter automatic rotation picture mode to be uploaded, extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises.
15. terminals according to claim 11, is characterized in that, comprise the instruction for performing following steps:
When described direction property value is 1 or 2,0 angle rotation is carried out to described photo to be uploaded;
When described direction property value is 8 or 7, counterclockwise 90 degree of rotations are carried out to described photo to be uploaded;
When described direction property value is 3 or 4, counterclockwise 180 degree of rotations are carried out to described photo to be uploaded;
When described direction property value is 6 or 5, counterclockwise 270 degree of rotations are carried out to described photo to be uploaded.
16. 1 kinds of computer-readable recording mediums, it is characterized in that, described computer-readable recording medium stores more than one or one program, described more than one or one program is used for the method for an execution picture autorotation by one or more than one processor, described method comprises:
Obtain the information of photo to be uploaded;
Extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises;
According to described direction property value, rotate described photo to be uploaded;
Postrotational photo to be uploaded is uploaded.
17. computer-readable recording mediums according to claim 16, is characterized in that, the step of the direction property value that the exchangeable image file information in the information of the described photo to be uploaded of described extraction comprises specifically comprises:
Judge whether comprise exchangeable image file information in the information of described photo to be uploaded;
When the information of described photo to be uploaded comprises exchangeable image file information, then judge whether comprise direction property value in described exchangeable image file information further;
When described exchangeable image file information comprises direction property value, extract described direction property value.
18. computer-readable recording mediums according to claim 17, it is characterized in that, when not comprising exchangeable image file information in the information of described photo to be uploaded, or when not comprising direction property value in described exchangeable image file information, directly described photo to be uploaded is uploaded.
19. computer-readable recording mediums according to claim 16, is characterized in that, also comprise before the step of the direction property value that the exchangeable image file information in the information of the described photo to be uploaded of described extraction comprises: receive touch-control input instruction; According to described touch-control input instruction, judge whether to enter automatic rotation picture mode to be uploaded;
When judging to enter automatic rotation picture mode to be uploaded, perform the step of the direction property value that the exchangeable image file information in the information of the described photo to be uploaded of described extraction comprises.
20. computer-readable recording mediums according to claim 16, is characterized in that, the described step according to the described photo to be uploaded of described direction property value rotation specifically comprises:
When described direction property value is 1 or 2,0 angle rotation is carried out to described photo to be uploaded;
When described direction property value is 8 or 7, counterclockwise 90 degree of rotations are carried out to described photo to be uploaded;
When described direction property value is 3 or 4, counterclockwise 180 degree of rotations are carried out to described photo to be uploaded;
When described direction property value is 6 or 5, counterclockwise 270 degree of rotations are carried out to described photo to be uploaded.
CN201310260871.2A 2013-06-26 2013-06-26 Method and apparatus for rotating photo automatically, and terminal Pending CN104252697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310260871.2A CN104252697A (en) 2013-06-26 2013-06-26 Method and apparatus for rotating photo automatically, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310260871.2A CN104252697A (en) 2013-06-26 2013-06-26 Method and apparatus for rotating photo automatically, and terminal

Publications (1)

Publication Number Publication Date
CN104252697A true CN104252697A (en) 2014-12-31

Family

ID=52187566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310260871.2A Pending CN104252697A (en) 2013-06-26 2013-06-26 Method and apparatus for rotating photo automatically, and terminal

Country Status (1)

Country Link
CN (1) CN104252697A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991768A (en) * 2015-06-15 2015-10-21 上海二三四五网络科技有限公司 Control method and device for batched alignment of image documents in image processing software
CN105187491A (en) * 2015-08-06 2015-12-23 上海斐讯数据通信技术有限公司 Method, system and server thereof for uploading pictures
CN105227861A (en) * 2015-06-29 2016-01-06 深圳市美贝壳科技有限公司 A kind of method of automatic adjustment photo angles of display
CN105488156A (en) * 2015-11-30 2016-04-13 广州一刻影像科技有限公司 Method for automatically selecting electronic album template and generating electronic album
CN107103586A (en) * 2017-05-23 2017-08-29 山东浪潮商用系统有限公司 A kind of method and apparatus for rotating photo
CN112330552A (en) * 2020-10-21 2021-02-05 重庆锐云科技有限公司 Picture processing method, server and computer readable storage medium
CN112422827A (en) * 2020-11-17 2021-02-26 联想(北京)有限公司 Information processing method, device and equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063770A1 (en) * 2001-10-01 2003-04-03 Hugh Svendsen Network-based photosharing architecture
CN1798245A (en) * 2004-12-31 2006-07-05 乐金电子(中国)研究开发中心有限公司 Photo file preservation and transmission method of camera and mobile telephone
CN102065183A (en) * 2010-12-31 2011-05-18 惠州Tcl移动通信有限公司 Mobile phone and image pickup processing method thereof
CN102395011A (en) * 2011-10-14 2012-03-28 深圳创维-Rgb电子有限公司 Method of picture autorotation and television

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063770A1 (en) * 2001-10-01 2003-04-03 Hugh Svendsen Network-based photosharing architecture
CN1798245A (en) * 2004-12-31 2006-07-05 乐金电子(中国)研究开发中心有限公司 Photo file preservation and transmission method of camera and mobile telephone
CN102065183A (en) * 2010-12-31 2011-05-18 惠州Tcl移动通信有限公司 Mobile phone and image pickup processing method thereof
CN102395011A (en) * 2011-10-14 2012-03-28 深圳创维-Rgb电子有限公司 Method of picture autorotation and television

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991768A (en) * 2015-06-15 2015-10-21 上海二三四五网络科技有限公司 Control method and device for batched alignment of image documents in image processing software
CN105227861A (en) * 2015-06-29 2016-01-06 深圳市美贝壳科技有限公司 A kind of method of automatic adjustment photo angles of display
CN105187491A (en) * 2015-08-06 2015-12-23 上海斐讯数据通信技术有限公司 Method, system and server thereof for uploading pictures
CN105488156A (en) * 2015-11-30 2016-04-13 广州一刻影像科技有限公司 Method for automatically selecting electronic album template and generating electronic album
CN107103586A (en) * 2017-05-23 2017-08-29 山东浪潮商用系统有限公司 A kind of method and apparatus for rotating photo
CN112330552A (en) * 2020-10-21 2021-02-05 重庆锐云科技有限公司 Picture processing method, server and computer readable storage medium
CN112422827A (en) * 2020-11-17 2021-02-26 联想(北京)有限公司 Information processing method, device and equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104252697A (en) Method and apparatus for rotating photo automatically, and terminal
US20230306737A1 (en) Use of camera metadata for recommendations
RU2639651C2 (en) Image identification and organization according to model without user intervention
CN102577348B (en) Send the method for image and the image pick up equipment of application the method
WO2016101757A1 (en) Image processing method and device based on mobile device
CN102547090A (en) Digital photographing apparatus and methods of providing pictures thereof
TWI591575B (en) Method and system for enhancing captured data
CN105743771A (en) Photo sharing method, photo sharing device and electronic equipment
CN104679879A (en) Intelligent storage method and intelligent storage device for photo
CN109040594A (en) Photographic method and device
CN105045846A (en) Image storage method and terminal
TW201503675A (en) Media file management method and system
WO2015183638A1 (en) Selectively adding content to user group host
US11361402B2 (en) Electronic device and method for saving image
WO2015183735A1 (en) Methods and systems for image based searching
CN107343142A (en) The image pickup method and filming apparatus of a kind of photo
CN111787225A (en) Photographing method and device, electronic equipment and storage medium
CN105808677A (en) Picture deleting method and device and electronic equipment
CN108132935B (en) Image classification method and image display method
US20170330361A1 (en) Method of Producing an Augmented Reality Experience for a Remote Customer Via Linked Media
CN101442455B (en) Image storage system
US20090132489A1 (en) Method for managing digital photograph, apparatus for displaying digital photograph, and method for playing the same
JP2015032248A (en) Image search device, system and program for searching for data
EP2817745A1 (en) Method, apparatus and computer program product for management of media files
CN106657765A (en) Thumbnail generation method and user terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141231