CN105282255A - Image transmission method and system - Google Patents

Image transmission method and system Download PDF

Info

Publication number
CN105282255A
CN105282255A CN201510744645.0A CN201510744645A CN105282255A CN 105282255 A CN105282255 A CN 105282255A CN 201510744645 A CN201510744645 A CN 201510744645A CN 105282255 A CN105282255 A CN 105282255A
Authority
CN
China
Prior art keywords
resolution
picture
terminal
address
judged result
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
CN201510744645.0A
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201510744645.0A priority Critical patent/CN105282255A/en
Publication of CN105282255A publication Critical patent/CN105282255A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the invention discloses an image transmission method to solve the problem that the required flow is big and the efficiency of transmission is low for the existing image transmission method as the original image needs to be uploaded to the server. The method disclosed by the embodiment of the invention comprises the steps as follows: acquiring a first terminal address of a sending terminal and the image resolution of an image to be sent; acquiring a second terminal address of a receiving terminal and the screen resolution; judging whether the first terminal address and the second terminal address belong to the same local area network to obtain an address judgment result; judging whether the image resolution and the screen resolution meet a preset matching condition to obtain a resolution judgment result; and if the first terminal address and the second terminal address belong to the same local area network and the image resolution and the screen resolution meet the preset matching condition, sending a P2P sending instruction to the sending terminal to enable the sending terminal to send the image to the receiving terminal through P2P. Another embodiment of the invention discloses an image transmission system.

Description

