CN105227861A - A kind of method of automatic adjustment photo angles of display - Google Patents

A kind of method of automatic adjustment photo angles of display Download PDF

Info

Publication number
CN105227861A
CN105227861A CN201510365254.8A CN201510365254A CN105227861A CN 105227861 A CN105227861 A CN 105227861A CN 201510365254 A CN201510365254 A CN 201510365254A CN 105227861 A CN105227861 A CN 105227861A
Authority
CN
China
Prior art keywords
photo
clouds
client
thumbnail
former
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
CN201510365254.8A
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.)
Shenzhen Meibeike Technology Co Ltd
Original Assignee
Shenzhen Meibeike Technology 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 Shenzhen Meibeike Technology Co Ltd filed Critical Shenzhen Meibeike Technology Co Ltd
Priority to CN201510365254.8A priority Critical patent/CN105227861A/en
Publication of CN105227861A publication Critical patent/CN105227861A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to a kind of method of automatic adjustment photo angles of display, comprising: from client upload photo files to high in the clouds; The EXIF information of photo is resolved in high in the clouds, generates thumbnail, and preserves thumbnail and former figure; The adjustment of thumbnail photo angle, according to the Orientation value in the EXIF information of photo, is carried out in high in the clouds, then to preserve after adjustment thumbnail photo and EXIF information to database; Client sends instruction and read picture data from picture data storehouse, high in the clouds, loads photo thumbnail; When client is selected to browse photo former figure, load the former figure of photo from high in the clouds, and according to the value of the image direction orientation in the EXIF information of this photo, show after automatic angle adjustment; When client is selected to preserve picture, download former figure and be saved in this locality.Enforcement the invention has the beneficial effects as follows: during upload pictures, and high in the clouds, according to the value of the Orientation in photo EXIF information, generates the thumbnail of modulated school angle automatically; Be automatically rotated to normal angled when client showing the former figure of photo, improve user's viewing experience.

Description

