[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108959393B - Dynamic picture processing method, device and storage medium - Google Patents

Dynamic picture processing method, device and storage medium Download PDF

Info

Publication number
CN108959393B
CN108959393B CN201810556688.XA CN201810556688A CN108959393B CN 108959393 B CN108959393 B CN 108959393B CN 201810556688 A CN201810556688 A CN 201810556688A CN 108959393 B CN108959393 B CN 108959393B
Authority
CN
China
Prior art keywords
shared
picture
webpage
client
webpage view
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.)
Active
Application number
CN201810556688.XA
Other languages
Chinese (zh)
Other versions
CN108959393A (en
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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810556688.XA priority Critical patent/CN108959393B/en
Publication of CN108959393A publication Critical patent/CN108959393A/en
Application granted granted Critical
Publication of CN108959393B publication Critical patent/CN108959393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a dynamic picture processing method, a dynamic picture processing device and a storage medium, wherein the method comprises the following steps: sending a page request to a server, wherein the page request is used for requesting the current webpage view of a client, and the page request carries client information and user information; receiving a URL (uniform resource locator) returned by the server, wherein the URL is a URL which is generated by the server according to the client information and the user information and corresponds to the webpage view; linking to a corresponding webpage view through a URL; and acquiring the picture to be shared according to the webpage view. According to the embodiment of the invention, the storage of a large number of personalized pictures in the server is reduced, and meanwhile, the styles of the pictures to be shared can be flexibly controlled, so that the pictures to be shared in different styles can be obtained, and the user can conveniently and subsequently share the pictures to be shared in a personalized manner.

Description

Dynamic picture processing method, device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a dynamic picture processing method, a dynamic picture processing device and a storage medium.
Background
With the development of mobile internet, especially the rapid development of chat software and network construction in recent years, the network cost is lower and lower, and the communication mode between users gradually transits to social platforms such as WeChat and QQ. For example, users may share pictures, etc. through a social platform. The picture sharing method generally requests a server for a picture through a client, and the client downloads the picture for sharing. Different users may require different contents of elements and/or different typesetting orders of elements on the picture at different time points, so that the types of the pictures are diversified. If the server returns the pictures directly, a large number of pictures need to be stored at the server, resulting in a very stressful server.
In order to solve the above problems, in the prior art, a client communicates with a server in several picture styles, so that the client can synthesize a picture to be shared according to the existing picture styles and by combining information such as picture elements and characters returned by the server.
Although the prior art solves the problem of the pressure of the server to store a large number of pictures to a certain extent, the shared pictures have a single style.
Disclosure of Invention
Embodiments of the present invention provide a dynamic picture processing method, an apparatus, and a storage medium, so as to reduce the number of personalized pictures stored in a server and flexibly control the style of a shared picture.
In a first aspect, an embodiment of the present invention provides a method for processing a dynamic picture, including: sending a page request to a server, wherein the page request is used for requesting the current webpage view of a client, and the page request carries client information and user information; receiving a URL returned by a server, wherein the URL is generated by the server according to client information and user information and corresponds to the webpage view; linking to a corresponding webpage view through the URL; and acquiring the picture to be shared according to the webpage view.
Optionally, the obtaining the picture to be shared according to the webpage view includes: the webpage views are displayed in a rolling mode, and screen capture operation is carried out on the webpage views one by one in the rolling process; and splicing the screen capturing pictures obtained through the screen capturing operation to form the picture to be shared.
Optionally, the obtaining the picture to be shared according to the webpage view includes: obtaining the content height of the current display frame of the webpage view through a webpage agent; setting the current display frame as the webpage view; and drawing the webpage view to obtain the picture to be shared, and resetting the current display frame according to the content height of the current display frame.
Optionally, after the picture to be shared is acquired according to the webpage view, the method further includes: and sharing the picture to be shared to a first social platform.
Optionally, after sharing the picture to be shared to the first social platform, the method further includes: caching the picture to be shared, and distributing a cache identifier for the cached picture to be shared.
Optionally, after sharing the picture to be shared to the first social platform, the method further includes: searching the picture to be shared in a cache according to the cache identification; and sharing the picture to be shared found in the cache to a second social platform.
Optionally, the sharing the picture to be shared to a first social platform includes: receiving a sharing instruction output by a sharing component of a webpage, wherein the sharing instruction is used for indicating that the picture to be shared is shared to at least one social platform, and the social platform comprises the first social platform; displaying a sharing interface, wherein the sharing interface comprises an identifier of the at least one social platform; receiving an operation of selecting the first social platform by a user; and jumping to the first social contact platform, and carrying out sharing processing of the picture to be shared on the first social contact platform.
Optionally, before sending the page request to the server, the method further includes: and detecting the operation of clicking the operation entrance by the user.
In a second aspect, an embodiment of the present invention provides a method for processing a moving picture, including: receiving a page request sent by a client, wherein the page request is used for requesting a current webpage view of the client, and the page request carries client information and user information; generating a URL corresponding to the webpage view according to the client information and the user information; and sending the URL to the client.
In a third aspect, an embodiment of the present invention provides a motion picture processing apparatus, including: the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a page request to a server, the page request is used for requesting the current webpage view of a client, and the page request carries client information and user information; the receiving module is used for receiving a URL returned by the server, wherein the URL is generated by the server according to client information and user information and corresponds to the webpage view; the processing module is used for linking to the corresponding webpage view through the URL; and acquiring the picture to be shared according to the webpage view.
Optionally, when the processing module acquires the picture to be shared according to the webpage view, the processing module is specifically configured to: the webpage views are displayed in a rolling mode, and screen capture operation is carried out on the webpage views one by one in the rolling process; and splicing the screen capturing pictures obtained through the screen capturing operation to form the picture to be shared.
Optionally, when the processing module acquires the picture to be shared according to the webpage view, the processing module is specifically configured to: obtaining the content height of the current display frame of the webpage view through a webpage agent; setting the current display frame as the webpage view; and drawing the webpage view to obtain the picture to be shared, and resetting the current display frame according to the content height of the current display frame.
Optionally, the processing module is further configured to: and after the picture to be shared is obtained according to the webpage view, the picture to be shared is shared to a first social platform.
Optionally, the processing module is further configured to: after the picture to be shared is shared to a first social platform, caching the picture to be shared, and allocating a cache identifier for the cached picture to be shared.
Optionally, the processing module is further configured to: after the picture to be shared is shared to a first social platform, searching the picture to be shared in a cache according to the cache identification; and sharing the picture to be shared found in the cache to a second social platform.
Optionally, the processing module is configured to, after sharing the picture to be shared to a first social platform, specifically: receiving a sharing instruction output by a sharing component of a webpage, wherein the sharing instruction is used for indicating that the picture to be shared is shared to at least one social platform, and the social platform comprises the first social platform; displaying a sharing interface, wherein the sharing interface comprises an identifier of the at least one social platform; receiving an operation of selecting the first social platform by a user; and jumping to the first social contact platform, and carrying out sharing processing of the picture to be shared on the first social contact platform.
Optionally, the method further comprises: and the detection module is used for detecting the operation of clicking the operation entrance by the user before the sending module sends the page request to the server.
In a fourth aspect, an embodiment of the present invention provides a motion picture processing apparatus, including: the system comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving a page request sent by a client, the page request is used for requesting the current webpage view of the client, and the page request carries client information and user information; the processing module is used for generating a URL corresponding to the webpage view according to client information and user information; and the sending module is used for sending the URL to the client.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a receiver, a processor, a transmitter, a memory, and a computer program; the computer program is stored in the memory, and the processor executes the computer program to implement the moving picture processing method according to any one of the first aspect and the second aspect.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and a processor executes the computer program to implement the method for processing a moving picture according to any one of the first aspect and the second aspect.
According to the dynamic picture processing method, the dynamic picture processing device and the dynamic picture processing storage medium, the client sends the page request to the server, the page request is used for requesting the current webpage view of the client, and the page request carries client information and user information; receiving a URL (uniform resource locator) returned by the server, wherein the URL is generated by the server according to client information and user information and corresponds to the webpage view; and then, the client is linked to the corresponding webpage view through the URL, and the picture to be shared is obtained according to the webpage view. The method has the following beneficial effects:
1. because the URL returned to the client by the server is the URL corresponding to the webpage view generated by the server according to the client information and the user information, a large number of personalized pictures do not need to be stored on the server side, the server only needs to generate the webpage view and the URL corresponding to the webpage view according to the client information and the user information carried in the webpage request after receiving the webpage request, and the webpage view can show the difference among users, so that the style of sharing the pictures can be flexibly controlled.
2. The client is linked to the corresponding webpage view through the URL, the picture to be shared is obtained according to the webpage view, and the pictures to be shared in different styles are obtained, so that the user can conveniently and individually share the pictures to be shared.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a signaling interaction diagram of a dynamic picture processing method according to an embodiment of the present invention;
fig. 2 is a signaling interaction diagram of a motion picture processing method according to another embodiment of the present invention;
fig. 3 is a signaling interaction diagram of a method for processing a moving picture according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a motion picture processing apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a motion picture processing apparatus according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description, in the claims, and in the above-described figures of the embodiments of the invention are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method aims at the realization mode that in the prior art, a client communicates a picture style with a server in advance, then the client can synthesize a picture to be shared by combining information such as picture elements, characters and the like returned by the server according to the existing picture style, and the picture is shared, so that although the pressure of the server on storing a large number of pictures is solved to a certain extent, the shared picture has a single style.
Based on the above, according to the dynamic picture processing method provided by the application, the server controls the typesetting of the picture to be shared, the style of the picture to be shared is flexibly controlled, the client is linked to the corresponding webpage view through the URL returned by the server, the picture to be shared is obtained according to the webpage view, a large number of personalized pictures stored in the server are reduced, and meanwhile the pictures to be shared in different styles are obtained, so that the user can conveniently and subsequently share the pictures to be shared in a personalized manner.
This embodiment will be described in detail below with reference to several embodiments.
Fig. 1 is a signaling interaction diagram of a dynamic picture processing method according to an embodiment of the present invention. The present embodiment provides a dynamic image processing method, which is applied between a server and a client installed with application software. The client is, for example, a terminal device such as a mobile phone, a computer, a tablet, a Personal Digital Assistant (PDA, also called a palm computer). Application software includes, but is not limited to, e-commerce applications (e.g., amazon, naught, 58 applications, etc.), social applications, and the like.
As shown in fig. 1, the method for processing a moving picture includes the following steps:
s101, the client sends a page request to the server.
The page request is used for requesting a current webpage view (WebView) of a client, and the page request carries client information and user information. Specifically, the client information may include information such as a client identifier, which may be, for example, a device number or a client name, and a time on the client when the page request is sent. The user information may include information such as an account number of the user, a user's demand for a picture style and picture content, and the like. Here, the client information and the specific content of the user information are not limited as long as the server can distinguish different users and/or clients.
Because the aforementioned requirements of different users on the pictures are different, for example, the pictures contain the same content, but the typesetting of the content in the pictures is different; or, the requirements of the same user for the pictures at different times may also be different, and in order to adapt to the personalization of the user and the requirements of the user at different times, the step carries the client information and the user information in the page request, so that after the server receives the page request, a Uniform Resource Locator (URL) corresponding to the web page view can be generated according to the client information and the user information, so as to generate URLs corresponding to the web page view for different users, and specific content included in the web page view is also generated corresponding to the current user information and the client information, that is, S102.
Correspondingly, the server receives a page request sent by the client. Specifically, after receiving the page request, the server parses the page request, obtains the client information and the user information carried in the page request, and then executes S102.
S102, the server generates a URL corresponding to the webpage view according to the client information and the user information.
Where the URL is the address of the web page attempt through which the link to the web page view is made.
In this step, the specific content, style, etc. of the web page view are related to the client information and the user information. It can be understood that the web page views corresponding to different users may be different, and the web page views corresponding to the same user at different times may also be different.
It should be clear that, in any embodiment of the present invention, the server does not store the web page view, and stores contents such as picture elements and characters, so that various web page views can be obtained based on the contents such as the picture elements and the characters, and the style of the picture to be shared is flexibly controlled.
S103, the server sends the URL to the client.
Accordingly, the client receives the URL returned by the server.
And S104, the client is linked to the corresponding webpage view through the URL.
In this step, linking to the corresponding web page view through the URL is a conventional web page access means, and the detailed description may refer to related technologies, which are not described herein again.
And S105, the client acquires the picture to be shared according to the webpage view.
The method comprises the steps of displaying the picture to be shared through the webpage view by taking the webpage view as a carrier, and then processing the webpage view to obtain the picture to be shared, so that the pressure of storing a large number of pictures by a server is avoided, and the diversity of the pictures shared by different users/different time is also met.
In the dynamic picture processing method provided by this embodiment, the client sends a page request to the server, where the page request is used to request a current web page view of the client, and the page request carries client information and user information; receiving a URL (uniform resource locator) returned by the server, wherein the URL is generated by the server according to client information and user information and corresponds to the webpage view; and then, the client is linked to the corresponding webpage view through the URL, and the picture to be shared is obtained according to the webpage view. The method has the following beneficial effects:
1. because the URL returned to the client by the server is the URL corresponding to the webpage view generated by the server according to the client information and the user information, a large number of personalized pictures do not need to be stored on the server side, the server only needs to generate the webpage view and the URL corresponding to the webpage view according to the client information and the user information carried in the webpage request after receiving the webpage request, and the webpage view can show the difference among users, so that the style of the picture to be shared is flexibly controlled.
2. The client is linked to the corresponding webpage view through the URL, the picture to be shared is obtained according to the webpage view, and the pictures to be shared in different styles are obtained, so that the user can conveniently and individually share the pictures to be shared.
In addition, in the prior art, the picture to be shared is synthesized through the client, but the processing capacity of the client is limited, so that various defects exist.
On the basis of the above embodiment, regarding "acquiring the picture to be shared according to the web page view" in S105, the following example illustrates that:
in a first implementation manner, acquiring a picture to be shared according to a webpage view may include: the method comprises the steps of performing rolling display on a webpage view and performing screen capture operation screen by screen in the rolling process; and splicing the screen shot pictures obtained through the screen shot operation to form the picture to be shared.
In the implementation mode, a webpage view part presented on a current screen is firstly captured, then other parts of the webpage view are displayed in a rolling mode, and a next screen is captured until screen capture pictures of all contents contained in the webpage view are obtained; and then, splicing the screen shot pictures to form the picture to be shared.
Alternatively, the screenshot pictures can be put into a data structure such as an array, and then the screenshot pictures can be assembled into the picture to be shared by traversing the array.
The picture to be shared is obtained by webpage screen capture, which is essentially screen capture of the uisrolview (a picture may exceed one screen).
In a second implementation manner, the obtaining of the picture to be shared according to the webpage view may include: obtaining the content height of a current display frame of a webpage view through a webpage agent; setting a current display frame as a webpage view; and drawing a webpage view to obtain a picture to be shared, and resetting the current display frame according to the content height of the current display frame.
For the implementation manner, it can be understood that the current display frame displayed on the current screen is a part or all of the web page view (special case), and at this time, the content height of the current display frame of the web page view can be obtained through the web page proxy; then, replacing the current display frame with a webpage view, namely replacing part of the current display frame with all the current display frame, and drawing the webpage view to obtain a picture to be shared; and finally, replacing the webpage view with the current display frame again according to the content height of the current display frame, namely completely replacing the webpage view with a part. Since the processing time of the above process is extremely short and invisible to the user, the display content seen by the user is always the content of the current display frame.
The realization mode reduces the complexity of the link of screenshot and reduces intermediate variables, so compared with the first realization mode, the realization mode has better performance.
In consideration of the fact that a user may continuously share pictures to be shared on a current page, for example, the pictures to be shared are respectively shared to social platforms such as a QQ platform and a wechat platform, the generated pictures to be shared are cached at a client.
Fig. 2 is a signaling interaction diagram of a motion picture processing method according to another embodiment of the present invention. As shown in fig. 2, on the basis of the flow shown in fig. 1, the method for processing a moving picture in the present embodiment may include the following steps:
s201, the client sends a page request to the server.
S202, the server generates a URL corresponding to the webpage view according to the client information and the user information.
S203, the server sends the URL to the client.
And S204, the client is linked to the corresponding webpage view through the URL.
And S205, the client acquires the picture to be shared according to the webpage view.
S201 to S205 are similar to S101 to S105 in the embodiment shown in fig. 1, and the specific implementation scheme refers to the embodiment shown in fig. 1, which is not described herein again.
And S206, sharing the picture to be shared to the first social platform.
The first social platform may be any one of social platforms such as a QQ, a WeChat, a microblog, a Facebook (Facebook), and the like, which is not limited in the embodiments of the present invention. Here, in order to distinguish from the social platform that subsequently shares the picture to be shared again, the social platform is named as a first social platform. It is further noted that the first social platform and the subsequent second social platform, which may be the same social platform. For example, the same picture to be shared is shared to the WeChat twice.
In summary, while having the beneficial effect of the scheme shown in fig. 1, the embodiment of the present invention can also implement personalized sharing of dynamic pictures among different users.
Optionally, the method for processing a moving picture may further include:
and S207, caching the picture to be shared by the client, and distributing a cache identifier for the cached picture to be shared.
For example, when the cache flag is YES, it indicates that the picture to be shared has been shared.
Optionally, in order to prevent a new picture B to be shared from being generated but not shared, when the previous picture a to be shared exists in the cache, the picture a to be shared in the cache is directly used, so that in the process of generating the picture B to be shared, the cache identifier of the picture a to be shared is set to be NO, so that the picture B to be shared is shared next time. That is to say, only when the cache identifier of the picture to be shared is YES and the picture to be shared exists in the cache, the picture to be shared is searched from the cache.
Further, the method for processing a moving picture may further include the steps of:
and S208, the client searches the picture to be shared in the cache according to the cache identifier.
And when the picture to be shared is shared, obtaining the picture to be shared from the cache, namely directly sharing the picture in the cache when the picture has the cache picture.
And S209, the client shares the picture to be shared found in the cache to the second social platform.
Through the steps, secondary sharing, tertiary sharing and … … of the picture to be shared can be achieved until the picture to be shared in the cache is updated when a new webpage is entered.
In addition, sharing the picture to be shared to the first social platform may include: receiving a sharing instruction output by a sharing component of a webpage, wherein the sharing instruction is used for indicating that a picture to be shared is shared to at least one social platform, and the social platform comprises a first social platform; displaying a sharing interface, wherein the sharing interface comprises an identifier of at least one social platform; receiving an operation of a user for selecting a first social contact platform; and jumping to the first social contact platform, and sharing the picture to be shared on the first social contact platform.
When the client detects that the user triggers the pop-up sharing component, the sharing component pops up a carrier of the display sharing platform, the picture to be shared can be shared to each social platform respectively by clicking, and elements on the sharing component are configured through the server, so that the dynamic configuration can be realized.
Optionally, the client transmits the picture to be shared to the sharing component, and the sharing component holds the picture to be shared and then shares the picture to the corresponding social platform.
Similarly, the picture to be shared is shared to the second social contact platform, and the picture to be shared is shared to the first social contact platform similarly to the above, wherein the social contact platform comprises the second social contact platform.
Fig. 3 is a signaling interaction diagram of a motion picture processing method according to another embodiment of the present invention. As shown in fig. 3, on the basis of the flow shown in fig. 1, the method for processing a moving picture in the present embodiment may include the following steps:
s301, the client detects the operation of clicking the operation entrance by the user.
Illustratively, personalized picture sharing of activities within an application is illustrated. When there is a festival or a big event, the application has an activity corresponding to the festival or the big event, for example, five labor festivals, the e-commerce application has a corresponding labor article preferential activity, the activity has a corresponding operation entrance on a home page of the e-commerce application, and a user can check commodity information contained in the activity through the operation entrance. However, the demands of different users on goods may be different, and at this time, through the embodiment of the present invention, a personalized webpage view may be provided for the user, so that the user can perform personalized picture sharing according to the webpage view, thereby improving daily activities (i.e., daily liveness, daily click amount), download amount, and the like of the application. Specifically, the user clicks a page where the operation entry is located, requests data of the page, obtains a URL of a webpage view of the operation personalized picture carrier, and prepares for clicking the operation entry to enter the webpage view of the personalized picture carrier.
Accordingly, the client detects that the user clicks the operation entry, and executes S302.
S302, the client sends a page request to the server.
S303, the server generates a URL corresponding to the webpage view according to the client information and the user information.
S304, the server sends the URL to the client.
S305, the client is linked to the corresponding webpage view through the URL.
And S306, the client acquires the picture to be shared according to the webpage view.
S302 to S306 are similar to S101 to S105 in the embodiment shown in fig. 1, and the specific implementation scheme refers to the embodiment shown in fig. 1, which is not described herein again.
The following is an embodiment of the apparatus of the present invention, which can be used to implement the above-mentioned embodiment of the method of the present invention, and the implementation principle and technical effects are similar.
Fig. 4 is a schematic structural diagram of a motion picture processing apparatus according to an embodiment of the present invention. The present embodiment provides a motion picture processing apparatus, which is applied to a client. The client is, for example, a terminal device such as a mobile phone, a computer, a tablet, a PDA, and the like.
As shown in fig. 4, the moving picture processing apparatus 40 according to the present embodiment includes: a sending module 41, a receiving module 42 and a processing module 43. Wherein,
the sending module 41 is configured to send a page request to a server, where the page request is used to request a current web page view of a client, and the page request carries client information and user information.
And the receiving module 42 is configured to receive a URL returned by the server, where the URL is a URL corresponding to the web page view and generated by the server according to the client information and the user information.
A processing module 43, configured to link to a corresponding web page view through the URL; and acquiring the picture to be shared according to the webpage view.
The dynamic image processing apparatus provided in this embodiment is configured to implement the technical solution on the client side in any of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
On the basis of the foregoing embodiment, in an implementation manner, when obtaining the picture to be shared according to the web page view, the processing module 43 is specifically configured to: the webpage views are displayed in a rolling mode, and screen capture operation is carried out on the webpage views one by one in the rolling process; and splicing the screen capturing pictures obtained through the screen capturing operation to form the picture to be shared.
In another implementation manner, when obtaining the picture to be shared according to the webpage view, the processing module 43 is specifically configured to: obtaining the content height of the current display frame of the webpage view through a webpage agent; setting the current display frame as the webpage view; and drawing the webpage view to obtain the picture to be shared, and resetting the current display frame according to the content height of the current display frame.
Optionally, the processing module 43 may be further configured to: and after the picture to be shared is obtained according to the webpage view, the picture to be shared is shared to a first social platform.
Optionally, the processing module 43 may be further configured to: after the picture to be shared is shared to a first social platform, caching the picture to be shared, and allocating a cache identifier for the cached picture to be shared.
Further, the processing module 43 may be further configured to: after the picture to be shared is shared to a first social platform, searching the picture to be shared in a cache according to the cache identification; and sharing the picture to be shared found in the cache to a second social platform.
In some embodiments, when sharing the picture to be shared to the first social platform, the processing module 43 is specifically configured to: receiving a sharing instruction output by a sharing component of a webpage, wherein the sharing instruction is used for indicating that the picture to be shared is shared to at least one social platform, and the social platform comprises the first social platform; displaying a sharing interface, wherein the sharing interface comprises an identifier of the at least one social platform; receiving an operation of selecting the first social platform by a user; and jumping to the first social contact platform, and carrying out sharing processing of the picture to be shared on the first social contact platform.
Optionally, the moving picture processing apparatus 40 further includes: a detection module (not shown). The detection module is used for detecting the operation of clicking the operation entrance by the user before the sending module sends the page request to the server.
Fig. 5 is a schematic structural diagram of a motion picture processing apparatus according to another embodiment of the present invention. The present embodiment provides a moving picture processing apparatus, which is applied to a server.
As shown in fig. 5, the moving picture processing apparatus 50 according to the present embodiment includes: a receiving module 51, a processing module 52 and a transmitting module 53. Wherein,
the receiving module 51 is configured to receive a page request sent by a client, where the page request is used to request a current webpage view of the client, and the page request carries client information and user information;
the processing module 52 is configured to generate a URL corresponding to the web page view according to the client information and the user information;
and a sending module 53, configured to send the URL to the client.
The dynamic picture processing apparatus provided in this embodiment is configured to implement the technical solution on the server side in any of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
An embodiment of the present invention further provides an electronic device, and fig. 6 is a schematic structural diagram of the electronic device according to an embodiment of the present invention. As shown in fig. 6, the electronic device 60 includes: a receiver 61, a processor 62, a transmitter 63, a memory 64, and computer programs; the computer program is stored in the memory, and the processor executes the computer program to implement the dynamic picture processing method provided by any one of the foregoing embodiments.
It is to be understood that the electronic device may be a client or a server in the foregoing embodiments.
The present invention further provides a computer-readable storage medium, where a computer program is stored, and a server executes the computer program to implement the method for processing a dynamic picture provided in any of the foregoing embodiments.
In the implementation of the electronic device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (flexible disk), optical disk (optical disk), and any combination thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (20)

1. A method for processing a moving picture, comprising:
sending a page request to a server, wherein the page request is used for requesting the current webpage view of a client, and the page request carries client information and user information;
receiving a Uniform Resource Locator (URL) returned by a server, wherein the URL is generated by the server according to client information and user information and corresponds to the webpage view;
linking to a corresponding webpage view through the URL;
and acquiring the picture to be shared according to the webpage view.
2. The method according to claim 1, wherein the obtaining the picture to be shared according to the webpage view comprises:
the webpage views are displayed in a rolling mode, and screen capture operation is carried out on the webpage views one by one in the rolling process;
and splicing the screen capturing pictures obtained through the screen capturing operation to form the picture to be shared.
3. The method according to claim 1, wherein the obtaining the picture to be shared according to the webpage view comprises:
obtaining the content height of the current display frame of the webpage view through a webpage agent;
setting the current display frame as the webpage view;
and drawing the webpage view to obtain the picture to be shared, and resetting the current display frame according to the content height of the current display frame.
4. The method according to any one of claims 1 to 3, wherein after the obtaining the picture to be shared according to the webpage view, the method further comprises:
and sharing the picture to be shared to a first social platform.
5. The method according to claim 4, wherein after sharing the picture to be shared to the first social platform, further comprising:
caching the picture to be shared, and distributing a cache identifier for the cached picture to be shared.
6. The method of claim 5, wherein after sharing the picture to be shared to the first social platform, further comprising:
searching the picture to be shared in a cache according to the cache identification;
and sharing the picture to be shared found in the cache to a second social platform.
7. The method according to claim 4, wherein the sharing the picture to be shared to a first social platform comprises:
receiving a sharing instruction output by a sharing component of a webpage, wherein the sharing instruction is used for indicating that the picture to be shared is shared to at least one social platform, and the social platform comprises the first social platform;
displaying a sharing interface, wherein the sharing interface comprises an identifier of the at least one social platform;
receiving an operation of selecting the first social platform by a user;
and jumping to the first social contact platform, and carrying out sharing processing of the picture to be shared on the first social contact platform.
8. The method of claim 1, wherein before sending the page request to the server, further comprising:
and detecting the operation of clicking the operation entrance by the user.
9. A method for processing a moving picture, comprising:
receiving a page request sent by a client, wherein the page request is used for requesting a current webpage view of the client, and the page request carries client information and user information;
generating a Uniform Resource Locator (URL) corresponding to the webpage view according to the client information and the user information;
and sending the URL to the client.
10. A moving picture processing apparatus, comprising:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a page request to a server, the page request is used for requesting the current webpage view of a client, and the page request carries client information and user information;
the receiving module is used for receiving a Uniform Resource Locator (URL) returned by the server, wherein the URL is generated by the server according to client information and user information and corresponds to the webpage view;
the processing module is used for linking to the corresponding webpage view through the URL; and acquiring the picture to be shared according to the webpage view.
11. The apparatus according to claim 10, wherein the processing module, when acquiring the picture to be shared according to the web page view, is specifically configured to:
the webpage views are displayed in a rolling mode, and screen capture operation is carried out on the webpage views one by one in the rolling process;
and splicing the screen capturing pictures obtained through the screen capturing operation to form the picture to be shared.
12. The apparatus according to claim 10, wherein the processing module, when acquiring the picture to be shared according to the web page view, is specifically configured to:
obtaining the content height of the current display frame of the webpage view through a webpage agent;
setting the current display frame as the webpage view;
and drawing the webpage view to obtain the picture to be shared, and resetting the current display frame according to the content height of the current display frame.
13. The apparatus of any of claims 10-12, wherein the processing module is further configured to:
and after the picture to be shared is obtained according to the webpage view, the picture to be shared is shared to a first social platform.
14. The apparatus of claim 13, wherein the processing module is further configured to:
after the picture to be shared is shared to a first social platform, caching the picture to be shared, and allocating a cache identifier for the cached picture to be shared.
15. The apparatus of claim 14, wherein the processing module is further configured to:
after the picture to be shared is shared to a first social platform, searching the picture to be shared in a cache according to the cache identification; and sharing the picture to be shared found in the cache to a second social platform.
16. The apparatus of claim 13, wherein the processing module, when sharing the to-be-shared picture to a first social platform, is specifically configured to:
receiving a sharing instruction output by a sharing component of a webpage, wherein the sharing instruction is used for indicating that the picture to be shared is shared to at least one social platform, and the social platform comprises the first social platform;
displaying a sharing interface, wherein the sharing interface comprises an identifier of the at least one social platform;
receiving an operation of selecting the first social platform by a user;
and jumping to the first social contact platform, and carrying out sharing processing of the picture to be shared on the first social contact platform.
17. The apparatus of claim 10, further comprising:
and the detection module is used for detecting the operation of clicking the operation entrance by the user before the sending module sends the page request to the server.
18. A moving picture processing apparatus, comprising:
the system comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving a page request sent by a client, the page request is used for requesting the current webpage view of the client, and the page request carries client information and user information;
the processing module is used for generating a Uniform Resource Locator (URL) corresponding to the webpage view according to the client information and the user information;
and the sending module is used for sending the URL to the client.
19. An electronic device, comprising: a receiver, a processor, a transmitter, a memory, and a computer program; the computer program is stored in the memory, and the processor executes the computer program to implement the moving picture processing method according to any one of claims 1 to 9.
20. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and a processor executes the computer program to implement the moving picture processing method according to any one of claims 1 to 9.
CN201810556688.XA 2018-05-31 2018-05-31 Dynamic picture processing method, device and storage medium Active CN108959393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556688.XA CN108959393B (en) 2018-05-31 2018-05-31 Dynamic picture processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556688.XA CN108959393B (en) 2018-05-31 2018-05-31 Dynamic picture processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108959393A CN108959393A (en) 2018-12-07
CN108959393B true CN108959393B (en) 2021-04-13

Family

ID=64492916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556688.XA Active CN108959393B (en) 2018-05-31 2018-05-31 Dynamic picture processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108959393B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413910A (en) * 2019-07-19 2019-11-05 广州欢聊网络科技有限公司 A kind of Picture Generation Method, device and mobile terminal
CN113204727A (en) * 2020-02-03 2021-08-03 阿里巴巴集团控股有限公司 Webpage sharing method, webpage sharing device and electronic equipment
CN111523071B (en) * 2020-04-16 2023-08-15 咪咕文化科技有限公司 Information sharing method, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6972766B2 (en) * 2001-08-08 2005-12-06 Konami Corporation Recording medium storing dynamic picture image generation program, dynamic picture image generation program, dynamic picture image generation method, and device for the same
CN102937986A (en) * 2012-10-25 2013-02-20 上海电机学院 Method and system for dynamically adjusting website information structure
CN104133683A (en) * 2014-07-31 2014-11-05 上海二三四五网络科技股份有限公司 Screenshot obtaining method and device
CN104572816A (en) * 2014-12-01 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
CN104615335A (en) * 2015-02-13 2015-05-13 腾讯科技(北京)有限公司 Information processing method and client side
CN107316221A (en) * 2017-05-26 2017-11-03 深圳市云智数据服务有限公司 A kind of personalized online shopping platform analyzed based on big data and implementation method
CN107454147A (en) * 2017-07-06 2017-12-08 北京潘达互娱科技有限公司 Information processing method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7093279B2 (en) * 2001-03-28 2006-08-15 Intel Corporation Method and system for automatic invocation of secure sockets layer encryption on a parallel array of Web servers
CN102142033B (en) * 2010-05-20 2013-04-24 百度在线网络技术(北京)有限公司 Method and device for providing relative sub-link information in search result
CN102999595B (en) * 2012-11-16 2016-06-08 北京百度网讯科技有限公司 A kind of for providing method and the equipment of the accession page corresponding with page info
CN104539714B (en) * 2014-12-31 2017-11-03 广州华多网络科技有限公司 The method and device of dynamic picture service URL generations
CN105868276A (en) * 2016-03-22 2016-08-17 乐视网信息技术(北京)股份有限公司 Webpage displaying method and device thereof
CN105956888A (en) * 2016-05-31 2016-09-21 北京创意魔方广告有限公司 Advertisement personalized display method
CN108022144B (en) * 2016-10-31 2022-05-24 阿里巴巴集团控股有限公司 Method and device for providing data object information
CN106776992A (en) * 2016-12-06 2017-05-31 程在舒 Personalized website links generation method and represents system
CN107491301A (en) * 2017-07-27 2017-12-19 北京奇安信科技有限公司 Dynamic interface processing method and processing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6972766B2 (en) * 2001-08-08 2005-12-06 Konami Corporation Recording medium storing dynamic picture image generation program, dynamic picture image generation program, dynamic picture image generation method, and device for the same
CN102937986A (en) * 2012-10-25 2013-02-20 上海电机学院 Method and system for dynamically adjusting website information structure
CN104133683A (en) * 2014-07-31 2014-11-05 上海二三四五网络科技股份有限公司 Screenshot obtaining method and device
CN104572816A (en) * 2014-12-01 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
CN104615335A (en) * 2015-02-13 2015-05-13 腾讯科技(北京)有限公司 Information processing method and client side
CN107316221A (en) * 2017-05-26 2017-11-03 深圳市云智数据服务有限公司 A kind of personalized online shopping platform analyzed based on big data and implementation method
CN107454147A (en) * 2017-07-06 2017-12-08 北京潘达互娱科技有限公司 Information processing method and device

Also Published As

Publication number Publication date
CN108959393A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN110096660B (en) Method and device for loading page pictures and electronic equipment
KR102255138B1 (en) Message processing method and device, storage medium, and computer device
CN107622135B (en) Method and apparatus for displaying information
CN104216695B (en) Page information to be showed is provided and shows the method and system of page info
CN107463563B (en) Information service processing method and device of browser
CN106453572B (en) Method and system based on Cloud Server synchronous images
CN109992406B (en) Picture request method, picture request response method and client
CN109086158B (en) Abnormal cause analysis method and device and server
CN113568699B (en) Content display method, device, equipment and storage medium
CN108959393B (en) Dynamic picture processing method, device and storage medium
CN110958462A (en) Live broadcast activity page display method and device, storage medium and live broadcast system
JP6302098B2 (en) Address filtering method, apparatus, program, and recording medium
CN107634854B (en) Service data processing method and device
CN110798701B (en) Video update pushing method and terminal
CN106919690B (en) Information shielding method and device and electronic equipment
CN106534280B (en) Data sharing method and device
CN106354792B (en) Webpage display method and device
CN111241438B (en) Cartoon picture display method, cartoon picture display device, cartoon picture display computer readable storage medium and cartoon picture display computer equipment
CN112187887A (en) Webpage real-time communication method and device for multiple pages and electronic equipment
CN113542335A (en) Information sharing method and device, electronic equipment and storage medium
CN111414507A (en) Information display method, equipment, device and computer readable storage medium
CN110688282B (en) Webpage performance data monitoring and monitoring task distribution method and device
CN111784427B (en) Product information processing method and device based on electronic shelf and storage medium
CN109766501B (en) Crawler protocol management method and device and crawler system
CN114547523A (en) Method, device, equipment and storage medium for performing activity navigation in live broadcast room

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
GR01 Patent grant
GR01 Patent grant