CN103457937A - Method and system for browsing pictures of shared file - Google Patents

Method and system for browsing pictures of shared file Download PDF

Info

Publication number
CN103457937A
CN103457937A CN2013103596445A CN201310359644A CN103457937A CN 103457937 A CN103457937 A CN 103457937A CN 2013103596445 A CN2013103596445 A CN 2013103596445A CN 201310359644 A CN201310359644 A CN 201310359644A CN 103457937 A CN103457937 A CN 103457937A
Authority
CN
China
Prior art keywords
picture
compressed
file
server
compressed picture
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
CN2013103596445A
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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN2013103596445A priority Critical patent/CN103457937A/en
Publication of CN103457937A publication Critical patent/CN103457937A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and system for browsing pictures of a shared file. The method for browsing the pictures of the shared file comprises the following steps that a server judges whether a target picture is compressed or not; if the target picture is compressed, the server sends URL information of the compressed picture of the target picture to a player terminal; if the target picture is not compressed, the server compresses the target picture and sends URL information of the compressed picture of the target picture to the player terminal; when a next pre-browsed picture is not compressed, the server compresses the next pre-browsed picture; the player terminal outputs an HTTP request to the server according to the URL information; the server receives the HTTP request and sends the data of the compressed picture to the player terminal according to the HTTP request, and then the player terminal displays the compressed picture. The method and system for browsing the pictures of the shared file improve the speed for browsing the shared pictures.

Description

