CN114697315A - Picture transmission method, device and system - Google Patents
Picture transmission method, device and system Download PDFInfo
- Publication number
- CN114697315A CN114697315A CN202210312321.XA CN202210312321A CN114697315A CN 114697315 A CN114697315 A CN 114697315A CN 202210312321 A CN202210312321 A CN 202210312321A CN 114697315 A CN114697315 A CN 114697315A
- Authority
- CN
- China
- Prior art keywords
- picture
- template
- information
- identifier
- key information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000005540 biological transmission Effects 0.000 title claims abstract description 38
- 238000004590 computer program Methods 0.000 claims description 13
- 238000009877 rendering Methods 0.000 claims description 13
- 230000002452 interceptive effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a method, a device and a system for transmitting pictures, which can be applied to the field of mobile interconnection. The first device sends the template identification and the key information of the picture to be transmitted to the second device in a character string mode, the picture to be transmitted in the picture format with large data volume does not need to be transmitted to the second device, the interactive data volume between the first device and the second device is reduced, the second device can generate a picture text which can be used as the picture to be transmitted based on the received character string and the template information corresponding to the locally stored template identification, and the purpose that the first device transmits the picture to the second device is achieved. Therefore, the occupation of network resources by pictures transmitted between devices is reduced, the transmission time is shortened, the transmission efficiency is improved, and the quality of the pictures received by the receiving device is not influenced.
Description
Technical Field
The present application relates to the field of mobile internet technologies, and in particular, to a method, an apparatus, and a system for transmitting pictures.
Background
In some scenes, a large number of pictures need to be transmitted between devices, and since the data volume of the pictures is usually large, the transmission of a large number of pictures between the devices has the problems of long transmission time, large occupied network resources and the like. At present, sender equipment generally compresses a picture to be transmitted to obtain a compressed picture with a small data volume, and sends the compressed picture to receiver equipment, so that the compressed picture with the small data volume transmitted between the equipment replaces a source picture with a large data volume, and the problems of long transmission time, large network resource occupation and the like caused by original picture transmission can be solved to a certain extent.
However, in the way of transmitting compressed pictures, the improvement of picture transmission speed is at the cost of reducing picture definition, and the quality of transmitted pictures cannot be guaranteed.
Based on this, in view of a scene that a large number of pictures need to be transmitted before the device, it is urgently needed to provide a picture transmission method, which not only ensures a short transmission time and a small network resource occupation, but also does not lose the quality of the transmitted pictures.
Disclosure of Invention
The embodiment of the application provides a method, a device and a system for transmitting pictures, which can occupy smaller network resources under shorter transmission time and realize that receiving party equipment obtains pictures with higher quality.
In a first aspect, an embodiment of the present application provides a system for transmitting pictures, where the system includes: a first device and a second device, wherein:
the first device is configured to send a first template identifier and key information of a first picture to be sent to a second device, where the data format of the key information is a character string, and the first template identifier is used to indicate first template information corresponding to the first picture;
the second device is configured to obtain the first template information according to the first template identifier, and generate a second picture file according to the first template information and the key information, where the second picture file is matched with the first picture, and the second picture file is used by the second device as the first picture.
Optionally, the second device is further configured to obtain a correspondence between the first template identifier and the first template information.
Optionally, the key information includes difference information between the first picture and the first template information, and the second device is specifically configured to:
rendering the difference information and the first template information to obtain the second picture file.
Optionally, the key information includes: the second device is specifically configured to:
updating the first template information according to the template updating information to obtain second template information;
rendering the difference information and the second template information to obtain the second picture file.
Optionally, the second device is further configured to store the second template information, and send a correspondence between the second template information and the second template identifier to the first device;
and the first device is used for storing the corresponding relation between the second template information and the second template identifier.
Optionally, the first template information includes at least one of the following information: icon, background picture, and format information.
Optionally, the type of the second picture file includes at least one of the following file types: JPG, GIF, Word and PDF.
In a second aspect, an embodiment of the present application provides a method for transmitting a picture, which is applied to a second device, and the method includes:
receiving a first template identifier and key information of a first picture sent by first equipment, wherein the data format of the key information is a character string, and the first template identifier is used for indicating first template information corresponding to the first picture;
obtaining the first template information according to the first template identification;
and generating a second picture file according to the first template information and the key information, wherein the second picture file is matched with the first picture, and the second picture is used as the first picture by the second equipment.
Optionally, the method further comprises:
and acquiring the corresponding relation between the first template identification and the first template information.
Optionally, the key information includes difference information between the first picture and the first template information, and generating a second picture file according to the first template information and the key information includes:
rendering the difference information and the first template information to obtain the second picture file.
Optionally, the key information includes: the generating a second picture file according to the first template information and the key information includes:
updating the first template information according to the template updating information to obtain second template information;
rendering the difference information and the second template information to obtain the second picture file.
Optionally, the method further comprises:
and storing the second template information, and sending the corresponding relation between the second template information and the second template identifier to the first device.
Optionally, the first template information includes at least one of the following information: icon, background picture, and format information.
Optionally, the type of the second picture file includes at least one of the following file types: JPG, GIF, Word and PDF.
In a third aspect, an embodiment of the present application further provides a method for transmitting a picture, which is applied to a first device, and the method includes:
acquiring a first template identifier and key information of a first picture to be sent, wherein the data format of the key information is a character string, and the first template identifier is used for indicating the first template information corresponding to the first picture;
and sending the first template identifier and the key information to a second device, so that the second device obtains the first template information according to the first template identifier, and generates a second picture file according to the first template information and the key information, wherein the second picture file is matched with the first picture, and the second picture is used as the first picture by the second device.
Optionally, the method further comprises:
and storing the corresponding relation between the first template identification and the first template information.
Optionally, the key information includes difference information between the first picture and the first template information.
Optionally, the key information includes: the difference information between the first picture and the first template information, and template updating information, wherein the template updating information is used for updating the first template information to obtain second template information.
Optionally, the method further comprises:
and receiving and storing the corresponding relation between the second template information and the second template identifier sent by the second equipment.
Optionally, the first template information includes at least one of the following information: icon, background picture, and format information.
Optionally, the type of the second picture file includes at least one of the following file types: JPG, GIF, Word and PDF.
In a fourth aspect, an embodiment of the present application further provides an apparatus for transmitting a picture, which is applied to a second device, where the apparatus includes:
the image processing device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a first template identifier and key information of a first image sent by first equipment, the data format of the key information is a character string, and the first template identifier is used for indicating first template information corresponding to the first image;
a first obtaining unit, configured to obtain the first template information according to the first template identifier;
and the generating unit is used for generating a second picture file according to the first template information and the key information, the second picture file is matched with the first picture, and the second picture is used as the first picture by the second equipment.
Optionally, the apparatus further comprises:
a second obtaining unit, configured to obtain a corresponding relationship between the first template identifier and the first template information
Optionally, the key information includes difference information between the first picture and the first template information, and the generating unit is specifically configured to:
rendering the difference information and the first template information to obtain the second picture file.
Optionally, the key information includes: the generating unit includes difference information between the first picture and the first template information, and template update information:
the updating subunit is configured to update the first template information according to the template updating information to obtain second template information;
and the generating subunit is configured to render the difference information and the second template information to obtain the second picture file.
Optionally, the apparatus further comprises:
a saving unit configured to save the second template information;
and the sending unit is used for sending the corresponding relation between the second template information and the second template identifier to the first equipment.
Optionally, the first template information includes at least one of the following information: icon, background picture, and format information.
Optionally, the type of the second picture file includes at least one of the following file types: JPG, GIF, Word and PDF.
In a fifth aspect, an embodiment of the present application further provides an apparatus for transmitting a picture, which is applied to a first device, and the apparatus includes:
the device comprises an obtaining unit, a processing unit and a processing unit, wherein the obtaining unit is used for obtaining a first template identifier and key information of a first picture to be sent, the data format of the key information is a character string, and the first template identifier is used for indicating first template information corresponding to the first picture;
a sending unit, configured to send the first template identifier and the key information to a second device, so that the second device obtains the first template information according to the first template identifier, and generates a second picture file according to the first template information and the key information, where the second picture file is matched with the first picture, and the second picture is used by the second device as the first picture.
Optionally, the apparatus further comprises:
and the first storage unit is used for storing the corresponding relation between the first template identifier and the first template information.
Optionally, the key information includes difference information between the first picture and the first template information.
Optionally, the key information includes: the difference information between the first picture and the first template information, and template updating information, wherein the template updating information is used for updating the first template information to obtain second template information.
Optionally, the apparatus further comprises:
a receiving unit, configured to receive a correspondence between the second template information and a second template identifier sent by a second device;
and the second storage unit is used for storing the corresponding relation between the second template information and the second template identifier sent by the second device.
Optionally, the first template information includes at least one of the following information: icon, background picture, and format information.
Optionally, the type of the second picture file includes at least one of the following file types: JPG, GIF, Word and PDF.
In a sixth aspect, an embodiment of the present application further provides an apparatus, where the apparatus includes a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to execute the method provided by the second aspect according to the computer program.
In a seventh aspect, an embodiment of the present application further provides an apparatus, where the apparatus includes a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to execute the method provided in the third aspect according to the computer program.
In an eighth aspect, the present application further provides a computer-readable storage medium for storing a computer program for executing the method provided in the second or third aspect.
Therefore, the embodiment of the application has the following beneficial effects:
the embodiment of the application provides a system for transmitting pictures, which comprises: a first device and a second device, wherein: the first device is configured to send a first template identifier and key information of a first picture to be sent to a second device, where the data format of the key information is a character string, and the first template identifier is used to indicate first template information corresponding to the first picture; the second device is configured to obtain the first template information according to the first template identifier, and generate a second picture file according to the first template information and the key information, where the second picture file is matched with the first picture, and the second picture file is used by the second device as the first picture. It can be seen that if the first device transmits a picture to the second device, the first device may send the template identifier and the key information of the picture to be transmitted to the second device in the form of a character string, and does not need to transmit the picture to be transmitted in the picture format with a large data volume to the second device, thereby reducing the interactive data volume between the first device and the second device. Therefore, according to the technical scheme provided by the embodiment of the application, the occupation of network resources by the pictures transmitted between the devices is reduced, the transmission time is shortened, the transmission efficiency is improved, and the quality of the pictures received by the receiving device is not influenced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings according to these drawings.
Fig. 1 is a schematic structural diagram of a system 100 for transmitting pictures according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a method for transmitting pictures according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another method for transmitting pictures according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus 400 for transmitting pictures according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another apparatus 500 for picture transmission according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an apparatus 600 according to an embodiment of the present disclosure.
Detailed Description
It should be noted that the method, the device and the system for transmitting the picture provided by the invention can be used in the field of big data, the field of internet of things or the field of mobile internet. The above description is only an example, and does not limit the application field of the method, apparatus and system for transmitting pictures provided by the present invention.
The method, the device and the system for transmitting the pictures can be used in the field of big data, the field of Internet of things, the field of mobile internet or other fields, for example, can be used in a certificate transmission application scene in the field of mobile internet. The other fields are any fields other than the big data field, the internet of things field, and the mobile internet field, for example, the image processing field. The above description is only an example, and does not limit the application field of the method, apparatus and system for transmitting pictures provided by the present invention.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the drawings are described in detail below. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application. It should be noted that, for the convenience of description, only a part related to the present application is shown in the drawings, and not all structures are shown.
In a scene of transmitting pictures between devices, pictures to be transmitted may belong to pictures with relatively fixed formats, for example, pictures related to an identity card, a honor certificate, a public certificate, and the like, and the common characteristics of the pictures are as follows: most pictures have the same content, and only a few characters have different content, and in the embodiment of the application, the pictures are recorded as template pictures. At present, template pictures are transmitted between devices, original pictures can be directly transmitted, the original pictures are often influenced by factors such as picture size and network bandwidth, and the defects of long transmission time, high network traffic consumption and the like exist. Or template pictures are transmitted between devices, and compressed pictures obtained by compressing original pictures can also be transmitted, although the mode can accelerate the transmission of the pictures and reduce the consumption of network flow, the definition of the pictures to be transmitted is reduced, the quality of the pictures is influenced, and the requirements of users cannot be met.
Based on this, this application embodiment provides a picture transmission's system, the system includes: a first device and a second device, wherein: the first device is configured to send a first template identifier and key information of a first picture to be sent to a second device, where the data format of the key information is a character string, and the first template identifier is used to indicate first template information corresponding to the first picture; the second device is configured to obtain the first template information according to the first template identifier, and generate a second picture file according to the first template information and the key information, where the second picture file is matched with the first picture, and the second picture file is used by the second device as the first picture.
It can be seen that if the first device transmits a picture to the second device, the first device may send the template identifier and the key information of the picture to be transmitted to the second device in the form of a character string, and does not need to transmit the picture to be transmitted in the picture format with a large data volume to the second device, thereby reducing the interactive data volume between the first device and the second device. Therefore, according to the technical scheme provided by the embodiment of the application, the occupation of network resources by the pictures transmitted between the devices is reduced, the transmission time is shortened, the transmission efficiency is improved, and the quality of the pictures received by the receiving device is not influenced.
For facilitating understanding of a specific implementation of the system for picture transmission provided in the embodiments of the present application, reference will be made to the following description in conjunction with the accompanying drawings.
Fig. 1 is a schematic structural diagram of a system 100 for transmitting pictures according to an embodiment of the present disclosure. Referring to fig. 1, the system 100 may include a first device 101 and a second device 102. Wherein:
the first device 101 is configured to send a first template identifier and key information of a first picture to be sent to the second device 102, where the data format of the key information is a character string, and the first template identifier is used to indicate first template information corresponding to the first picture.
The second device 102 is configured to obtain the first template information according to the first template identifier, and generate a second picture file according to the first template information and the key information, where the second picture file is matched with the first picture, and the second picture file is used by the second device 102 as the first picture.
Before transmitting the picture between the first device 101 and the second device 102, the second device 102 may obtain a plurality of pieces of template information and a template identifier of each piece of template information, and store the template information and the template identifier correspondingly. The corresponding relationship between the template information and the template identifier stored in the second device 102 at least includes the corresponding relationship between the first template information and the first template identifier.
The template identifier may be a template name, such as an identity card template or an electronic certificate template. Alternatively, the template identifier may be a template index, such as 1 or 2, where 1 may be used to indicate an identity card template and 2 may be used to indicate an electronic certificate template.
The template information may include at least one of an icon, a background picture, and format information. The format information may be, for example, at least one file with cs suffix for indicating the format of various elements in the picture, for example, cs file 1 is for indicating that the font of the text in the picture is regular font and the font size is 5, and cs file 2 is for indicating that the line spacing of the text in the picture is 23 pounds.
As an example, the second device 102 may download the correspondence between the template information and the template identification from the first device 101.
As another example, the second device 102 may also download the corresponding relationship between the template information and the template identification on a trusted remote device (e.g., a cloud server). In order to synchronize the correspondence between the template information and the template identifier stored in the second device 102 with the first device 101, the first device 101 may also download the correspondence between the template information and the template identifier from a trusted remote device (e.g., a cloud server); alternatively, the trusted remote device (e.g., a cloud server) may also actively synchronize the template information and the template identifier downloaded by the second device 102 to the first device 101.
As yet another example, the technician may also configure the correspondence between the template information and the template identification on the second device 102.
In any implementation manner of this example, for a template picture belonging to one template, the second device 102 only needs to obtain the template picture once and store the template picture locally, and the corresponding relationship between the template information and the template identifier does not need to be obtained once when the template picture belonging to the template is received each time, so that transmission of redundant data between devices can be effectively saved, and the utilization rate of network resources is improved.
In some implementations, the first device 101 determines that the first picture to be transmitted completely matches the first template information, and then the first device 101 may extract only difference information between the first picture and the first template information as key information, and thus the second device 102 is specifically configured to: rendering the difference information and the first template information to obtain the second picture file. The first picture is completely matched with the first template information, which may mean that the first picture is completely identical to the first template information except for the difference information, for example, the first picture is an identification card photo of a, the first template information is an identification card template, and the difference information is personal information of a on the identification card, so that the first picture and the first template information are completely matched.
In other implementation manners, the first device 101 determines that the matching degree between the first picture to be transmitted and the first template information reaches a preset value, then, the first device 101 may only extract difference information between the first picture and the first template information, note different matching items in the first picture and the first template information as template update information, and take the difference information and the template update information as key information, so that the second device 102 is specifically configured to update the first template information according to the template update information to obtain second template information, and render the difference information and the second template information to obtain the second picture file. For example, if the first picture is the electronic certificate 1, the template information of the electronic certificate 1 is the template information 1, and the first template information is the template information 2 of the electronic certificate 2, then if 90% of the contents in the template information 1 and the template information 2 are the same, it can be regarded that the matching degree of the first picture and the first template information reaches the preset value.
In this implementation manner, in order to enrich templates and facilitate better use of the system 100 for transmitting pictures provided in the embodiment of the present application, the second device 102 is further configured to store the second template information and send the corresponding relationship between the second template information and the second template identifier to the first device 101; the first device 101 is configured to store a corresponding relationship between the second template information and the second template identifier.
The format of the second picture file may be a picture in a format such as JPG or GIF, or may be a text in a format such as Word or PDF.
As can be seen, with the system 100 for transmitting pictures provided in the embodiment of the present application, the first device 101 may send the template identifier and the key information of the picture to be transmitted to the second device 102 in the form of a character string, and the picture to be transmitted in the picture format with a large data amount does not need to be transmitted to the second device 102, so that the data amount of interaction between the first device 101 and the second device 102 is reduced, and the second device 102 may generate a picture text that can be used as the picture to be transmitted based on the received character string and the template information corresponding to the locally stored template identifier, thereby completing the purpose of transmitting the picture to the second device 102 by the first device 101. Therefore, the occupation of network resources by pictures transmitted between devices is reduced, the transmission time is shortened, the transmission efficiency is improved, and the quality of the pictures received by the receiving device is not influenced.
Fig. 2 is a flowchart illustrating a method for transmitting a picture according to an embodiment of the present disclosure. The method can be applied to the second device 102 in the system 100 for picture transmission shown in fig. 1, or can also be applied to the apparatus 400 for picture transmission shown in fig. 4.
As shown in fig. 2, the method may include, for example:
s201, receiving a first template identifier and key information of a first picture sent by a first device, wherein the data format of the key information is a character string, and the first template identifier is used for indicating first template information corresponding to the first picture;
s202, obtaining the first template information according to the first template identifier;
s203, generating a second picture file according to the first template information and the key information, wherein the second picture file is matched with the first picture, and the second picture is used as the first picture by the second equipment.
As an example, before S202, the method may further include: and the second equipment obtains the corresponding relation between the first template identification and the first template information.
As an example, the key information includes difference information of the first picture and the first template information, then S203 may include: rendering the difference information and the first template information to obtain the second picture file.
As another example, the key information includes: difference information of the first picture and the first template information, and template update information, then S203 may include: updating the first template information according to the template updating information to obtain second template information; rendering the difference information and the second template information to obtain the second picture file. Under this example, the method may further include: and storing the second template information, and sending the corresponding relation between the second template information and the second template identifier to the first device.
As one example, the first template information includes at least one of the following information: icon, background picture, and format information.
As an example, the type of the second picture file includes at least one of the following file types: JPG, GIF, Word and PDF.
It should be noted that, the specific implementation manner of the method and the achieved technical effect can be referred to the related description about the second device 102 in the system 100 for picture transmission shown in fig. 1.
Fig. 3 is a flowchart illustrating a method for transmitting a picture according to an embodiment of the present disclosure. The method can be applied to the first device 101 in the system 100 for picture transmission shown in fig. 1, or can also be applied to the apparatus 500 for picture transmission shown in fig. 5.
As shown in fig. 3, the method may include, for example:
s301, obtaining a first template identifier and key information of a first picture to be sent, wherein the data format of the key information is a character string, and the first template identifier is used for indicating first template information corresponding to the first picture;
s302, the first template identification and the key information are sent to a second device, so that the second device obtains the first template information according to the first template identification, and generates a second picture file according to the first template information and the key information, wherein the second picture file is matched with the first picture, and the second picture is used as the first picture by the second device.
As an example, the method may further include: and the first equipment stores the corresponding relation between the first template identification and the first template information.
As an example, the key information includes difference information of the first picture and the first template information.
As another example, the key information includes: the difference information between the first picture and the first template information, and template updating information, wherein the template updating information is used for updating the first template information to obtain second template information. Then, the method may further comprise: and receiving and storing the corresponding relation between the second template information and the second template identifier sent by the second equipment.
As one example, the first template information includes at least one of the following information: icon, background picture, and format information.
As an example, the type of the second picture file includes at least one of the following file types: JPG, GIF, Word, and PDF.
It should be noted that, the specific implementation manner of the method and the achieved technical effect can be referred to the related description about the first device 101 in the system 100 for picture transmission shown in fig. 1.
Referring to fig. 4, an embodiment of the present application further provides an apparatus 400 for transmitting a picture, where the apparatus 400 is applied to a second device, and the apparatus 400 may include: a receiving unit 401, a first obtaining unit 402 and a generating unit 403. Wherein:
a receiving unit 401, configured to receive a first template identifier and key information of a first picture sent by a first device, where a data format of the key information is a character string, and the first template identifier is used to indicate first template information corresponding to the first picture;
a first obtaining unit 402, configured to obtain the first template information according to the first template identifier;
a generating unit 403, configured to generate a second picture file according to the first template information and the key information, where the second picture file is matched with the first picture, and the second picture is used by the second device as the first picture.
Optionally, the apparatus 400 further comprises:
a second obtaining unit, configured to obtain a corresponding relationship between the first template identifier and the first template information
Optionally, the key information includes difference information between the first picture and the first template information, and the generating unit 403 is specifically configured to:
rendering the difference information and the first template information to obtain the second picture file.
Optionally, the key information includes: the generating unit 403 includes difference information between the first picture and the first template information, and template update information:
the updating subunit is configured to update the first template information according to the template updating information to obtain second template information;
and the generating subunit is configured to render the difference information and the second template information to obtain the second picture file.
Optionally, the apparatus 400 further comprises:
a saving unit configured to save the second template information;
and the sending unit is used for sending the corresponding relation between the second template information and the second template identifier to the first equipment.
Optionally, the first template information includes at least one of the following information: icon, background picture, and format information.
Optionally, the type of the second picture file includes at least one of the following file types: JPG, GIF, Word and PDF.
It should be noted that, the specific implementation manner and the achieved technical effect of the apparatus 400 can be referred to the related description in the method shown in fig. 2, and also refer to the related description about the second device 102 in the system 100 for picture transmission shown in fig. 1.
Referring to fig. 5, an embodiment of the present application further provides an apparatus 500 for transmitting a picture, where the apparatus 500 is applied to a first device, and the apparatus 500 may include: an obtaining unit 501 and a sending unit 502. Wherein:
an obtaining unit 501, configured to obtain a first template identifier and key information of a first picture to be sent, where a data format of the key information is a character string, and the first template identifier is used to indicate first template information corresponding to the first picture;
a sending unit 502, configured to send the first template identifier and the key information to a second device, so that the second device obtains the first template information according to the first template identifier, and generates a second picture file according to the first template information and the key information, where the second picture file is matched with the first picture, and the second picture is used by the second device as the first picture.
Optionally, the apparatus 500 further comprises:
and the first storage unit is used for storing the corresponding relation between the first template identifier and the first template information.
Optionally, the key information includes difference information between the first picture and the first template information.
Optionally, the key information includes: the difference information between the first picture and the first template information, and template updating information, wherein the template updating information is used for updating the first template information to obtain second template information.
Optionally, the apparatus 500 further comprises:
a receiving unit, configured to receive a correspondence between the second template information and a second template identifier sent by a second device;
and the second storage unit is used for storing the corresponding relation between the second template information and the second template identifier sent by the second device.
Optionally, the first template information includes at least one of the following information: icon, background picture, and format information.
Optionally, the type of the second picture file includes at least one of the following file types: JPG, GIF, Word and PDF.
It should be noted that, the specific implementation manner and the achieved technical effect of the apparatus 500 can be referred to the related description in the method shown in fig. 3, and also refer to the related description about the first device 101 in the system 100 for picture transmission shown in fig. 1.
In addition, an embodiment of the present application further provides an apparatus 600, as shown in fig. 6, where the apparatus 600 includes a processor 601 and a memory 602:
the memory 602 is used for storing computer programs;
the processor 601 is configured to execute the method provided in fig. 2 or fig. 3 according to the computer program.
In addition, the embodiment of the present application also provides a computer-readable storage medium, which is used for storing a computer program, and the computer program is used for executing the method provided by the embodiment of the present application.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a read-only memory (ROM)/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, system embodiments and apparatus embodiments, which are substantially similar to method embodiments, are described in relative ease with reference to the partial description of the method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, wherein modules described as separate parts may or may not be physically separate, and parts shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only a preferred embodiment of the present application and is not intended to limit the scope of the present application. It should be noted that, for a person skilled in the art, several improvements and modifications can be made without departing from the scope of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.
Claims (19)
1. A system for picture transmission, the system comprising: a first device and a second device, wherein:
the first device is configured to send a first template identifier and key information of a first picture to be sent to a second device, where the data format of the key information is a character string, and the first template identifier is used to indicate first template information corresponding to the first picture;
the second device is configured to obtain the first template information according to the first template identifier, and generate a second picture file according to the first template information and the key information, where the second picture file is matched with the first picture, and the second picture file is used by the second device as the first picture.
2. The system according to claim 1, wherein the key information includes difference information between the first picture and the first template information, and the second device is specifically configured to:
rendering the difference information and the first template information to obtain the second picture file.
3. The system of claim 1, wherein the key information comprises: the second device is specifically configured to:
updating the first template information according to the template updating information to obtain second template information;
rendering the difference information and the second template information to obtain the second picture file.
4. The system of claim 3,
the second device is further configured to store the second template information, and send the corresponding relationship between the second template information and the second template identifier to the first device;
and the first device is used for storing the corresponding relation between the second template information and the second template identifier.
5. The system according to any of claims 1-4, wherein the first template information comprises at least one of: icon, background picture, and format information.
6. The system according to any of claims 1-4, wherein the type of the second picture file comprises at least one of the following file types: JPG, GIF, Word and PDF.
7. A method for picture transmission, applied to a second device, the method comprising:
receiving a first template identifier and key information of a first picture sent by first equipment, wherein the data format of the key information is a character string, and the first template identifier is used for indicating first template information corresponding to the first picture;
obtaining the first template information according to the first template identifier;
and generating a second picture file according to the first template information and the key information, wherein the second picture file is matched with the first picture, and the second picture is used as the first picture by the second equipment.
8. The method of claim 7, wherein the key information comprises difference information between the first picture and the first template information, and wherein generating a second picture file according to the first template information and the key information comprises:
rendering the difference information and the first template information to obtain the second picture file.
9. The method of claim 7, wherein the key information comprises: the generating a second picture file according to the first template information and the key information includes:
updating the first template information according to the template updating information to obtain second template information;
rendering the difference information and the second template information to obtain the second picture file.
10. The method according to any of claims 7-9, wherein the first template information comprises at least one of: icon, background picture, and format information.
11. The method according to any of claims 7-9, wherein the type of the second picture file comprises at least one of the following file types: JPG, GIF, Word and PDF.
12. A method for picture transmission, which is applied to a first device, the method comprising:
acquiring a first template identifier and key information of a first picture to be sent, wherein the data format of the key information is a character string, and the first template identifier is used for indicating the first template information corresponding to the first picture;
and sending the first template identifier and the key information to a second device, so that the second device obtains the first template information according to the first template identifier, and generates a second picture file according to the first template information and the key information, wherein the second picture file is matched with the first picture, and the second picture is used as the first picture by the second device.
13. The method of claim 12, wherein the key information comprises difference information of the first picture and the first template information.
14. The method according to claim 12 or 13, wherein the first template information comprises at least one of the following information: icon, background picture, and format information.
15. The method according to claim 12 or 13, wherein the type of the second picture file comprises at least one of the following file types: JPG, GIF, Word and PDF.
16. An apparatus for picture transmission, applied to a second device, the apparatus comprising:
the image processing device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a first template identifier and key information of a first image sent by first equipment, the data format of the key information is a character string, and the first template identifier is used for indicating first template information corresponding to the first image;
an obtaining unit, configured to obtain the first template information according to the first template identifier;
and the generating unit is used for generating a second picture file according to the first template information and the key information, the second picture file is matched with the first picture, and the second picture is used as the first picture by the second equipment.
17. An apparatus for picture transmission, applied to a first device, the apparatus comprising:
the device comprises an obtaining unit, a processing unit and a processing unit, wherein the obtaining unit is used for obtaining a first template identifier and key information of a first picture to be sent, the data format of the key information is a character string, and the first template identifier is used for indicating first template information corresponding to the first picture;
a sending unit, configured to send the first template identifier and the key information to a second device, so that the second device obtains the first template information according to the first template identifier, and generates a second picture file according to the first template information and the key information, where the second picture file is matched with the first picture, and the second picture is used by the second device as the first picture.
18. An apparatus, comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to perform the method of any one of claims 7-11 in accordance with the computer program; alternatively, the processor is adapted to perform the method of any of claims 12-15 according to the computer program.
19. A computer-readable storage medium, characterized in that the computer-readable storage medium is adapted to store a computer program for performing the method of any of claims 7-15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210312321.XA CN114697315A (en) | 2022-03-28 | 2022-03-28 | Picture transmission method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210312321.XA CN114697315A (en) | 2022-03-28 | 2022-03-28 | Picture transmission method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114697315A true CN114697315A (en) | 2022-07-01 |
Family
ID=82141084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210312321.XA Pending CN114697315A (en) | 2022-03-28 | 2022-03-28 | Picture transmission method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114697315A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127819A (en) * | 2007-10-12 | 2008-02-20 | 杭州华三通信技术有限公司 | A method and device for image transmission |
CN104735231A (en) * | 2013-12-18 | 2015-06-24 | 佳也瑞吉科技(深圳)有限公司 | Information transmission device and information transmission method between intelligent equipment |
-
2022
- 2022-03-28 CN CN202210312321.XA patent/CN114697315A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127819A (en) * | 2007-10-12 | 2008-02-20 | 杭州华三通信技术有限公司 | A method and device for image transmission |
CN104735231A (en) * | 2013-12-18 | 2015-06-24 | 佳也瑞吉科技(深圳)有限公司 | Information transmission device and information transmission method between intelligent equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10834031B2 (en) | Information exchange method, client, and apparatus | |
EP2940940B1 (en) | Methods for sending and receiving video short message, apparatus and handheld electronic device thereof | |
US9589063B2 (en) | Two-dimensional code processing method and terminal | |
CN106453572B (en) | Method and system based on Cloud Server synchronous images | |
CN108449409B (en) | Animation pushing method, device, equipment and storage medium | |
CN104683422A (en) | Method and device for transmitting data | |
CN104092713A (en) | Network resource download information display method and device | |
CN108696899B (en) | SIP message transmitting and receiving method and transmitting and receiving device | |
WO2014114084A1 (en) | Multimedia information sending, receiving and transmitting method and card sending and receiving terminals | |
CN112965673A (en) | Content printing method, device, equipment and storage medium | |
CN112073307A (en) | Mail processing method and device, electronic equipment and computer readable medium | |
CN110569127B (en) | Virtual resource transferring, sending and obtaining method and device | |
CN112291341A (en) | File transmission method, device and equipment | |
CN110909241B (en) | Information recommendation method, user identification recommendation method, device and equipment | |
CN109766315B (en) | File display method and terminal, computer storage medium and computer equipment | |
US20180343216A1 (en) | Context driven modification of attachments in a messaging session | |
CN112581568B (en) | Dynamic poster generation method, device, server and storage medium | |
CN106878145B (en) | Display method, display device and display system of user-defined picture | |
CN110505289B (en) | File downloading method and device, computer readable medium and wireless communication equipment | |
CN114697315A (en) | Picture transmission method, device and system | |
CN110730080A (en) | Signed document client and server based on private key self-support | |
EP3293924B1 (en) | Message processing method and device | |
CN108718346B (en) | Resource processing method and device | |
CN110297971B (en) | Personalized resource retrieval method, device, equipment and computer readable storage medium | |
CN115086425B (en) | Message transmission method, device, program product, medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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: 20220701 |