Picture transmission method and system
Technical field
The present invention relates to communication technique field, particularly relate to picture transmission method and system.
Background technology
In modern society, MSN is very popular, such as QQ, Skype, Gtalk etc., and user, when using these MSNs, often transmits picture each other.The conventional method of current MSN transmission picture is: former for picture figure is uploaded to server by transmitting terminal, picture is transmitted to receiving terminal by server again, wherein, server can send the former figure of picture to receiving terminal, also can send picture thumbnail to receiving terminal.
Because transmitting terminal needs former for picture figure to be uploaded to server, the flow therefore needed for picture transfer is larger.Further, in Internet Transmission, upstream rate is less than downstream rate, and the former figure of uploading pictures will reduce the efficiency of instant messaging picture transfer greatly to server.
Summary of the invention
Embodiments provide picture transmission method and system, can solve picture transmission method needs former for picture figure to be uploaded to server, and the required flow of transmission is large, and the problem that efficiency of transmission is low.
A kind of picture transmission method that the embodiment of the present invention provides, comprising:
Obtain the first terminal address of transmitting terminal and the photo resolution of picture to be sent;
Obtain the second terminal address and the screen resolution of receiving terminal;
Judge whether described first terminal address and described second terminal address belong to same local area network (LAN), obtain address judged result;
Judge whether described photo resolution and described screen resolution meet preset matching condition, obtain resolution judged result;
Be then send P2P and send instruction to described transmitting terminal if described address judged result and described resolution judged result are, make described transmitting terminal send described picture to described receiving terminal by P2P.
Alternatively, described method also comprises:
If described address judged result is for being and described resolution judged result is no, send adjustment transfer instruction to described transmitting terminal, described photo resolution is adjusted to by described transmitting terminal mate with described screen resolution, and sends the picture after adjustment to described receiving terminal by P2P.
Alternatively, described method also comprises:
If described address judged result is no, described resolution judged result is no, and described photo resolution is greater than described screen resolution, then obtain described picture from described transmitting terminal;
The photo resolution of described picture being turned down as mating with described screen resolution, obtaining compression figure;
Described compression figure is sent to described receiving terminal.
Alternatively, described method also comprises:
If described address judged result is no, described resolution judged result is no, and described photo resolution is less than described screen resolution, then obtain described picture from described transmitting terminal;
Described receiving terminal is sent to by after described picture packing compression.
Alternatively, described method also comprises:
Described picture is obtained from described transmitting terminal;
According to the multiple terminal resolution preset, correspondence adjustment is carried out to the photo resolution of described picture, obtain multiple adaptive pictures;
Judge whether that the history picture received from the second receiving terminal obtains request, if so, then obtains the second screen resolution of described second receiving terminal;
Obtain corresponding described adaptive picture according to the described second screen resolution inquiry terminal picture table of comparisons, the described terminal picture table of comparisons comprises the corresponding relation of described terminal resolution and described adaptive picture;
Described second receiving terminal is sent to by inquiring about the described adaptive picture obtained.
A kind of image transmission system that the embodiment of the present invention provides, comprising:
First terminal acquisition module, for the photo resolution of the first terminal address and picture to be sent that obtain transmitting terminal;
Second terminal acquisition module, for obtaining the second terminal address and the screen resolution of receiving terminal;
Address judgment module, for judging whether described first terminal address and described second terminal address belong to same local area network (LAN);
Resolution judge module, for judging whether described photo resolution and described screen resolution meet preset matching condition;
Instruction sending module, if being for the judged result of described address judgment module and described resolution judge module is then send P2P and send instruction to described transmitting terminal, makes described transmitting terminal send described picture to described receiving terminal by P2P.
Alternatively, described system also comprises:
Adjustment transfer instruction sending module, if the judged result for described address judgment module is be and the judged result of described resolution judge module is no, send adjustment transfer instruction to described transmitting terminal, described photo resolution is adjusted to by described transmitting terminal mate with described screen resolution, and sends the picture after adjustment to described receiving terminal by P2P.
Alternatively, described system also comprises:
First picture acquisition module, if be no for the judged result of described address judgment module, the judged result of described resolution judge module is no, and described photo resolution is greater than described screen resolution, then obtain described picture from described transmitting terminal;
Photo resolution turns down module, for turning down the photo resolution of described picture for mating with described screen resolution, obtains compression figure;
Compression figure sending module, for being sent to described receiving terminal by described compression figure.
Alternatively, described system also comprises:
Second picture acquisition module, if be no for the judged result of described address judgment module, the judged result of described resolution judge module is no, and described photo resolution is less than described screen resolution, then obtain described picture from described transmitting terminal;
Picture packing sending module, for being sent to described receiving terminal by after described picture packing compression.
Alternatively, described system also comprises:
3rd picture acquisition module, for obtaining described picture from described transmitting terminal;
Adaptive image generating module, for carrying out correspondence adjustment according to the multiple terminal resolution preset to the photo resolution of described picture, obtains multiple adaptive pictures;
Request judge module, for judging whether that the history picture received from the second receiving terminal obtains request;
Terminal resolution acquisition module, for when the judged result of described request judge module is for being, obtains the second screen resolution of described second receiving terminal;
Inquiry acquisition module, for obtaining corresponding described adaptive picture according to the described second screen resolution inquiry terminal picture table of comparisons, the described terminal picture table of comparisons comprises the corresponding relation of described terminal resolution and described adaptive picture;
Adaptive picture sending module, for sending to described second receiving terminal by inquiring about the described adaptive picture obtained.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
In the embodiment of the present invention, first, the first terminal address of transmitting terminal and the photo resolution of picture to be sent is obtained; Obtain the second terminal address and the screen resolution of receiving terminal; Then, judge whether described first terminal address and described second terminal address belong to same local area network (LAN), obtain address judged result; And, judge whether described photo resolution and described screen resolution meet preset matching condition, obtain resolution judged result; Finally, be then send P2P and send instruction to described transmitting terminal if described address judged result and described resolution judged result are, make described transmitting terminal send described picture to described receiving terminal by P2P.In embodiments of the present invention, when learning that transmitting terminal and receiving terminal are in same local area network (LAN), and when the resolution of picture to be sent is mated with the screen resolution of receiving terminal, directly send this picture to receiving terminal by P2P, without the need to uploading pictures to server, efficiency of transmission is high.
Accompanying drawing explanation
Fig. 1 is picture transmission method embodiment flow chart in the embodiment of the present invention;
Fig. 2 is another embodiment flow chart of picture transmission method in the embodiment of the present invention;
Fig. 3 is data flow interaction figure under an application scenarios of transmitting terminal and receiving terminal in the embodiment of the present invention;
Fig. 4 is data flow interaction figure under the Another application scene of transmitting terminal and receiving terminal in the embodiment of the present invention;
Fig. 5 is data flow interaction figure under the Another application scene of transmitting terminal and receiving terminal in the embodiment of the present invention;
Fig. 6 is data flow interaction figure under the Another application scene of transmitting terminal and receiving terminal in the embodiment of the present invention;
Fig. 7 is image transmission system example structure figure in the embodiment of the present invention;
Fig. 8 is another example structure figure of image transmission system in the embodiment of the present invention.
Embodiment
Embodiments providing picture transmission method and system, needing former for picture figure to be uploaded to server for solving picture transmission method, the required flow of transmission is large, and the problem that efficiency of transmission is low.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiments, and the embodiment of not all.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, in the embodiment of the present invention, a kind of picture transmission method embodiment comprises:
101, the first terminal address of transmitting terminal and the photo resolution of picture to be sent is obtained;
First, the first terminal address of transmitting terminal and the photo resolution of picture to be sent can be obtained.
102, the second terminal address and the screen resolution of receiving terminal is obtained;
In addition, the second terminal address and the screen resolution of receiving terminal can also be obtained.
103, judge whether this first terminal address and this second terminal address belong to same local area network (LAN), obtain address judged result;
After this first terminal address of acquisition and this second terminal address, can judge whether this first terminal address and this second terminal address belong to same local area network (LAN), obtain address judged result.
104, judge whether this photo resolution and this screen resolution meet preset matching condition, obtain resolution judged result;
After this photo resolution of acquisition and this screen resolution, can judge whether this photo resolution and this screen resolution meet preset matching condition, obtain resolution judged result.
Then send P2P and send instruction to this transmitting terminal, make this transmitting terminal send this picture to this receiving terminal by P2P if 105 these address judged results and this resolution judged result are.
Then send P2P and send instruction to this transmitting terminal, make this transmitting terminal send this picture to this receiving terminal by P2P if this address judged result and this resolution judged result are.
In the present embodiment, first, the first terminal address of transmitting terminal and the photo resolution of picture to be sent is obtained; Obtain the second terminal address and the screen resolution of receiving terminal; Then, judge whether this first terminal address and this second terminal address belong to same local area network (LAN), obtain address judged result; And, judge whether this photo resolution and this screen resolution meet preset matching condition, obtain resolution judged result; Finally, be then send P2P and send instruction to this transmitting terminal, make this transmitting terminal send this picture to this receiving terminal by P2P if this address judged result and this resolution judged result are.In the present embodiment, when learning that transmitting terminal and receiving terminal are in same local area network (LAN), and when the resolution of picture to be sent is mated with the screen resolution of receiving terminal, directly send this picture to receiving terminal by P2P, without the need to uploading pictures to server, efficiency of transmission is high.
For ease of understanding, be described in detail a kind of picture transmission method in the embodiment of the present invention below, refer to Fig. 2, in the embodiment of the present invention, another embodiment of a kind of picture transmission method comprises:
201, the first terminal address of transmitting terminal and the photo resolution of picture to be sent is obtained;
First, the first terminal address of transmitting terminal and the photo resolution of picture to be sent can be obtained.Be understandable that, server can obtain the first terminal address of transmitting terminal and photo resolution to be sent.
202, the second terminal address and the screen resolution of receiving terminal is obtained;
In addition, the second terminal address and the screen resolution of receiving terminal can also be obtained.Be understandable that, transmitting terminal can be sent to server by send request etc., comprise the information such as the IP address of receiving terminal in sending request, thus server receiving terminal be can search out, and the second terminal address and the screen resolution of receiving terminal obtained.
203, judge whether this first terminal address and this second terminal address belong to same local area network (LAN), obtain address judged result;
After getting this first terminal address and this second terminal address, can judge whether this first terminal address and this second terminal address belong to same local area network (LAN), obtain address judged result.Be understandable that, this address judged result comprises this first terminal address and this second terminal address belongs to same local area network (LAN), and this first terminal address and this second terminal address do not belong to same local area network (LAN).
204, judge whether this photo resolution and this screen resolution meet preset matching condition, obtain resolution judged result;
After getting this photo resolution and this screen resolution, can judge whether this photo resolution and this screen resolution meet preset matching condition, obtain resolution judged result.Be understandable that, this preset matching condition can be that photo resolution is equal with this screen resolution, or this photo resolution and this screen resolution are in certain difference range.Therefore, this resolution judged result comprises this photo resolution and this screen resolution meets preset matching condition, and this photo resolution and this screen resolution do not meet preset matching condition.
It should be noted that, in order to provide reference more accurately to subsequent step, this resolution judged result can also comprise: this photo resolution is greater than this screen resolution, or this photo resolution is less than this screen resolution.
Then send P2P and send instruction to this transmitting terminal, make this transmitting terminal send this picture to this receiving terminal by P2P if 205 these address judged results and this resolution judged result are;
If it is can send P2P (PeertoPeer) and send instruction to this transmitting terminal that this address judged result and this resolution judged result are, this transmitting terminal is made to send this picture to this receiving terminal by P2P.Be understandable that, because transmitting terminal and receiving terminal are in same local area network (LAN), therefore, transmitting terminal can be set up P2P with receiving terminal and be connected.P2P connects without the need to outer net and server resource, and transmission speed is fast, thus makes the picture transfer between transmitting terminal and receiving terminal efficient more in time.In addition, this resolution judged result is yes, ensure that the picture of transmitting terminal goes for the display screen of receiving terminal, without the need to carrying out format conversion.Especially for the sectional drawing of transmitting terminal, because sectional drawing is that transmitting terminal intercepts out, its resolution is consistent with the screen resolution of transmitting terminal, when this resolution judged result is for being, show that this sectional drawing directly can be presented at receiving terminal, make instant messaging quickness and high efficiency more.
It should be noted that, described P2P can simply be defined as by directly exchanging Sharing computer resource and service, and the network that P2P computing models applying layer is formed is commonly referred to peer-to-peer network.
If 206 these address judged results are for being and this resolution judged result is no, send adjustment transfer instruction to this transmitting terminal, this photo resolution is adjusted to by this transmitting terminal mate with this screen resolution, and sends the picture after adjustment to this receiving terminal by P2P;
If this address judged result is for being and this resolution judged result is no, send adjustment transfer instruction to this transmitting terminal, this photo resolution is adjusted to by this transmitting terminal mate with this screen resolution, and sends the picture after adjustment to this receiving terminal by P2P.With step 205 in like manner, because resolution judged result is no, key diagram chip resolution does not mate with screen resolution, now need first this photo resolution to be adjusted to mate with this screen resolution, then send the picture after adjustment to this receiving terminal by P2P, thus ensure that receiving terminal directly can show after receiving this picture.
If 207 these address judged results are no, this resolution judged result is no, and this photo resolution is greater than this screen resolution, then obtain this picture from this transmitting terminal;
If this address judged result is no, this resolution judged result is no, and this photo resolution is greater than this screen resolution, then server can obtain this picture from this transmitting terminal.Be understandable that, because transmitting terminal and receiving terminal be not in same local area network (LAN), therefore transmitting terminal and receiving terminal cannot carry out picture transfer by the mode of P2P.Therefore server is needed to obtain the picture of transmitting terminal.
208, the photo resolution of this picture being turned down as mating with this screen resolution, obtaining compression figure;
After obtaining this picture from this transmitting terminal, the photo resolution of this picture can being turned down as mating with this screen resolution, obtaining compression figure.Be understandable that, because photo resolution is greater than this screen resolution, therefore consider and save transfer resource and improve transmission speed, photo resolution can being turned down for mating with this screen resolution, obtaining compression figure.
209, this compression figure is sent to this receiving terminal;
After obtaining compression figure, this compression figure can be sent to this receiving terminal.
If 210 these address judged results are no, this resolution judged result is no, and this photo resolution is less than this screen resolution, then obtain this picture from this transmitting terminal;
If this address judged result is no, this resolution judged result is no, and this photo resolution is less than this screen resolution, then obtain this picture from this transmitting terminal.
211, this receiving terminal is sent to by after this picture packing compression;
After obtaining this picture from this transmitting terminal, server can be sent to this receiving terminal by after this picture packing compression.Be understandable that, packing is compressed with the transmission stability and efficiency of transmission that are beneficial to picture.
212, this picture is obtained from this transmitting terminal;
In addition, when asynchronous operation, server can also obtain this picture from this transmitting terminal.
213, according to the multiple terminal resolution preset, correspondence adjustment is carried out to the photo resolution of this picture, obtain multiple adaptive pictures;
After obtaining this picture from this transmitting terminal, correspondence adjustment can be carried out according to the multiple terminal resolution preset to the photo resolution of this picture, obtain multiple adaptive pictures.Be understandable that, server, after obtaining this picture, can carry out correspondence adjustment according to the multiple terminal resolution preset to the resolution of this picture, obtain multiple adaptive pictures, the resolution of these adaptive pictures is different, and the resolution of the terminal of the corresponding different model of difference.
214, judge whether that the history picture received from the second receiving terminal obtains request, if so, then performs step 215, if not, then continue to wait for;
Be understandable that, because recipient may check chat record by logging in different receiving terminals, need to check history picture by the second receiving terminal, therefore, server can judge whether that the history picture received from the second receiving terminal obtains request, if so, then performs step 215, if not, then continue to wait for.
It should be noted that, when recipient checks history picture by the second receiving terminal, what first view is that server is sent to the picture on the second receiving terminal with the form of minimal compression thumbnail.If now recipient wants to check picture clearly, point opens this thumbnail, thus the second receiving terminal sends history picture acquisition request to server.
215, the second screen resolution of this second receiving terminal is obtained;
When receiving the history picture acquisition request from the second receiving terminal, the second screen resolution of this second receiving terminal can be obtained.
216, this corresponding adaptive picture is obtained according to this second screen resolution inquiry terminal picture table of comparisons;
After the second screen resolution obtaining this second receiving terminal, can obtain this corresponding adaptive picture according to this second screen resolution inquiry terminal picture table of comparisons, this terminal picture table of comparisons comprises the corresponding relation of this terminal resolution and this adaptive picture.
217, this adaptive picture is sent to this second receiving terminal.
After obtaining this corresponding adaptive picture, this adaptive picture can be sent to this second receiving terminal by server, thus the second receiving terminal can view picture clearly.
In the present embodiment, further, when photo resolution is not mated with screen resolution, be sent to receiving terminal again after first adjusting photo resolution, make receiving terminal can directly show this picture, instant messaging is quickness and high efficiency more;
Further, server obtains picture in advance, and generate the adaptive picture corresponding with multiple terminal resolution, make when the second receiving terminal needs to check history picture, corresponding adaptive picture to the second receiving terminal can be sent quickly directly show, historical information retrospective is good, and user experience is higher.
For ease of understanding, the embodiment described by Fig. 2, is described a kind of picture transmission method in the embodiment of the present invention with multiple practical application scene below:
Sight 1: the same Intranet of both sides, screen resolution is similar to, and sees Fig. 3
1, sender logs in client, sends sectional drawing to recipient;
2, sender's announcement server;
3, server judges that whether recipient and sender are in same Intranet, and the degree of approximation of both sides' screen resolution;
If 4 discovering server both sides screen resolutions are similar to, and be same Intranet, then notify sender directly by the former figure of p2p point-to-point transmission sectional drawing to recipient;
5, server end asynchronous operation simultaneously: server preserves the former figure of sectional drawing, and generates the picture of many parts of different resolutions;
6, recipient receives display sectional drawing.
Sight 2: both sides are not in same Intranet, and recipient's screen resolution is less, sees Fig. 4
1, sender logs in client, sends sectional drawing to recipient;
2, sender's announcement server;
3, server judges that whether recipient and sender are in same Intranet, and the degree of approximation of both sides' screen resolution;
If 4 recipient's screen resolutions are less, no longer judge whether same Intranet;
5, server preserves the former figure of sectional drawing, generates the compression figure of the most adaptive recipient's resolution, and recipient is schemed in the compression that server sends the most adaptive recipient's resolution;
6, server end asynchronous operation simultaneously: server generates and preserves the picture of many parts of different resolutions;
7, recipient receives display sectional drawing.
Sight 3: both sides are not in same Intranet, and recipient's screen resolution is comparatively large, sees Fig. 5
1, sender logs in client, sends sectional drawing to recipient;
2, sender's announcement server;
3, server judges that whether recipient and sender are in same Intranet, and the degree of approximation of both sides' screen resolution;
4, recipient's screen resolution is comparatively large, no longer judges whether same Intranet;
5, server preserves the former figure of sectional drawing, and does compressing file process, sends compression figure to recipient;
6, server end asynchronous operation simultaneously: server generates and preserves the picture of many parts of different resolutions;
7, recipient receives display sectional drawing.
Sight 4: recipient converted client terminal, opens the sectional drawing seen before chat record is checked, sees Fig. 6
1, recipient logs in different terminals, is such as converted to PC end from mobile phone terminal, reaches the standard grade;
2, chat record is opened;
3, chat record is synchronized to client terminal by server, and sectional drawing is wherein sent to client terminal with the form of minimal compression thumbnail;
4, click the thumbnail of sectional drawing, request server sends clear figure;
5, server judges the resolution of client, provides sectional drawing separately to deposit the most adaptive picture in sequence;
6, recipient's reception server send sectional drawing and show.
Sight 5, Zhang San and Li Si are in company Intranet, use enterprise instant communication software, Zhang San and Li Si use PC terminal, and the screen resolution of both sides is similar to, Zhang San sends sectional drawing to Li Si, so picture is directly by point-to-point transmission, without IM server (instantmessage server).
Sight 6, Zhang San and Li Si are in company Intranet, use enterprise instant communication software, Zhang San uses PC terminal, Li Si's mobile phone terminal, Zhang San have sent the sectional drawing of a 1000*800 Pixel Dimensions to Li Si, the PC terminal of Zhang San is found out Li Si and is used mobile phone terminal, and main screen resolution is wide is 720, the PC terminal of Zhang San by picture transfer to IM server, server is except the former figure of preservation, consider the golden section 0.618 of picture presentation on screen, under 720 resolution, best display resolution is 445*356 size, so separately deposited the picture of a 445*356 size and be sent to the cell-phone customer terminal of Zhang San, also separately deposit 800*640 in addition, 600*480, 400*320, 200*160, 100*80 has the picture of 7 kinds of different resolutions altogether at server end.
Sight 7, several days are spent, Li Si uses again PC terminal (resolution 1920*1024) to log in enterprise instant communication software, he opens relevant chat record, the Zhang San seen before opening issues his sectional drawing thumbnail, by clicking thumbnail, former figure (1000*800) is transferred to Li Si by server, and Li Si sees sectional drawing the most clearly.
Mainly above be described a kind of picture transmission method, will describe a kind of image transmission system in detail below, and refer to Fig. 7, in the embodiment of the present invention, a kind of image transmission system embodiment comprises:
First terminal acquisition module 701, for the photo resolution of the first terminal address and picture to be sent that obtain transmitting terminal;
Second terminal acquisition module 702, for obtaining the second terminal address and the screen resolution of receiving terminal;
Address judgment module 703, for judging whether this first terminal address and this second terminal address belong to same local area network (LAN);
Resolution judge module 704, for judging whether this photo resolution and this screen resolution meet preset matching condition;
Instruction sending module 705, if being with the judged result of this resolution judge module 704 for this address judgment module 703 is then send P2P and send instruction to this transmitting terminal, make this transmitting terminal send this picture to this receiving terminal by P2P.
In the present embodiment, first, first terminal acquisition module 701 obtains the first terminal address of transmitting terminal and the photo resolution of picture to be sent; Second terminal acquisition module 702 obtains the second terminal address and the screen resolution of receiving terminal; Then, address judgment module 703 judges whether this first terminal address and this second terminal address belong to same local area network (LAN); Resolution judge module 704 judges whether this photo resolution and this screen resolution meet preset matching condition; Finally, be that then instruction sending module 705 sends P2P and sends instruction to this transmitting terminal, makes this transmitting terminal send this picture to this receiving terminal by P2P if the judged result of this address judgment module 703 and this resolution judge module 704 is.In the present embodiment, when learning that transmitting terminal and receiving terminal are in same local area network (LAN), and when the resolution of picture to be sent is mated with the screen resolution of receiving terminal, directly send this picture to receiving terminal by P2P, without the need to uploading pictures to server, efficiency of transmission is high.
For ease of understanding, be described in detail a kind of image transmission system in the embodiment of the present invention below, refer to Fig. 8, in the embodiment of the present invention, another embodiment of a kind of image transmission system comprises:
First terminal acquisition module 801, for the photo resolution of the first terminal address and picture to be sent that obtain transmitting terminal;
Second terminal acquisition module 802, for obtaining the second terminal address and the screen resolution of receiving terminal;
Address judgment module 803, for judging whether this first terminal address and this second terminal address belong to same local area network (LAN);
Resolution judge module 804, for judging whether this photo resolution and this screen resolution meet preset matching condition;
Instruction sending module 805, if being with the judged result of this resolution judge module 804 for this address judgment module 803 is then send P2P and send instruction to this transmitting terminal, make this transmitting terminal send this picture to this receiving terminal by P2P.
In the present embodiment, this system can also comprise:
Adjustment transfer instruction sending module 806, if the judged result for this address judgment module 803 is be and the judged result of this resolution judge module 804 is no, send adjustment transfer instruction to this transmitting terminal, this photo resolution is adjusted to by this transmitting terminal mate with this screen resolution, and sends the picture after adjustment to this receiving terminal by P2P.
In the present embodiment, this system can also comprise:
First picture acquisition module 807, if be no for the judged result of this address judgment module 803, the judged result of this resolution judge module 804 is no, and this photo resolution is greater than this screen resolution, then obtain this picture from this transmitting terminal;
Photo resolution turns down module 808, for turning down the photo resolution of this picture for mating with this screen resolution, obtains compression figure;
Compression figure sending module 809, for being sent to this receiving terminal by this compression figure.
In the present embodiment, this system can also comprise:
Second picture acquisition module 810, if be no for the judged result of this address judgment module 803, the judged result of this resolution judge module 804 is no, and this photo resolution is less than this screen resolution, then obtain this picture from this transmitting terminal;
Picture packing sending module 811, for being sent to this receiving terminal by after this picture packing compression.
In the present embodiment, this system can also comprise:
3rd picture acquisition module 812, for obtaining this picture from this transmitting terminal;
Adaptive image generating module 813, for carrying out correspondence adjustment according to the multiple terminal resolution preset to the photo resolution of this picture, obtains multiple adaptive pictures;
Request judge module 814, for judging whether that the history picture received from the second receiving terminal obtains request;
Terminal resolution acquisition module 815, for when the judged result of this request judge module 814 is for being, obtains the second screen resolution of this second receiving terminal;
Inquiry acquisition module 816, for obtaining this corresponding adaptive picture according to this second screen resolution inquiry terminal picture table of comparisons, this terminal picture table of comparisons comprises the corresponding relation of this terminal resolution and this adaptive picture;
Adaptive picture sending module 817, for sending to this second receiving terminal by this adaptive picture.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a picture transmission method, is characterized in that, comprising:
Obtain the first terminal address of transmitting terminal and the photo resolution of picture to be sent;
Obtain the second terminal address and the screen resolution of receiving terminal;
Judge whether described first terminal address and described second terminal address belong to same local area network (LAN), obtain address judged result;
Judge whether described photo resolution and described screen resolution meet preset matching condition, obtain resolution judged result;
Be then send P2P and send instruction to described transmitting terminal if described address judged result and described resolution judged result are, make described transmitting terminal send described picture to described receiving terminal by P2P.
2. method according to claim 1, is characterized in that, described method also comprises:
If described address judged result is for being and described resolution judged result is no, send adjustment transfer instruction to described transmitting terminal, described photo resolution is adjusted to by described transmitting terminal mate with described screen resolution, and sends the picture after adjustment to described receiving terminal by P2P.
3. method according to claim 1, is characterized in that, described method also comprises:
If described address judged result is no, described resolution judged result is no, and described photo resolution is greater than described screen resolution, then obtain described picture from described transmitting terminal;
The photo resolution of described picture being turned down as mating with described screen resolution, obtaining compression figure;
Described compression figure is sent to described receiving terminal.
4. method according to claim 1, is characterized in that, described method also comprises:
If described address judged result is no, described resolution judged result is no, and described photo resolution is less than described screen resolution, then obtain described picture from described transmitting terminal;
Described receiving terminal is sent to by after described picture packing compression.
5. method according to any one of claim 1 to 4, is characterized in that, described method also comprises:
Described picture is obtained from described transmitting terminal;
According to the multiple terminal resolution preset, correspondence adjustment is carried out to the photo resolution of described picture, obtain multiple adaptive pictures;
Judge whether that the history picture received from the second receiving terminal obtains request, if so, then obtains the second screen resolution of described second receiving terminal;
Obtain corresponding described adaptive picture according to the described second screen resolution inquiry terminal picture table of comparisons, the described terminal picture table of comparisons comprises the corresponding relation of described terminal resolution and described adaptive picture;
Described second receiving terminal is sent to by inquiring about the described adaptive picture obtained.
6. an image transmission system, is characterized in that, comprising:
First terminal acquisition module, for the photo resolution of the first terminal address and picture to be sent that obtain transmitting terminal;
Second terminal acquisition module, for obtaining the second terminal address and the screen resolution of receiving terminal;
Address judgment module, for judging whether described first terminal address and described second terminal address belong to same local area network (LAN);
Resolution judge module, for judging whether described photo resolution and described screen resolution meet preset matching condition;
Instruction sending module, if being for the judged result of described address judgment module and described resolution judge module is then send P2P and send instruction to described transmitting terminal, makes described transmitting terminal send described picture to described receiving terminal by P2P.
7. system according to claim 6, is characterized in that, described system also comprises:
Adjustment transfer instruction sending module, if the judged result for described address judgment module is be and the judged result of described resolution judge module is no, send adjustment transfer instruction to described transmitting terminal, described photo resolution is adjusted to by described transmitting terminal mate with described screen resolution, and sends the picture after adjustment to described receiving terminal by P2P.
8. system according to claim 6, is characterized in that, described system also comprises:
First picture acquisition module, if be no for the judged result of described address judgment module, the judged result of described resolution judge module is no, and described photo resolution is greater than described screen resolution, then obtain described picture from described transmitting terminal;
Photo resolution turns down module, for turning down the photo resolution of described picture for mating with described screen resolution, obtains compression figure;
Compression figure sending module, for being sent to described receiving terminal by described compression figure.
9. system according to claim 6, is characterized in that, described system also comprises:
Second picture acquisition module, if be no for the judged result of described address judgment module, the judged result of described resolution judge module is no, and described photo resolution is less than described screen resolution, then obtain described picture from described transmitting terminal;
Picture packing sending module, for being sent to described receiving terminal by after described picture packing compression.
10. the system according to any one of claim 6 to 9, is characterized in that, described system also comprises:
3rd picture acquisition module, for obtaining described picture from described transmitting terminal;
Adaptive image generating module, for carrying out correspondence adjustment according to the multiple terminal resolution preset to the photo resolution of described picture, obtains multiple adaptive pictures;
Request judge module, for judging whether that the history picture received from the second receiving terminal obtains request;
Terminal resolution acquisition module, for when the judged result of described request judge module is for being, obtains the second screen resolution of described second receiving terminal;
Inquiry acquisition module, for obtaining corresponding described adaptive picture according to the described second screen resolution inquiry terminal picture table of comparisons, the described terminal picture table of comparisons comprises the corresponding relation of described terminal resolution and described adaptive picture;
Adaptive picture sending module, for sending to described second receiving terminal by inquiring about the described adaptive picture obtained.
CN201510744645.0A 2015-11-03 2015-11-03 Image transmission method and system Pending CN105282255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510744645.0A CN105282255A (en) 2015-11-03 2015-11-03 Image transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510744645.0A CN105282255A (en) 2015-11-03 2015-11-03 Image transmission method and system