The picture browsing method of shared file and system
Technical field
The present invention relates to the multimedia application field, particularly a kind of picture browsing method of shared file and system.
Background technology
Development along with Radio Transmission Technology, WLAN (as family lan, ' Office LAN) is popularized gradually in daily life, increasing wireless device also occurs in a WLAN, utilize wireless network to realize that within closely seamless the sharing of the data resource between wireless device can bring great convenience for the user.But while adopting at present standard DLNA agreement browsing multimedia file, in transmitting procedure, when picture file that the user selects to browse, at first by after this picture file compression, and then the picture file after compressing is sent to the wireless device of playing this picture file, therefore make the loading velocity of picture file slower, thereby cause the speed of browsing pictures slower, the problem such as can cause that internal memory overflows when serious.
Summary of the invention
Main purpose of the present invention is to provide a kind of picture browsing method of shared file, is intended to improve the surfing to image sharing.
In order to realize goal of the invention, the invention provides a kind of picture browsing method of shared file, the picture browsing method of this shared file comprises the following steps:
Server judges that whether Target Photo is compressed;
If by described server, the URL information of the compressed picture of described Target Photo is sent to playback terminal;
If not, by the described Target Photo of described server compresses, the URL information of the compressed picture of described Target Photo is sent to playback terminal;
When next pre-browsing pictures is not compressed, next pre-browsing pictures of described server compresses;
Playback terminal is asked to described server according to described URL information output HTTP;
Described server receives described HTTP request, and transmits described compressed picture data to playback terminal according to described HTTP request, for playback terminal, plays described compressed picture.
Preferably, before judging the whether compressed step of Target Photo, the described server of execution also comprises:
Control terminal shows the file shared with described control terminal each server in consolidated network;
Control terminal receives the operational order of user's input, and the operational order export target pictorial information of inputting according to the user is to described server.
Preferably, the step of described server compresses picture specifically comprises:
The size of the described picture of equal proportion convergent-divergent, and produce the compressed picture after convergent-divergent;
Preserve described compressed picture.
Preferably, in the size of carrying out described equal proportion scaling pictures, and also comprise before the step of the compressed picture after the generation convergent-divergent:
Judge whether server exists the SD card;
If, under SD card root, exist while being used for storing the file of compressed picture, or under SD card root, exist in the file situation for storing compressed picture when establishment is successful for the file that stores compressed picture, compression is set and is masked as true value, and proceed to the size of carrying out described equal proportion scaling pictures, and produce the compressed picture step after convergent-divergent; While existing in the file situation for storing compressed picture the file created for storing compressed picture failed under SD card root, compression is set and is masked as falsity, and finish this squeeze operation;
If not, in internal memory, exist while being used for storing the file of compressed picture, or when internal memory does not exist in the file situation for storing compressed picture the file created for storing compressed picture successful, compression is set and is masked as true value, and proceed to the size of carrying out described equal proportion scaling pictures, and produce the compressed picture step after convergent-divergent; When internal memory does not exist in the file situation for storing compressed picture the file created for storing compressed picture failed, compression is set and is masked as falsity, and finish this squeeze operation.
Preferably, in the size of carrying out described equal proportion scaling pictures, and also comprise after the step of the compressed picture after the generation convergent-divergent:
Absolute path with described picture is named described compressed picture.
The present invention also provides a kind of picture viewing system of shared file, and the picture viewing system of this shared file comprises server and playback terminal, and wherein, described server comprises judge module, the first processing module and the first transport module,
Described judge module, whether compressed for judging Target Photo; When described Target Photo is compressed, by the first processing module, the URL information of the compressed picture of described Target Photo is sent to playback terminal; When described Target Photo is not compressed, by described the first processing module, compress described Target Photo, the URL information of the compressed picture of described Target Photo is sent to playback terminal;
Described the first processing module, also, for when next pre-browsing pictures is not compressed, compress next pre-browsing pictures;
Described playback terminal, for asking to described server according to described URL information output HTTP;
Described the first transport module, for receiving described HTTP request, and transmit described compressed picture data to playback terminal according to described HTTP request, for playback terminal, plays described compressed picture.
Preferably, the picture viewing system of described shared file also comprises control terminal, and described control terminal comprises display module and the second transport module,
Described display module, for showing the file shared in each server of consolidated network with described control terminal;
Described the second transport module, for receiving the operational order of user's input, and the operational order export target pictorial information of inputting according to the user is to described server.
Preferably, described the first processing module is also for the size of the described picture of equal proportion convergent-divergent, and produces the compressed picture after convergent-divergent; Also for preserving described compressed picture.
Preferably, described server also comprises the second processing module, and described judge module is also for judging whether server exists the SD card;
When there is the SD card in server, when described the second processing module is used for storing the file of compressed picture for existing under SD card root, or under SD card root, exist in the file situation for storing compressed picture when establishment is successful for the file that stores compressed picture, compression is set and is masked as true value, and carried out the size of described equal proportion scaling pictures the operation that produces the compressed picture after convergent-divergent by described the first processing module; While existing in the file situation for storing compressed picture the file created for storing compressed picture failed under SD card root, compression is set and is masked as falsity, and finish this squeeze operation;
When there is not the SD card in server, when described the second processing module is used for storing the file of compressed picture for existing at internal memory, or when internal memory does not exist in the file situation for storing compressed picture the file created for storing compressed picture successful, compression is set and is masked as true value, and carried out the size of described equal proportion scaling pictures the operation that produces the compressed picture after convergent-divergent by described the first processing module; When internal memory does not exist in the file situation for storing compressed picture the file created for storing compressed picture failed, compression is set and is masked as falsity, and finish this squeeze operation.
Preferably, described the first processing module is also named described compressed picture for the absolute path with described picture.
The present invention judges that by server whether Target Photo and next pre-browsing pictures be compressed, and when Target Photo is not compressed, the compression goal picture, when next pre-browsing pictures is not compressed, compress next pre-browsing pictures; Server is sent to playback terminal by the URL information of the compressed picture of Target Photo, playback terminal is asked to described server according to described URL information output HTTP, server transmits described compressed picture data to playback terminal according to described HTTP request, for playback terminal, plays described compressed picture., it is not compressed if compressed by judging that whether next pre-browsing pictures is compressed due to the present invention, therefore effectively improved the surfing to image sharing.
The accompanying drawing explanation
The schematic flow sheet of picture browsing method one embodiment that Fig. 1 is shared file of the present invention;
The schematic flow sheet of another embodiment of picture browsing method that Fig. 2 is shared file of the present invention;
The schematic flow sheet of an embodiment of server compresses picture in the picture browsing method that Fig. 3 is shared file of the present invention;
The schematic flow sheet of another embodiment of server compresses picture in the picture browsing method that Fig. 4 is shared file of the present invention;
The schematic flow sheet of the another embodiment of server compresses picture in the picture browsing method that Fig. 5 is shared file of the present invention;
The structural representation of the picture viewing system that Fig. 6 is shared file of the present invention;
The structural representation that Fig. 7 is server in Fig. 6;
The structural representation that Fig. 8 is control terminal in Fig. 6.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The invention provides a kind of picture browsing method of shared file.
With reference to Fig. 1, the schematic flow sheet of picture browsing method one embodiment that Fig. 1 is shared file of the present invention.The picture browsing method of the shared file that the present embodiment provides comprises the following steps:
Step S10, server judges that whether Target Photo is compressed; If, perform step S20, if not, perform step S30.
Above-mentioned server and playback terminal are positioned at same local area network (LAN), and have the server that at least one has shared picture resource in this local area network (LAN), and this server can be computer, smart mobile phone etc.The user can pass through the shared picture of a control appliance browser server, and specify a Target Photo, this Target Photo is the user and wants the picture of playing, and control appliance to server, judges that by server whether this Target Photo is compressed by the Target Photo information output.Particularly, server judges that whether Target Photo is compressed and judges that the not compressed method of next pre-browsing pictures can be: according to the absolute path of Target Photo and next pre-browsing pictures, utilize HashMap to search above-mentioned Target Photo or the whether compressed mistake of next pre-browsing pictures.After it should be noted that the compressed success of picture, the compressive state of picture is stored in HashMap, and makes the absolute path of Target Photo, absolute path and the compressive state of compressed picture be mapping relations.
Step S20, described server is by the URL(Uniform Resource Locator of the compressed picture of described Target Photo, URL(uniform resource locator)) information is sent to playback terminal;
When Target Photo is compressed, server will be searched according to the absolute path of Target Photo the URL(absolute path of the compressed picture that obtains Target Photo), then this URL is sent to playback terminal with the form of instruction.
Step S30, the described Target Photo of described server compresses, be sent to playback terminal by the URL information of the compressed picture of described Target Photo;
Step S40, when next pre-browsing pictures is not compressed, next pre-browsing pictures of described server compresses;
When Target Photo is not compressed, server is the compression goal picture, and the compressive state of this Target Photo is stored in HashMap, and makes the absolute path of Target Photo, absolute path and the compressive state of its compressed picture be mapping relations.Server is by the URL(absolute path of the compressed picture of Target Photo) be sent to playback terminal with the form of instruction.After executing above-mentioned steps S30 and step S40, by server, built-in sorted lists obtains the absolute path of next pre-browsing pictures, and judge that according to this absolute path whether next pre-browsing pictures is compressed, when next pre-browsing pictures is compressed, finish this squeeze operation; When next pre-browsing pictures is not compressed, next pre-browsing pictures of server compresses, and the compressive state of next pre-browsing pictures is stored in HashMap, and make the absolute path of next pre-browsing pictures, absolute path and the compressive state of its compressed picture be mapping relations.
Step S50, playback terminal is according to described URL information output HTTP(Hypertext Transfer Protocol, HTML (Hypertext Markup Language)) ask to described server.
Above-mentioned playback terminal can be the smart mobile phone in same local area network (LAN), computer, IOS smart machine and intelligent TV set etc. with above-mentioned server.Playback terminal is resolved the instruction that above-mentioned server sends, and when being resolved to URL information, according to this URL information output HTTP, asks to described server.
Step S60, described server receives described HTTP request, and transmits described compressed picture data to playback terminal according to described HTTP request, for playback terminal, plays described compressed picture.
The built-in Web server of above-mentioned server, preferably, the http server of the built-in lightweight of the server of the present embodiment, this http server receives the HTTP request sent by playback terminal, and resolve the HTTP request by http server, and obtaining the URL information of above-mentioned compressed picture, http server returns to playback terminal according to this URL information by the compressed picture data, for playback terminal, plays compressed picture.
The present invention judges that by server whether Target Photo and next pre-browsing pictures be compressed, and when Target Photo is not compressed, the compression goal picture, when next pre-browsing pictures is not compressed, compress next pre-browsing pictures; Server is sent to playback terminal by the URL information of the compressed picture of Target Photo, playback terminal is asked to server according to described URL information output HTTP, server transmits the compressed picture data to playback terminal according to described HTTP request, for playback terminal, plays compressed picture., it is not compressed if compressed by judging that whether next pre-browsing pictures is compressed due to the present invention, therefore effectively improved the surfing to image sharing.
With reference to Fig. 2, the schematic flow sheet of another embodiment of picture browsing method that Fig. 2 is shared file of the present invention.Based on a upper embodiment, in the present embodiment, before carrying out above-mentioned steps S10, also comprise:
Step S70, control terminal shows the file shared with described control terminal each server in consolidated network.
Step S80, control terminal receives the operational order of user's input, and the operational order export target pictorial information of inputting according to the user is to described server.
In the present embodiment, above-mentioned control terminal can be smart mobile phone, computer or IOS smart machine.It should be noted that control terminal and playback terminal can be two autonomous devices, also can be located on same equipment, specifically can be arranged according to actual needs.The file-sharing of a collection has been installed on control terminal, the control software that the functions such as broadcasting and control are integrated, automatic Sampling network while controlling software startup, and control terminal is connected in above-mentioned local area network (LAN), then the server of the shared medium data in the automatic search local area network (LAN), and by controlling the server of software display and control terminal in same local area network (LAN), after selecting a destination server by the user, control terminal will show the shared file of this destination server, the user selects a destination folder, wherein, this destination folder is the interested file that comprises picture of user.After opening this destination folder, control terminal is by the thumbnail Showed Picture, and the user can browsing pictures.When the user is interested in a certain Target Photo, click the thumbnail of this Target Photo, be the operational order of user's input, control terminal is preserved the URL information of the current Target Photo of browsing automatically, and this URL information is sent to destination server.Should be noted that, after the user plays interested picture, when above-mentioned control software is exited to application, control terminal automatically sends one and releases order to server, server receives the rear release automatically completed above-mentioned compressed picture of releasing order, and prevents that internal memory from overflowing.
With reference to Fig. 3, the schematic flow sheet of an embodiment of server compresses picture in the picture browsing method that Fig. 3 is shared file of the present invention.Based on the first embodiment, in the present embodiment, the step of described server compresses picture specifically comprises:
Step S301, the size of the described picture of equal proportion convergent-divergent, and produce the compressed picture after convergent-divergent;
Step S302, preserve described compressed picture.
In the present embodiment, server is by the height and the width that obtain picture, and calculates a scale value, according to this scale value equal proportion, compresses this picture, produces a compressed picture after convergent-divergent.For example, the height of original image and width are respectively 3000 and 4000 pixels, if all dwindle 10 times of calculating with height and width, the scale value of the height of this picture and width is respectively 300 and 400 pixels, finally according to this scale value, come equal proportion to compress this picture, the height of compressed picture and width are respectively 300 pixels and 400 pixels.The compressed picture obtained by the method is undistorted, so the picture that the user watches at playback terminal is distortionless compressed picture, has improved user satisfaction.
With reference to Fig. 4, the schematic flow sheet of another embodiment of server compresses picture in the picture browsing method that Fig. 4 is shared file of the present invention.Based on the 3rd embodiment, in the present embodiment, before carrying out described step S301, also comprise:
Step S303, judge whether server exists SD(Secure Digital, safe digital) card.When there is the SD card in described server, execution step S304; When there is not the SD card in described server, execution step S308;
Whether step S304, judge under SD card root and exist for storing the file of compressed picture; If exist and perform step S305, if do not exist, perform step S306;
Step S305, arrange compression and be masked as true value, and proceed to execution step S301;
Step S306 creates for storing the file of compressed picture in the SD card, and whether the described file of judgement establishment is successful; If create for storing the file success of compressed picture, return to execution step S305, if create for storing the file failure of compressed picture, perform step S307;
Step S307, arrange compression and be masked as falsity, and finish this squeeze operation.
Whether step S308, judge in internal memory and exist for storing the file of compressed picture; If exist, return to execution step S305, if do not exist, perform step S309;
Step S309 creates for storing the file of compressed picture in internal memory, and whether the described file of judgement establishment is successful; If create for storing the file success of compressed picture, return to execution step S305, if create for storing the file failure of compressed picture, return to execution step S307;
In the present embodiment, due to general by mobile device as shared file in the remote browse servers such as smart mobile phone, panel computer, and the internal memory of mobile device is limited, and mobile device generally all is provided with the SD card, the present embodiment preferably will be created in for the file that stores compressed picture the SD card, thereby when mobile device is provided with the SD card, can effectively save the internal memory of mobile device, while having prevented that the user from playing a large amount of picture by mobile device, cause continuing playing pictures because the mobile device internal memory overflows, improved user's satisfaction.
With reference to Fig. 5, the schematic flow sheet of the another embodiment of server compresses picture in the picture browsing method that Fig. 5 is shared file of the present invention.Based on the 4th embodiment, in the present embodiment, after carrying out described step S301, also comprise:
Step S310, named described compressed picture with the absolute path of described picture.
In the present embodiment, because the absolute path with described picture is named compressed picture, thereby while having prevented that picture under being positioned at different paths from bearing the same name, cause the picture after compression to be born the same name, and then make the user can not normally watch the situation of picture.
The present invention also provides a kind of picture viewing system of shared file, for realizing said method.With reference to Fig. 6 and Fig. 7, the structural representation of picture viewing system one embodiment that Fig. 6 is shared file of the present invention; The structural representation that Fig. 7 is server in Fig. 6.The picture viewing system of the shared file that the present embodiment provides comprises server 10 and playback terminal 20, and described server 10 comprises judge module 101, the first processing module 102 and the first transport module 103; Wherein,
Described judge module 101, whether compressed for judging Target Photo.
Above-mentioned server 10 and playback terminal 20 are positioned at same local area network (LAN), and have at least one server of having shared picture resource 10 in this local area network (LAN), and this server 10 can be computer, smart mobile phone etc.The user can pass through the shared picture of a control appliance browser server 10, and specify a Target Photo, this Target Photo is the user and wants the picture of playing, and control appliance to server 10, judges that by the judge module 101 of server 10 whether this Target Photo is compressed by the Target Photo information output.Particularly, above-mentioned judge module 101 judges that whether Target Photo is compressed and judges that the not compressed method of next pre-browsing pictures can be: according to the absolute path of Target Photo and next pre-browsing pictures, utilize HashMap to search above-mentioned Target Photo or the whether compressed mistake of next pre-browsing pictures.After it should be noted that the compressed success of picture, the compressive state of picture is stored in HashMap, and makes the absolute path of Target Photo, absolute path and the compressive state of compressed picture be mapping relations.
Described the first processing module 102, for when Target Photo is compressed, be sent to playback terminal 20 by the URL information of the compressed picture of described Target Photo, and, when next pre-browsing pictures is not compressed, compress next pre-browsing pictures.
When Target Photo is compressed, the first processing module 102 will be searched according to the absolute path of Target Photo the URL(absolute path of the compressed picture that obtains Target Photo), then this URL is sent to playback terminal 20 with the form of instruction.Simultaneously by server 10, built-in sorted lists obtains the absolute path of next pre-browsing pictures to the first processing module 102, and judge that according to this absolute path whether next pre-browsing pictures is compressed, when next pre-browsing pictures is compressed, finish this squeeze operation; When next pre-browsing pictures is not compressed, next pre-browsing pictures of server compresses, and the compressive state of next pre-browsing pictures is stored in HashMap, and make the absolute path of next pre-browsing pictures, absolute path and the compressive state of its compressed picture be mapping relations.
Described the first processing module 102 is also for when Target Photo is not compressed, compress described Target Photo, the URL information of the compressed picture of described Target Photo is sent to playback terminal 20, and, when next pre-browsing pictures is not compressed, compresses next pre-browsing pictures.
When Target Photo is not compressed, the first processing module 102 is the compression goal picture, and the compressive state of this Target Photo is stored in HashMap, and makes the absolute path of Target Photo, absolute path and the compressive state of its compressed picture be mapping relations.The first processing module 102 is by the URL(absolute path of the compressed picture of Target Photo) be sent to playback terminal 20 with the form of instruction.Simultaneously by server 10, built-in sorted lists obtains the absolute path of next pre-browsing pictures to the first processing module 102, and judge that according to this absolute path whether next pre-browsing pictures is compressed, when next pre-browsing pictures is compressed, finish this squeeze operation; When next pre-browsing pictures is not compressed, next pre-browsing pictures of server compresses, and the compressive state of next pre-browsing pictures is stored in HashMap, and make the absolute path of next pre-browsing pictures, absolute path and the compressive state of its compressed picture be mapping relations.
Described playback terminal 20, for asking to described server 10 according to described URL information output HTTP.
In the present embodiment, above-mentioned playback terminal 20 can be smart mobile phone, computer, IOS smart machine and the intelligent TV set etc. in same local area network (LAN) with above-mentioned server 10.Playback terminal 20 is resolved the instruction that above-mentioned server 10 sends, and when being resolved to URL information, according to this URL information output HTTP, asks to described server 10.
Described the first transport module 103, for receiving described HTTP request, and transmit described compressed picture data to playback terminal 20 according to described HTTP request, for playback terminal 20, plays described compressed picture.
In the present embodiment, the first transport module 103 comprises a Web server, preferably, the http server that the Web server of the present embodiment is a lightweight, this http server receives the HTTP request sent by playback terminal 20, and resolves this HTTP request by http server, and obtains the URL information of above-mentioned compressed picture, http server returns to playback terminal 20 according to this URL information by the compressed picture data, for playback terminal 20, plays compressed picture.
The present invention judges that by server 10 whether Target Photo and next pre-browsing pictures be compressed, and when Target Photo is not compressed, the compression goal picture, when next pre-browsing pictures is not compressed, compress next pre-browsing pictures; Server 10 is sent to playback terminal 20 by the URL information of the compressed picture of Target Photo, playback terminal 20 is asked to server 10 according to described URL information output HTTP, server 10 transmits the compressed picture data to playback terminal 20 according to described HTTP request, for playback terminal 20, plays compressed picture., it is not compressed if compressed by judging that whether next pre-browsing pictures is compressed due to the present invention, therefore effectively improved the surfing to image sharing.
In conjunction with reference to Fig. 8, the structural representation that Fig. 8 is control terminal in Fig. 6.Based on above-described embodiment, in the present embodiment, the picture viewing system of described shared file also comprises control terminal 30, and described control terminal 30 comprises display module 301 and the second transport module 302,
Described display module 301, for showing the file shared in each server 10 of consolidated network with described control terminal 30;
Described the second transport module 302, for receiving the operational order of user's input, and the operational order export target pictorial information of inputting according to the user is to described server 10.
In the present embodiment, above-mentioned control terminal 30 can be smart mobile phone, computer or IOS smart machine.It should be noted that control terminal 30 and playback terminal 20 can be two autonomous devices, also can be located on same equipment, specifically can be arranged according to actual needs.The file-sharing of a collection has been installed on control terminal 30, the control software that the functions such as broadcasting and control are integrated, automatic Sampling network while controlling software startup, and control terminal 30 is connected in above-mentioned local area network (LAN), then the server 10 of the shared medium data in the automatic search local area network (LAN), and by the server 10 of display module 301 display and control terminals 30 in same local area network (LAN), after selecting a destination server 10 by the user, display module 301 will show the shared file of this destination server 10, the user selects a destination folder, wherein, this destination folder is the interested file that comprises picture of user.After opening this destination folder, control terminal 30 is by the thumbnail Showed Picture, and the user can browsing pictures.When the user is interested in a certain Target Photo, click the thumbnail of this Target Photo, be the operational order of user's input, the second transport module 302 is preserved the URL information of the current Target Photo of browsing automatically, and this URL information is sent to destination server 10.Should be noted that, after the user plays interested picture, when above-mentioned control software is exited to application, the second transport module 302 automatically sends one and releases order to server 10, server 10 receives the rear release automatically completed above-mentioned compressed picture of releasing order, and prevents that internal memory from overflowing.
Based on the first embodiment, in the present embodiment, described the first processing module 102 is also for the size of the described picture of equal proportion convergent-divergent, and produces the compressed picture after convergent-divergent; Also for preserving described compressed picture.
In the present embodiment, the first processing module 102 is by the height and the width that obtain picture, and calculates a scale value, according to this scale value equal proportion, compresses this picture, produces a compressed picture after convergent-divergent.For example, the height of the original image that the first processing module 102 is obtained and width are respectively 3000 pixels and 4000 pixels, if all dwindle 10 times of calculating with height and width, the scale value of the height of this picture and width is respectively 300 and 400 pixels, last the first processing module 102 comes equal proportion to compress this picture according to this scale value, and the height of compressed picture and width are respectively 300 pixels and 400 pixels.The compressed picture obtained by the method is undistorted, so the picture that the user watches at playback terminal 20 is distortionless compressed picture, has improved user satisfaction.
Based on the 3rd embodiment, in the present embodiment, described server 10 also comprises the second processing module 104, and described judge module 101 is also for judging whether server 10 exists the SD card;
When there is the SD card in server 10, whether described judge module 101 also exists for storing the file of compressed picture for judging under SD card root, if exist, by described the second processing module 104, compression is set and is masked as true.If do not exist under SD card root for storing the file of compressed picture, by the second processing module 104, in the SD card, created for storing the file of compressed picture, if create the file success, compression is set and is masked as true; If create the file failure, compression is set and is masked as falsity, and finish this squeeze operation.
When there is not the SD card in server 10, described judge module 101, also for judging whether internal memory exists for storing the file of compressed picture, if exist, arranges compression by described the second processing module 104 and is masked as true.If do not exist in internal memory for storing the file of compressed picture, by the second processing module 104, in internal memory, created for storing the file of compressed picture, if create the file success, compression is set and is masked as true; If create the file failure, compression is set and is masked as falsity, and finish this squeeze operation.
It should be noted that and be denoted as true time when compression, mean that the first processing module 102 can carry out follow-up squeeze operation.
In the present embodiment, due to general by mobile device as shared file in the remote browse servers 10 such as smart mobile phone, panel computer, and the internal memory of mobile device is limited, and mobile device generally all is provided with the SD card, the present embodiment preferably will be created in for the file that stores compressed picture the SD card, thereby when mobile device is provided with the SD card, can effectively save the internal memory of mobile device, while having prevented that the user from playing a large amount of picture by mobile device, cause continuing playing pictures because the mobile device internal memory overflows, improved user's satisfaction.
Based on the 4th embodiment, in the present embodiment, described the first processing module 102 is also named described compressed picture for the absolute path with described picture.
In the present embodiment, because the first processing module 102 is named compressed picture with the absolute path of described picture, thereby while having prevented that picture under being positioned at different paths from bearing the same name, cause the picture after compression to be born the same name, and then make the user can not normally watch the situation of picture.
These are only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.

Claims (10)

1. the picture browsing method of a shared file, is characterized in that, comprises the following steps:
Server judges that whether Target Photo is compressed;
If by described server, the URL information of the compressed picture of described Target Photo is sent to playback terminal;
If not, by the described Target Photo of described server compresses, the URL information of the compressed picture of described Target Photo is sent to playback terminal;
When next pre-browsing pictures is not compressed, next pre-browsing pictures of described server compresses;
Playback terminal is asked to described server according to described URL information output HTTP;
Described server receives described HTTP request, and transmits described compressed picture data to playback terminal according to described HTTP request, for playback terminal, plays described compressed picture.
2. the picture browsing method of shared file as claimed in claim 1, is characterized in that, before the described server of execution judges the whether compressed step of Target Photo, also comprises:
Control terminal shows the file shared with described control terminal each server in consolidated network;
Control terminal receives the operational order of user's input, and the operational order export target pictorial information of inputting according to the user is to described server.
3. the picture browsing method of shared file as claimed in claim 1, is characterized in that, the step of described server compresses picture specifically comprises:
The size of the described picture of equal proportion convergent-divergent, and produce the compressed picture after convergent-divergent;
Preserve described compressed picture.
4. the picture browsing method of shared file as claimed in claim 3, is characterized in that, in the size of carrying out described equal proportion scaling pictures, and also comprises before the step of the compressed picture after the generation convergent-divergent:
Judge whether server exists the SD card;
If, under SD card root, exist while being used for storing the file of compressed picture, or under SD card root, exist in the file situation for storing compressed picture when establishment is successful for the file that stores compressed picture, compression is set and is masked as true value, and proceed to the size of carrying out described equal proportion scaling pictures, and produce the compressed picture step after convergent-divergent; While existing in the file situation for storing compressed picture the file created for storing compressed picture failed under SD card root, compression is set and is masked as falsity, and finish this squeeze operation;
If not, in internal memory, exist while being used for storing the file of compressed picture, or when internal memory does not exist in the file situation for storing compressed picture the file created for storing compressed picture successful, compression is set and is masked as true value, and proceed to the size of carrying out described equal proportion scaling pictures, and produce the compressed picture step after convergent-divergent; When internal memory does not exist in the file situation for storing compressed picture the file created for storing compressed picture failed, compression is set and is masked as falsity, and finish this squeeze operation.
5. the picture browsing method of shared file as claimed in claim 4, is characterized in that, in the size of carrying out described equal proportion scaling pictures, and also comprises after the step of the compressed picture after the generation convergent-divergent:
Absolute path with described picture is named described compressed picture.
6. the picture viewing system of a shared file, is characterized in that, comprises server and playback terminal, and wherein, described server comprises judge module, the first processing module and the first transport module,
Described judge module, whether compressed for judging Target Photo; When described Target Photo is compressed, by the first processing module, the URL information of the compressed picture of described Target Photo is sent to playback terminal; When described Target Photo is not compressed, by described the first processing module, compress described Target Photo, the URL information of the compressed picture of described Target Photo is sent to playback terminal;
Described the first processing module, also, for when next pre-browsing pictures is not compressed, compress next pre-browsing pictures;
Described playback terminal, for asking to described server according to described URL information output HTTP;
Described the first transport module, for receiving described HTTP request, and transmit described compressed picture data to playback terminal according to described HTTP request, for playback terminal, plays described compressed picture.
7. the picture viewing system of shared file as claimed in claim 6, is characterized in that, also comprises control terminal, and described control terminal comprises display module and the second transport module,
Described display module, for showing the file shared in each server of consolidated network with described control terminal;
Described the second transport module, for receiving the operational order of user's input, and the operational order export target pictorial information of inputting according to the user is to described server.
8. the picture viewing system of shared file as claimed in claim 6, is characterized in that, described the first processing module is also for the size of the described picture of equal proportion convergent-divergent, and produce the compressed picture after convergent-divergent; Also for preserving described compressed picture.
9. the picture viewing system of shared file as claimed in claim 8, is characterized in that, described server also comprises the second processing module, and described judge module is also for judging whether server exists the SD card;
When there is the SD card in server, when described the second processing module is used for storing the file of compressed picture for existing under SD card root, or under SD card root, exist in the file situation for storing compressed picture when establishment is successful for the file that stores compressed picture, compression is set and is masked as true value, and carried out the size of described equal proportion scaling pictures the operation that produces the compressed picture after convergent-divergent by described the first processing module; While existing in the file situation for storing compressed picture the file created for storing compressed picture failed under SD card root, compression is set and is masked as falsity, and finish this squeeze operation;
When there is not the SD card in server, when described the second processing module is used for storing the file of compressed picture for existing at internal memory, or when internal memory does not exist in the file situation for storing compressed picture the file created for storing compressed picture successful, compression is set and is masked as true value, and carried out the size of described equal proportion scaling pictures the operation that produces the compressed picture after convergent-divergent by described the first processing module; When internal memory does not exist in the file situation for storing compressed picture the file created for storing compressed picture failed, compression is set and is masked as falsity, and finish this squeeze operation.
10. the picture viewing system of shared file as claimed in claim 9, is characterized in that, described the first processing module is also named described compressed picture for the absolute path with described picture.
CN2013103596445A 2013-08-16 2013-08-16 Method and system for browsing pictures of shared file Pending CN103457937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103596445A CN103457937A (en) 2013-08-16 2013-08-16 Method and system for browsing pictures of shared file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103596445A CN103457937A (en) 2013-08-16 2013-08-16 Method and system for browsing pictures of shared file

Publications (1)

Publication Number Publication Date
CN103457937A true CN103457937A (en) 2013-12-18

Family

ID=49739891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103596445A Pending CN103457937A (en) 2013-08-16 2013-08-16 Method and system for browsing pictures of shared file

Country Status (1)

Country Link
CN (1) CN103457937A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306543A (en) * 2015-09-25 2016-02-03 深圳Tcl数字技术有限公司 Picture sharing method and device
CN105389152A (en) * 2015-11-17 2016-03-09 小米科技有限责任公司 Picture projecting method and apparatus and terminal device
CN107194975A (en) * 2017-02-09 2017-09-22 北京诸葛找房信息技术有限公司 The method for improving the speed of mobile phone app download pictures

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025740A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Automatic play method of picture search result
CN101072222A (en) * 2006-05-12 2007-11-14 腾讯科技(深圳)有限公司 Picture tracking-browsing system and method based on point-to-point technology
CN101557389A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for dynamically scaling picture as required in request
CN102508851A (en) * 2011-09-27 2012-06-20 深圳市五巨科技有限公司 Image upload processing method and image upload processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025740A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Automatic play method of picture search result
CN101072222A (en) * 2006-05-12 2007-11-14 腾讯科技(深圳)有限公司 Picture tracking-browsing system and method based on point-to-point technology
CN101557389A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for dynamically scaling picture as required in request
CN102508851A (en) * 2011-09-27 2012-06-20 深圳市五巨科技有限公司 Image upload processing method and image upload processing system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306543A (en) * 2015-09-25 2016-02-03 深圳Tcl数字技术有限公司 Picture sharing method and device
WO2017049948A1 (en) * 2015-09-25 2017-03-30 深圳Tcl数字技术有限公司 Picture sharing method and device
CN105389152A (en) * 2015-11-17 2016-03-09 小米科技有限责任公司 Picture projecting method and apparatus and terminal device
CN105389152B (en) * 2015-11-17 2018-09-04 小米科技有限责任公司 Project the method, apparatus and terminal device of picture
CN107194975A (en) * 2017-02-09 2017-09-22 北京诸葛找房信息技术有限公司 The method for improving the speed of mobile phone app download pictures

Similar Documents

Publication Publication Date Title
US9813769B2 (en) Display device, information acquisition method, and information providing method
US10070159B2 (en) Method and apparatus for transmitting and receiving additional information in a broadcast communication system
US20150189036A1 (en) Offline caching method and apparatus
CN102484686B (en) For providing the method and apparatus of side information
CN103546453A (en) Cross-device multimedia playing method and device
CN103533428A (en) Method for releasing intelligent terminal webpage video to television for broadcasting and intelligent terminal
EP2933982A1 (en) Media stream transfer method and user equipment
US20110302603A1 (en) Content output system, content output method, program, terminal device, and output device
CN103686242A (en) Video playing method and system
CN103179190A (en) Method, device and system for transmitting pictures
US20130138770A1 (en) Apparatus and method for sharing web contents using inspector script
US20150156551A1 (en) Electronic device, image display method for use in the electronic device and storage medium for image display program
CN112449250B (en) Method, device, equipment and medium for downloading video resources
CN103457937A (en) Method and system for browsing pictures of shared file
CN102355588B (en) A kind of method and system of synchronous browsing electron album
KR101835884B1 (en) Method and apparatus for accessing one or more services of a device
CN101945233A (en) Method for looking up PPT (Power Point) and PDF (Portable Document Format) documents and television adopting same
CN102300129A (en) Method for interaction between television and computer
WO2016119610A1 (en) Web page loading method and user equipment
JP6219531B2 (en) Television program image frame capture device, television program image frame acquisition device, system and method
CN111404977B (en) Document remote demonstration and viewing method and terminal equipment
CN113497967A (en) Video frame switching method and device based on browser and storage medium
JP2007184708A (en) Broadcast content confirmation system and broadcast content confirmation method
EP3079312B1 (en) Method of service synchronization and sharing and multi-device control in digital home
CN103475684B (en) The method and device of integrated service information in remote control unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20131218