A kind of method of automatic adjustment photo angles of display
Technical field
The present invention relates to cloud field of storage, particularly automatically adjust the method for photo angles of display beyond the clouds.
Background technology
Along with the development of mobile intelligent terminal, mobile phone camera is more and more advanced, the pixel of such as taking is more and more higher, and it is multiple functional, wieldy feature, increasing user uses mobile phone to take pictures whenever and wherever possible, and shares the photo of oneself, and the popularization degree of taking pictures with mobile phone is considerably beyond digital camera.
During owing to taking outside, the artistic photo of shooting tool, need to go to take landscape from different angles, personage, because this reason, erect mobile phone when clapping people to take, when clapping landscape, comparatively more options traverse mobile phone shooting, or during shooting personage, posture because of people adopts the shooting of inclination mobile phone certain angle, hold because of mobile phone during shooting and put angle difference, when causing photo to show, some shows sidewards, some is endways display, therefore, upload or share the photo on high in the clouds or display device, if can automatically identify photo angle, when user browses photo, automatically normal angled is adjusted to, thus solve the problem of photo rotation, improve Consumer's Experience.
Summary of the invention
For solving the problems of the technologies described above, main purpose of the present invention is a kind of method providing automatic adjustment photo angles of display, when browsing photo, and the angles of display of adjustment photo automatically.
A method for automatic adjustment photo angles of display, comprising:
From client upload photo files to high in the clouds;
The EXIF data of photo are resolved in high in the clouds, generate thumbnail, and preserve thumbnail and former figure;
The adjustment of thumbnail photo angle, according to the Orientation value in the EXIF information of photo, is carried out in high in the clouds, then to preserve after adjustment thumbnail photo and EXIF information to database;
Client sends instruction and read picture data from picture data storehouse, high in the clouds, loads photo thumbnail;
When client is selected to browse photo former figure, load the former figure of photo from high in the clouds, and according to the value of the image direction orientation in the EXIF information of this photo, show after automatic angle adjustment;
When client is selected to preserve picture, download former figure and be saved in this locality.
A method for automatic adjustment photo angles of display, also comprises the method for uploading pictures to high in the clouds:
Client and high in the clouds are connected by the one of http or tcp;
Client upload photo is to high in the clouds;
After high in the clouds receives the photo of client upload, read the EXIF information of photo.
According to the value of image direction Orientation in EXIF information, draw the orientation angle of photo;
Generate photo thumbnail, according to photo wide high proportion, generate the shrinkage figure of equal proportion the ratio of width to height, and according to image direction, the direction of automatic calibration thumbnail, is then saved in the position of specifying;
The photo original image that preservation receives is to respective memory locations;
Preserve photo EXIF data as image angle, the information such as photo is wide, and photo is high, and photo thumbnail path, the former figure path of photo, in database table, facilitates user to inquire about and browses.
A method for automatic adjustment photo angles of display, also comprises the method browsing photo on the client:
Client and high in the clouds are connected by the wherein one of http or tcp;
Picture data is read in high in the clouds from picture data storehouse;
Client downloads photo thumbnail and loaded and displayed from high in the clouds;
When user clicks photo, when browsing large picture, client downloads large picture from high in the clouds, and according to the value of the image direction orientation in the EXIF information of this photo, is automatically rotated to respective angles, thus does display direction automatic calibration.
When user preserves former figure, then client directly preserves the former figure of download, does not now need to do correction for direction.
Described angle adjustment corrects according to the value of the image direction Orientation in the EXIF information of photo, the value of Orientation is different, the angle adjustment that photo carries out is also different, and photo does not have the value of Orientation, then the value giving tacit consent to Orientation is 1.
The scope of the value of the image direction Orientation in EXIF information is the arbitrary natural number between 1-8.
Compared with prior art, its useful effect is: during upload pictures in the present invention, and high in the clouds, according to the value of the Orientation in photo EXIF information, generates the thumbnail of modulated school angle automatically; During the large figure of Client browse photo, according to the Orientation in photo EXIF information, during display, be automatically rotated to special angle, thus the photo of display normal angled, improve user's viewing experience.
Accompanying drawing explanation
Fig. 1 is a kind of FB(flow block) of automatic adjustment photo angles of display.
Fig. 2 is from client upload photo to the FB(flow block) in high in the clouds in Fig. 1.
Fig. 3 is the FB(flow block) at Client browse photo in Fig. 1.
Fig. 4 is the FB(flow block) of preserving the former figure of photo in Fig. 1 in client.
Embodiment
Below in conjunction with specific embodiment and accompanying drawing, the present invention is described in further detail.The example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining technical scheme of the present invention, and not should be understood to limitation of the present invention.
In describing the invention, term " interior ", " outward ", " longitudinal direction ", " transverse direction ", " on ", D score, " top ", " end " or "front", "rear", "left", "right" etc. instruction orientation or position relationship be based on orientation shown in the drawings or position relationship, be only the present invention for convenience of description instead of require that the present invention with specific azimuth configuration and operation, therefore must not should be understood to limitation of the present invention.
As shown in Figure 1, a kind of method of automatic adjustment photo angles of display, comprising:
S1 is from client upload photo files to high in the clouds;
The EXIF data of photo are resolved in S2 high in the clouds, generate thumbnail, and preserve thumbnail and former figure;
The adjustment of thumbnail photo angle, according to the Orientation value in the EXIF information of photo, is carried out in S3 high in the clouds, then to preserve after adjustment thumbnail photo and EXIF information to database;
S4 client sends instruction and read picture data from picture data storehouse, high in the clouds, loads photo thumbnail;
When S5 client is selected to browse photo former figure, load the former figure of photo from high in the clouds, and according to the value of the image direction orientation in the EXIF information of this photo, show after automatic angle adjustment;
When S6 client is selected to preserve picture, download former figure and be saved in this locality.
For reaching above-mentioned purpose, the technical scheme of the present invention's application comprises client and high in the clouds.
Client includes but not limited to mobile phone, PAD, PC, and client is mainly used in uploading the photo of mobile phone or pad or camera shooting to high in the clouds, browses the photo (remarks: the photo that camera is taken can import to client in advance as in mobile phone or PAD or PC) in high in the clouds.
High in the clouds includes but not limited to publicly-owned cloud, privately owned cloud, family's cloud.High in the clouds is mainly used in the photo receiving client's single upload, and produces thumbnail.Read photographic intelligence, read photo thumbnail, read the former figure of photo.
Photo Self-regulation track mainly comprises two aspects: one is, client upload photo is to high in the clouds, and photo EXIF data are resolved in high in the clouds, generate thumbnail, preserve thumbnail, former figure; Preservation photographic intelligence and EXIF information are to database.Two are, the photo in Client browse high in the clouds, and picture data is read in high in the clouds from picture data storehouse, load photo thumbnail, when user browse scheme greatly time, load former figure.When user selects to preserve picture, download former figure and be saved in this locality.
As shown in Figure 2, as follows from the flow process of client's upload pictures:
Client and high in the clouds are connected by http or tcp;
Client upload photo is to high in the clouds;
After high in the clouds receives the photo of client upload, read the EXIF information of photo.
According to the value of image direction Orientation in EXIF information, draw the orientation angle of photo.If there is no EXIF information, then giving tacit consent to Orientation value is 1, and namely photo does not need rotation correction.
Generate photo thumbnail, according to photo wide high proportion, generate the shrinkage figure of equal proportion the ratio of width to height, and according to image direction, the direction of automatic calibration thumbnail, is then saved in the position of specifying.
The photo original image that preservation receives is to respective memory locations.
Preserve photo EXIF data as image angle, the information such as photo is wide, and photo is high, and photo thumbnail path, the former figure path of photo, in database table, facilitates user to inquire about and browses.
As shown in Figure 3, Client browse photo flow process is as follows:
Client and high in the clouds are connected by http or tcp;
Picture data storehouse is read in high in the clouds, reads picture data;
Client downloads photo thumbnail and loaded and displayed from high in the clouds.
When user clicks photo, when browsing large picture, client downloads large picture from high in the clouds, and according to the value of the image direction orientation changed in the EXIF information of photo, is automatically rotated to respective angles, thus does display direction automatic calibration.
Please refer to Fig. 4, when user preserves former figure, then client directly preserves the former figure of download, does not now need to do correction for direction.
Value according to the image direction Orientation in EXIF information corrects, and the value of Orientation is any natural number in 1-8, and when the value as Orientation is 1, it is 0 degree that photo thumbnail and the former figure of photo adjust angle, does not namely do to change; When value as Orientation is 2, photo thumbnail or flip horizontal when showing former figure; When value as Orientation is 3, photo generates automatic rotary turnback when thumbnail revolves turnback or shows former figure, and what adopt clockwise or be rotated counterclockwise is wherein a kind of; When value as Orientation is 4, flip vertical or flip vertical when showing former figure when photo generates thumbnail; When value as Orientation is 5, generates automatic dextrorotation when thumbnail dextrorotation turn 90 degrees rear flip horizontal or shows former figure and turn 90 degrees rear flip horizontal; When value as Orientation is 6, then when when generating thumbnail, dextrorotation turn 90 degrees or shows former figure, automatic dextrorotation turn 90 degrees; When value as Orientation is 7, when then during generation thumbnail, dextrorotation turn 90 degrees rear flip vertical or shows former figure, automatic dextrorotation turn 90 degrees flip vertical, when value as Orientation is 8, be then rotated counterclockwise when generating thumbnail 90 degree or show former figure time automatic reversal hour hands 90-degree rotations.
Above content is only preferred embodiment of the present invention, and for those of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, this description should not be construed as limitation of the present invention.