Publications (1)

Publication Number Publication Date
CN105282255A true CN105282255A (en) 2016-01-27

Family

ID=55150560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510744645.0A Pending CN105282255A (en) 2015-11-03 2015-11-03 Image transmission method and system

Country Status (1)

Country Link
CN (1) CN105282255A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681584A (en) * 2016-03-21 2016-06-15 珠海格力电器股份有限公司 Mobile terminal remote control method and device
CN110929197A (en) * 2019-11-27 2020-03-27 杭州安恒信息技术股份有限公司 Method and device for previewing and loading webpage picture
CN113900613A (en) * 2021-10-18 2022-01-07 北京博瑞彤芸科技股份有限公司 Picture dynamic adaptation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360059A (en) * 2008-09-05 2009-02-04 Tcl通力电子(惠州)有限公司 Network content sharing system and method
CN101707748A (en) * 2009-11-24 2010-05-12 中兴通讯股份有限公司 Picture adapting method and server
US20120077442A1 (en) * 2010-09-24 2012-03-29 Canon Kabushiki Kaisha Establishing communication between devices
CN102802129A (en) * 2011-05-24 2012-11-28 腾讯科技(深圳)有限公司 Method and system for transmitting picture through mobile equipment
CN103530079A (en) * 2013-09-30 2014-01-22 山西云途信息技术有限公司 Picture displaying method and device adaptive to mobile terminals of different resolution ratios

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360059A (en) * 2008-09-05 2009-02-04 Tcl通力电子(惠州)有限公司 Network content sharing system and method
CN101707748A (en) * 2009-11-24 2010-05-12 中兴通讯股份有限公司 Picture adapting method and server
US20120077442A1 (en) * 2010-09-24 2012-03-29 Canon Kabushiki Kaisha Establishing communication between devices
CN102802129A (en) * 2011-05-24 2012-11-28 腾讯科技(深圳)有限公司 Method and system for transmitting picture through mobile equipment
CN103530079A (en) * 2013-09-30 2014-01-22 山西云途信息技术有限公司 Picture displaying method and device adaptive to mobile terminals of different resolution ratios

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681584A (en) * 2016-03-21 2016-06-15 珠海格力电器股份有限公司 Mobile terminal remote control method and device
CN110929197A (en) * 2019-11-27 2020-03-27 杭州安恒信息技术股份有限公司 Method and device for previewing and loading webpage picture
CN113900613A (en) * 2021-10-18 2022-01-07 北京博瑞彤芸科技股份有限公司 Picture dynamic adaptation method and device