Claims (5)

1. automatically adjust a method for photo angles of display, comprising:
From client upload photo files to high in the clouds;
The EXIF information of photo is resolved in high in the clouds, generates thumbnail, and preserves thumbnail and former figure;
The adjustment of thumbnail photo angle, according to the Orientation value in the EXIF information of photo, is carried out in high in the clouds, then to preserve after adjustment thumbnail photo and EXIF information to database;
Client sends instruction and read picture data from picture data storehouse, high in the clouds, loads photo thumbnail;
When client is selected to browse photo former figure, load the former figure of photo from high in the clouds, and according to the value of the image direction orientation in the EXIF information of this photo, show after automatic angle adjustment;
When client is selected to preserve picture, download former figure and be saved in this locality.
2. the method for a kind of automatic adjustment photo angles of display according to claim 1, is characterized in that, also comprise the method for uploading pictures to high in the clouds:
S01, client and high in the clouds are connected by the one of http or tcp;
S02, client upload photo is to high in the clouds;
S03, after high in the clouds receives the photo of client upload, reads the EXIF information of photo;
S04, according to the value of image direction Orientation in EXIF information, draws the orientation angle of photo, if there is no EXIF information, then giving tacit consent to Orientation value is 1, and namely photo does not need rotation correction;
S05, generates photo thumbnail, according to photo wide high proportion, generate the shrinkage figure of equal proportion the ratio of width to height, and according to image direction, the direction of automatic calibration thumbnail, is then saved in the position of specifying;
S06, the photo original image that preservation receives is to respective memory locations;
S07, preserve photo EXIF information as image angle, the information such as photo is wide, and photo is high, and photo thumbnail path, the former figure path of photo, in database table, facilitates user to inquire about and browses.
3. the method for a kind of automatic adjustment photo angles of display according to claim 1, is characterized in that, also comprise the method browsing photo on the client:
S01, client and high in the clouds are connected by the wherein one of http or tcp;
S02, picture data is read in high in the clouds from picture data storehouse;
S03, client downloads photo thumbnail and loaded and displayed from high in the clouds;
S04, when user clicks photo, when browsing large picture, client downloads large picture from high in the clouds, and according to the value of the image direction orientation in the EXIF information of this photo, is automatically rotated to respective angles, thus does display direction automatic calibration;
S05, when user preserves former figure, then client directly preserves the former figure of download, does not now need to do correction for direction.
4. the method for a kind of automatic adjustment photo angles of display according to claim 1, is characterized in that, the scope of the value of the image direction Orientation in described EXIF information is the arbitrary natural number between 1-8.
5. the method for a kind of automatic adjustment photo angles of display according to claim 1, is characterized in that, described angle adjustment is included in the angle adjustment of high in the clouds according to the value contrast blade thumbnail of the orientation in the EXIF information of photo; When the former figure of client display photo, according to the angles of display adjustment of the former figure of value comparison film of the orientation in the EXIF information of photo.
CN201510365254.8A 2015-06-29 2015-06-29 A kind of method of automatic adjustment photo angles of display Pending CN105227861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510365254.8A CN105227861A (en) 2015-06-29 2015-06-29 A kind of method of automatic adjustment photo angles of display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510365254.8A CN105227861A (en) 2015-06-29 2015-06-29 A kind of method of automatic adjustment photo angles of display

Publications (1)

Publication Number Publication Date
CN105227861A true CN105227861A (en) 2016-01-06

Family

ID=54996510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510365254.8A Pending CN105227861A (en) 2015-06-29 2015-06-29 A kind of method of automatic adjustment photo angles of display

Country Status (1)

Country Link
CN (1) CN105227861A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111199517A (en) * 2019-12-17 2020-05-26 航天信息股份有限公司 Image rotation method and system with large occupied space

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202836A (en) * 2007-07-02 2008-06-18 深圳创维-Rgb电子有限公司 Electronic inductor and method of checking picture data
CN101841603A (en) * 2010-05-12 2010-09-22 中兴通讯股份有限公司 Method for implementing automatic adjustment of photo direction and mobile terminal
CN102395011A (en) * 2011-10-14 2012-03-28 深圳创维-Rgb电子有限公司 Method of picture autorotation and television
CN202261557U (en) * 2011-06-27 2012-05-30 谈天霆 System of utilizing cloud storage via wireless WIFI technology by digital camera
US20140098188A1 (en) * 2012-10-10 2014-04-10 Samsung Electronics Co., Ltd. Multi display device and method of photographing thereof
CN104252697A (en) * 2013-06-26 2014-12-31 腾讯科技(深圳)有限公司 Method and apparatus for rotating photo automatically, and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202836A (en) * 2007-07-02 2008-06-18 深圳创维-Rgb电子有限公司 Electronic inductor and method of checking picture data
CN101841603A (en) * 2010-05-12 2010-09-22 中兴通讯股份有限公司 Method for implementing automatic adjustment of photo direction and mobile terminal
CN202261557U (en) * 2011-06-27 2012-05-30 谈天霆 System of utilizing cloud storage via wireless WIFI technology by digital camera
CN102395011A (en) * 2011-10-14 2012-03-28 深圳创维-Rgb电子有限公司 Method of picture autorotation and television
US20140098188A1 (en) * 2012-10-10 2014-04-10 Samsung Electronics Co., Ltd. Multi display device and method of photographing thereof
CN104252697A (en) * 2013-06-26 2014-12-31 腾讯科技(深圳)有限公司 Method and apparatus for rotating photo automatically, and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111199517A (en) * 2019-12-17 2020-05-26 航天信息股份有限公司 Image rotation method and system with large occupied space

Similar Documents

Publication Publication Date Title
US11956533B2 (en) Accessing media at a geographic location
US11122200B2 (en) Supplying content aware photo filters
US10887543B2 (en) Automatic adjustment of video orientation
RU2639651C2 (en) Image identification and organization according to model without user intervention
US10404915B1 (en) Method and system for panoramic video image stabilization
US20180033208A1 (en) Telelocation: location sharing for users in augmented and virtual reality environments
US9152313B2 (en) Unified picture access across devices
US20120102165A1 (en) Crowdsourcing location based applications and structured data for location based applications
CN104639832A (en) Panoramic photography method and terminal
CN102724402A (en) Shooting device as well as processing method and processing device of shooting image
CN103647916A (en) Picture storage method and apparatus thereof
US11490032B2 (en) Method and apparatus for creating and displaying visual media on a device
CN100477673C (en) Mobile communication terminal with camera and image taking method thereof
CN102843425A (en) Method based on cloud storage instead of local storage, and communication terminal
US9881403B2 (en) Portable electronic device with a creative artworks picture application
CN110166790B (en) Live photo broadcasting system with face recognition function and method thereof
CN105227861A (en) A kind of method of automatic adjustment photo angles of display
US20190114675A1 (en) Method and system for displaying relevant advertisements in pictures on real time dynamic basis
KR102166656B1 (en) Apparatus and method for acquiring image
CN110036415A (en) A kind of generation method and system of 3-D image
CN104184811A (en) System and method for achieving network sharing of multiple photos
CN105554052A (en) Server photograph information remote synchronous modification method
CN105335591A (en) Method and apparatus for providing background image of software
CN107948528A (en) Camera terminal support device and system for pan-shot
CN113704527B (en) Three-dimensional display method, three-dimensional display device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160106