Similar Documents

Publication Publication Date Title
CN100452775C (en) Method and system of sharing application programs in instant communication system
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
US20160162151A1 (en) Input method and device thereof, and auxiliary input method and system thereof
EP3068070B1 (en) Method and device for initiating network conference
US20150227496A1 (en) Method and system for microblog resource sharing
US9686506B2 (en) Method, apparatus, system, and storage medium for video call and video call control
JP2006501578A5 (en)
CN104022940A (en) Information processing method, device and system based on instant messaging (IM)
CN103796013A (en) Method for photo compression in mobile terminal instant messaging
CN108696899B (en) SIP message transmitting and receiving method and transmitting and receiving device
CN102739717A (en) Downloading method, downloading proxy server and network system
CN105743958A (en) Terminal-to-terminal communication method and device
CN104980334A (en) Information sharing method, device and system
CN104378435A (en) Method for transmitting file between browser of computing device and mobile terminal
WO2020102349A1 (en) Methods, systems, and apparatus for email to persistent messaging and/or text to persistent messaging
CN104320328A (en) Message synchronization method, terminal and server
CN105282255A (en) Image transmission method and system
CN101867622A (en) Method for realizing p2p video communication on webpage
Farahmandpour et al. Service virtualisation of internet-of-things devices: techniques and challenges
CN102841766A (en) Local area network printing system and method
CN106850770B (en) Efficient transmission method based on cloud computing service
US20200153781A1 (en) Methods, Systems, and Apparatus for Text to Persistent Messaging
CN101917353A (en) Method for transmitting expression file and terminal equipment
CN107423446B (en) New media automation trusted deployment system and method based on cloud storage
CN105812432A (en) Cloud file processing method and device

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: 20160127