CN113676677A - Dynamic picture synthesis method and device, electronic equipment and readable storage medium - Google Patents

Dynamic picture synthesis method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113676677A
CN113676677A CN202111230017.2A CN202111230017A CN113676677A CN 113676677 A CN113676677 A CN 113676677A CN 202111230017 A CN202111230017 A CN 202111230017A CN 113676677 A CN113676677 A CN 113676677A
Authority
CN
China
Prior art keywords
picture
synthesized
dynamic
dynamic picture
browser
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.)
Granted
Application number
CN202111230017.2A
Other languages
Chinese (zh)
Other versions
CN113676677B (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.)
Shenzhen Mingyuanyun Space E Commerce Co ltd
Original Assignee
Shenzhen Mingyuanyun Space E Commerce Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mingyuanyun Space E Commerce Co ltd filed Critical Shenzhen Mingyuanyun Space E Commerce Co ltd
Priority to CN202111230017.2A priority Critical patent/CN113676677B/en
Publication of CN113676677A publication Critical patent/CN113676677A/en
Application granted granted Critical
Publication of CN113676677B publication Critical patent/CN113676677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

The application discloses a dynamic picture synthesis method, a dynamic picture synthesis device, an electronic device and a readable storage medium, wherein the dynamic picture synthesis method comprises the following steps: when a dynamic picture synthesis request is received, displaying an extended program operation panel according to the dynamic picture synthesis request; acquiring a picture set to be synthesized, wherein the picture set is loaded into the operation panel of the extension program by a browser; drawing all pictures to be synthesized in the picture set to be synthesized into canvas to generate picture data to be synthesized of the pictures to be synthesized; and generating a dynamic picture according to the picture data to be synthesized. The method and the device solve the technical problem that the operation of synthesizing the dynamic picture is complex in the prior art.

Description

Dynamic picture synthesis method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and an apparatus for synthesizing a dynamic image, an electronic device, and a readable storage medium.
Background
With the rapid development of the internet, a dynamic picture gradually becomes a new artistic form, and is more and more popular, with the higher visual requirement and sensory experience of people on the dynamic picture, the stronger and stronger demand for creating the dynamic picture is achieved, and then a plurality of websites, application software, application programs and the like for manufacturing the dynamic picture are developed, but a series of operations such as picture downloading, picture uploading, website login, software downloading and the like are required for synthesizing the dynamic picture in the prior art, so that the operation for synthesizing the dynamic picture by applying the prior art is more complicated for people.
Disclosure of Invention
The present application mainly aims to provide a method and an apparatus for synthesizing a dynamic picture, an electronic device, and a readable storage medium, and aims to solve the technical problem of complex operation in synthesizing a dynamic picture in the prior art.
In order to achieve the above object, the present application provides a dynamic picture synthesis method, including:
when a dynamic picture synthesis request is received, displaying an extended program operation panel according to the dynamic picture synthesis request;
acquiring a picture to be synthesized loaded by the browser based on the extended program operation panel;
drawing each picture to be synthesized into canvas to generate the picture data to be synthesized of each picture to be synthesized;
and generating a dynamic picture according to the picture data to be synthesized.
The present application also provides a moving picture synthesizing apparatus applied to a moving picture synthesizing device, the moving picture synthesizing apparatus including:
the extended program operating panel display module is used for displaying an extended program operating panel according to the dynamic picture synthesis request when the dynamic picture synthesis request is received;
the picture to be synthesized acquisition module is used for acquiring a picture to be synthesized loaded by the browser based on the extended program operation panel;
the to-be-synthesized picture data generation module is used for drawing each to-be-synthesized picture into canvas to generate to-be-synthesized picture data of each to-be-synthesized picture;
and the dynamic picture generating module is used for generating a dynamic picture according to the picture data to be synthesized.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the moving picture synthesizing method stored on the memory and executable on the processor, which program, when executed by the processor, can implement the steps of the moving picture synthesizing method as described above.
The present application also provides a readable storage medium which is a computer readable storage medium having stored thereon a program for implementing a moving picture synthesizing method, the program implementing the steps of the moving picture synthesizing method as described above when executed by a processor.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the motion picture synthesis method as described above.
The application provides a dynamic picture synthesis method, a device, an electronic device and a readable storage medium, firstly, when a dynamic picture synthesis request is received, an extended program operation panel is displayed according to the dynamic picture synthesis request, a picture set to be synthesized loaded into the extended program operation panel by a browser is obtained, the picture to be synthesized in a webpage opened by the browser is directly loaded into the extended program operation panel according to the dynamic picture synthesis requirement of a user detected by the browser, a series of operation steps of obtaining the picture to be synthesized, such as downloading the picture to be synthesized, saving the picture to be synthesized and uploading the picture to be synthesized in the prior art, are simplified, then all the pictures to be synthesized in the picture set to be synthesized are drawn into canvas, the picture data to be synthesized of the picture to be synthesized are generated, and the image data of the picture to be synthesized are obtained under the condition of not depending on a network, the method and the device avoid the situation that the synthesis process of the dynamic pictures is blocked, delayed or failed due to a large amount of network interaction, increase the operation time and operation steps for synthesizing the dynamic pictures by users, further realize the synthesis of the dynamic pictures by generating the dynamic pictures according to the data of the pictures to be synthesized, overcome the technical problem of complex operation of synthesizing the dynamic pictures in the prior art, and effectively simplify the operation process of synthesizing the dynamic pictures by users.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application 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 described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flowchart of a first embodiment of a method for synthesizing a dynamic image according to the present application;
FIG. 2 is a flowchart illustrating a second embodiment of a method for synthesizing a dynamic image according to the present application;
fig. 3 is a schematic device structure diagram of a hardware operating environment related to a dynamic picture synthesis method in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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.
Example one
With the rapid development of the internet, a dynamic picture gradually becomes a new artistic form, and is more and more popular, with the higher visual requirement and sensory experience of people on the dynamic picture, the stronger the demand of people on the creation of the dynamic picture, and further, a lot of websites, application software, application programs and the like for manufacturing the dynamic picture are emerged.
In a first embodiment of the dynamic picture synthesis method according to the present application, referring to fig. 1, the dynamic picture synthesis method includes:
step S10, when receiving the dynamic picture synthesis request, displaying the expansion program operation panel according to the dynamic picture synthesis request;
in this embodiment, it should be noted that the execution main body of this embodiment is a dynamic picture synthesis plug-in, and is mounted on the browser end in a plug-in form, so that a characteristic that the browser plug-in can execute a JavaScript script is utilized, dynamic picture synthesis under a network-free condition is realized, dependence on a network is effectively reduced, a picture to be synthesized can be directly obtained through the browser, manual operation processes of uploading and downloading and a picture transmission process are reduced, network interaction is greatly reduced, and an operation process of synthesizing a dynamic picture by a user is simplified.
Specifically, the browser sends a dynamic picture synthesis request to the dynamic picture synthesis plugin by detecting the trigger operation of a related control on a browser interface, the dynamic picture synthesis plugin sends an enabling instruction of an expansion program panel of the dynamic picture synthesis plugin to the browser according to the dynamic picture synthesis request, and the browser displays the expansion program operation panel according to the enabling instruction, wherein the expansion program operation panel is an operation interface of the dynamic picture synthesis plugin and is used for obtaining the target operation (such as synthesizing a dynamic picture, selecting a saving address, selecting a picture to be synthesized, editing the synthesized dynamic picture and/or saving the synthesized dynamic picture and the like) of the dynamic picture loaded in the plugin by a user and/or displaying the completion condition (such as displaying a progress bar for synthesizing the dynamic picture, displaying the selected saving address and/or highlighting the selected picture to be synthesized and the like) of each target operation and the like, it should be noted that, after receiving the dynamic picture synthesis request, the plug-in may directly synthesize the loaded picture to be synthesized into the dynamic picture according to preset parameter conditions and the like, and then modify, adjust and/or display the loaded picture by using the extended program operation panel, or first modify, adjust and/or display the picture to be synthesized and/or the dynamic picture by using the extended program operation panel, and then start synthesizing the picture to be synthesized into the dynamic picture according to the settings by using the relevant controls of the extended program operation panel.
Step S20, acquiring a picture set to be synthesized, wherein the picture set is loaded on the operation panel of the extension program by the browser;
specifically, a user selects a picture to be synthesized from a webpage opened by a browser or a local file address associated with the browser, the browser obtains a picture set to be synthesized selected by the user through detecting user operation and loads the picture set to be synthesized into a dynamic picture synthesis plugin, wherein the picture set to be synthesized comprises two or more pictures to be synthesized, the pictures to be synthesized are static pictures forming each frame of the dynamic picture, the number of the pictures to be synthesized is the number of frames of the dynamic picture, the pictures to be synthesized comprise pictures in BMP (Bitmap ), JPG (Joint Photographic Expert Group, Joint Photographic experts Group), GIF (Graphics Interchange Format, Graphics Format), swf (shock wave flash) and other formats, the picture to be synthesized selected from the webpage opened by the user is directly obtained by the browser, the browser can directly obtain a URL (uniform resource locator ) and HTML (Hyper Text file), hypertext markup language), and further determining specific picture information, wherein a user selects a picture to be synthesized from a local file address associated with a browser, and enters the associated local file address through an extension program operation panel of a dynamic picture synthesis plug-in to select the picture to be synthesized, for example: when detecting that a mouse moves to a first dynamic picture, displaying a dynamic picture synthesis icon, and when a user clicks the dynamic picture synthesis icon, taking the first dynamic picture as a picture to be synthesized selected by the user; when detecting the right click operation of a second dynamic picture, adding a dynamic picture synthesis line operation in a displayed drop-down frame, and when a user clicks the dynamic picture synthesis line operation, taking the second dynamic picture as a picture to be synthesized selected by the user; when detecting that a user selects a third dynamic picture from a local file address by dragging, clicking or selecting in an expansion program operation panel of a dynamic picture synthesis plug-in, taking the third dynamic picture as a picture to be synthesized selected by the user, wherein it needs to be explained that the synthesis of the dynamic picture is to synthesize two or more pictures to be synthesized, so that the selection and synthesis of the pictures to be synthesized are two steps, which are triggered by two different controls, and the browser loads the dynamic picture to be synthesized selected by the user into the expansion program operation panel, which can be loaded in the expansion program operation panel, or can be completed by background operation.
Preferably, after the step of loading the to-be-synthesized picture set of the operation panel of the extended program into the browser, the method further includes:
step A10, displaying the picture set to be synthesized and the preset playing sequence of the picture set to be synthesized in the extended program operation panel;
in this embodiment, specifically, the to-be-synthesized picture set is rendered in the extended program operation panel, and a preset playing sequence of the to-be-synthesized picture set is displayed, where the to-be-synthesized picture set rendered in the extended program operation panel may also be displayed in a tiled, list, thumbnail, and/or combined form, the preset playing sequence may be automatically set after automatic operation is performed according to a selected sequence of the to-be-synthesized pictures or a sequence of loading the extended program operation panel, and the display of the preset playing sequence may be illustrated in an arrangement sequence, a number, or a name to prompt a user of the playing sequence of the to-be-synthesized pictures.
Step A20, when receiving a custom playing sequence sent by the browser based on user operation, taking the custom playing sequence as the playing sequence of the picture to be synthesized.
In this embodiment, specifically, the user modifies the preset playing sequence in the extended program operation panel, and when receiving a custom playing sequence confirmed after modification by the user, the custom playing sequence replaces an original preset playing sequence as the playing sequence of the picture to be synthesized, where an operation manner for the user to modify the preset playing sequence includes but is not limited to: inputting a playing sequence, selecting the playing sequence and/or dragging and adjusting the position of the picture to be synthesized in the picture set to be synthesized so as to change the playing sequence of the picture to be synthesized, and the like.
In the embodiment, the user-defined playing sequence is obtained through the extended program operation panel, so that a more flexible mode of determining the playing sequence is realized, the pictures to be synthesized are selected out of order and then are subjected to unified sequencing, the user can select the pictures to be synthesized more conveniently and freely without worry, the selection sequence does not need to be considered, and the unified sequencing can judge whether the sequencing is proper or not more intuitively, so that the operation process of dynamic picture synthesis is smoother and simpler.
Preferably, before the step of displaying the extended program operation panel according to the moving picture synthesis request when the moving picture synthesis request is received, the method further includes:
and generating an enabling control in the browser, and receiving a dynamic picture synthesis request sent by the browser through the enabling control.
In this embodiment, specifically, after the dynamic picture synthesis plugin is installed, an enabling control may be added in a toolbar of a browser or in an associated control of a dynamic picture, and the browser sends a dynamic picture synthesis request to the dynamic picture tapping plugin by detecting operations such as clicking or selecting the control, where the enabling control is used to open the extended program operation panel and may be in the form of a button control, a line operation control, a hidden button control, or the like.
In an implementation manner, the step of obtaining the picture to be synthesized, in which the browser loads the operation panel of the extension program, further includes:
acquiring a dynamic picture synthesizing instruction sent by the browser through a preset control of the extended program operation panel;
and when the dynamic picture synthesizing instruction is received, acquiring a picture to be synthesized, which is loaded into the operation panel of the extended program by the browser.
Step S30, drawing all pictures to be synthesized in the picture set to be synthesized into canvas to generate picture data to be synthesized of the pictures to be synthesized;
in this embodiment, specifically, Image objects of all the pictures to be synthesized are created, each Image object is drawn into a canvas, and Image data of each Image object is obtained through drawImage (), where the Image data is picture data to be synthesized of the picture to be synthesized corresponding to each Image object, the Image object is a built-in object of JavaScript and represents an embedded Image, when we create an Image object, it is equivalent to cache one picture, and the canvas is a tag added in HTML5 (Hyper Text Markup Language 5.0) and used for generating an Image in real time on a web page, and can operate Image content, and basically it is a bitmap which can be operated by JavaScript.
And step S40, generating a dynamic picture according to the picture data to be synthesized.
In this embodiment, specifically, all the picture data to be synthesized are added to the corresponding positions of the preset picture format through the addFrame to obtain the picture data of each frame of the dynamic picture, and the picture data of each frame is synthesized to obtain the dynamic picture, where the preset picture format is the data structure and preset parameters (for example, frame rate, frame number, and/or frame order, etc.) of the dynamic picture determined according to the final dynamic picture format, and after the dynamic picture is generated, a render method may be invoked to render the dynamic picture into the extended program operation panel.
In an implementation manner, the step of generating a dynamic picture according to the picture data to be synthesized further includes:
when a saving instruction is received, a saving address of the dynamic picture is obtained;
and saving the dynamic picture into the saving address.
In this embodiment, specifically, when a saving instruction sent according to a detected user operation is received, a saving address corresponding to the dynamic picture selected by a user or defaulted by a system is obtained, and the dynamic picture is further saved in the saving address, where the user operation for the sent saving instruction includes an operation on a browser interface or an operation on an extended program operation panel, for example: clicking a save button according to the popup content of the browser or clicking the save button in an operation panel of the extension program, and the like; the default saving address is preset by the system, the user can be prompted to select and/or modify the saving address through a popup window or an extended program operation panel, the dynamic picture can be saved in a copy mode, namely the dynamic picture is saved in the clipboard, and then the dynamic picture in the clipboard is directly pasted and used, for example, the dynamic picture is pasted to a document, a picture, an application program and the like.
Preferably, the step of generating a dynamic picture according to the picture data to be synthesized includes:
step B10, acquiring the playing sequence of the pictures to be synthesized;
in this embodiment, specifically, a preset playing sequence of the picture to be synthesized is obtained or a custom playing sequence generated and sent by a browser based on a user operation is received, where the preset playing sequence may be automatically set after automatic operation is performed according to a sequence selected by the picture to be synthesized or a sequence loaded into the extended program operation panel.
And step B20, adding all the picture data to be synthesized into the dynamic picture frame column according to the playing sequence to generate a dynamic picture.
In this embodiment, specifically, all the picture data to be synthesized are added to a frame column in a preset picture format through an addFrame to obtain a data stream formed by arranging the picture data of each frame of the dynamic picture, the dynamic picture data can be obtained by combining the preset picture format, and the dynamic picture can be generated according to the dynamic picture data, where the frame column is a queue in which the static picture data of each frame in the dynamic picture data are arranged in a certain order.
In the embodiment, the characteristic that the browser plug-in can execute the JavaScript is utilized, the dynamic picture disassembly under the condition of no network is realized, the dependence on the network is effectively reduced, the picture to be synthesized can be directly obtained through the browser, the manual operation process of uploading and downloading and the picture transmission process are reduced, the network interaction is greatly reduced, when the dynamic picture synthesis request is received, the extended program operation panel is displayed according to the dynamic picture synthesis request, the picture set to be synthesized of the extended program operation panel loaded into the browser is obtained, the picture to be synthesized in the webpage opened by the browser is directly loaded into the extended program operation panel according to the dynamic picture synthesis requirement of the user detected by the browser, and a series of operation steps of obtaining the picture to be synthesized, such as downloading the picture to be synthesized, storing the picture to be synthesized and uploading the picture to be synthesized in the prior art are simplified, and then drawing all the pictures to be synthesized in the picture set to be synthesized into a canvas, generating the data of the pictures to be synthesized, so that the image data of the pictures to be synthesized can be obtained without depending on the network, the increase of the operation time and the operation steps of synthesizing the dynamic pictures by a user due to the situations of blocking, delay or failure in the synthesis process of the dynamic pictures caused by a large amount of network interaction is avoided, and then the dynamic pictures are generated according to the data of the pictures to be synthesized, so that the synthesis of the dynamic pictures is realized, the technical problem of complex operation of synthesizing the dynamic pictures in the prior art is solved, and the operation process of synthesizing the dynamic pictures by the user is effectively simplified.
Example two
Further, referring to fig. 2, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated again in the following. On this basis, the step of generating a dynamic picture according to the picture data to be synthesized includes:
step S41, acquiring the playing speed of the picture to be synthesized, and taking the playing speed as the frame rate of the dynamic picture;
in the embodiment, specifically, the playing rate sent by the browser based on the operation of the user in the operation panel of the extension program is acquired, and the playing rate is used as the frame rate of the dynamic picture, wherein the playing speed is the speed of switching each frame of static picture in the dynamic picture, and is expressed by the playing time or switching speed of each frame of picture, and the like, the user can set and modify the playing speed in the modes of inputting, selecting or dragging a speed progress bar and the like in the operation panel of the extended program, in an implementation manner, a basic playing rate can be preset, so that when the user does not input the playing rate, a dynamic picture generated at the preset playing rate can be obtained, and then prompting the user to modify and adjust the playing speed according to the effect of the dynamic picture, and providing convenience for the dynamic picture synthesis operation of the user.
Preferably, the step of obtaining the playing rate of the picture to be synthesized includes:
and when a first custom play rate sent by the browser based on user operation is received, taking the first custom play rate as the play rate of the picture to be synthesized.
In this embodiment, specifically, the user sets and modifies the play rate in a manner of inputting, selecting, or dragging a rate progress bar in the extended program operation panel, and when receiving a first custom play rate sent by the browser when detecting that the user triggers a related control, or when receiving a dynamic picture synthesis instruction sent by the browser when detecting that the user triggers the related control, the browser reads the play rate in the extended program operation panel and sends the play rate as the first custom play rate to the plug-in, and the first custom play rate is used as the play rate of the picture to be synthesized.
Step S42, generating a dynamic picture according to the picture data to be synthesized and the frame rate.
In this embodiment, specifically, the frame rate is added to the preset picture format through addFrame ('image data', { delay: frame rate }), the moving picture data can be obtained by combining the picture data to be synthesized, and a moving picture can be generated according to the moving picture data.
Preferably, after the step of generating a dynamic picture according to the data of the picture to be synthesized and the frame rate, the method further includes:
step S43, displaying the moving picture and the playback rate of the moving picture on the extended program operation panel;
in this embodiment, specifically, the dynamic picture is rendered into the extended program operation panel, and the playing rate of the dynamic picture is displayed, where the playing rate may be a preset playing rate or a custom playing rate, and the playing rate may be displayed in a manner of a numerical value, a graph, a progress bar, or the like.
Step S44, when receiving a second custom playback rate sent by the browser based on the user operation, taking the second custom playback rate as the playback rate of the picture to be synthesized.
In this embodiment, specifically, when the user sees a dynamic picture generated according to the first custom play rate rendered in the extended program operation panel, if the user is unsatisfied with the first custom play rate, a second custom play rate may be resent in the extended program operation panel in a manner of inputting, selecting, or dragging a rate progress bar, and the like, and the second custom play rate is used as the play rate of the picture to be synthesized.
In this embodiment, the dynamic picture generated according to the playing rate is displayed through the extended program operation panel, so that the user can intuitively judge whether the playing rate is consistent with the expectation, the user can modify or adjust the playing rate according to the display effect of the generated dynamic picture, the user requirements are better met, and the operation process is simple, convenient and easy to operate.
EXAMPLE III
An embodiment of the present application further provides a dynamic picture synthesizing apparatus, where the dynamic picture synthesizing apparatus is applied to a dynamic picture synthesizing device, and the dynamic picture synthesizing apparatus includes:
the extended program operating panel display module is used for displaying an extended program operating panel according to the dynamic picture synthesis request when the dynamic picture synthesis request is received;
the image to be synthesized acquisition module is used for acquiring an image set to be synthesized, which is loaded into the extended program operation panel by the browser;
the to-be-synthesized picture data generation module is used for drawing all to-be-synthesized pictures in the to-be-synthesized picture set into canvas to generate to-be-synthesized picture data of the to-be-synthesized pictures;
and the dynamic picture generating module is used for generating a dynamic picture according to the picture data to be synthesized.
Optionally, the dynamic picture generation module is further configured to:
acquiring the playing sequence of the pictures to be synthesized;
and adding all the picture data to be synthesized into the dynamic picture frame column according to the playing sequence to generate a dynamic picture.
Optionally, the to-be-synthesized picture obtaining module is further configured to:
displaying the picture set to be synthesized and a preset playing sequence of the picture set to be synthesized in the extended program operation panel;
and when a custom playing sequence sent by the browser based on user operation is received, taking the custom playing sequence as the playing sequence of the picture to be synthesized.
Optionally, the dynamic picture generation module is further configured to:
acquiring the playing rate of the picture to be synthesized, and taking the playing rate as the frame rate of the dynamic picture;
and generating a dynamic picture according to the picture data to be synthesized and the frame rate.
Optionally, the dynamic picture generation module is further configured to:
and when a first custom play rate sent by the browser based on user operation is received, taking the first custom play rate as the play rate of the picture to be synthesized.
Optionally, the dynamic picture generation module is further configured to:
displaying the dynamic picture and the playing speed of the dynamic picture in the extended program operation panel;
and when receiving a second custom play rate sent by the browser based on user operation, taking the second custom play rate as the play rate of the picture to be synthesized.
Optionally, the extended program operation panel display module is further configured to:
and generating an enabling control in the browser, and receiving a dynamic picture synthesis request which is generated and sent by the browser when the browser detects that a user triggers the enabling control.
The dynamic picture synthesis device provided by the invention adopts the dynamic picture synthesis method in the first embodiment or the second embodiment, and solves the technical problem that the dynamic picture synthesis operation process in the prior art is complicated. Compared with the prior art, the advantageous effects of the dynamic picture synthesis apparatus provided by the embodiment of the present invention are the same as the advantageous effects of the dynamic picture synthesis method provided by the above embodiment, and other technical features of the dynamic picture synthesis apparatus are the same as those disclosed in the method of the previous embodiment, which are not described herein again.
Example four
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for synthesizing a moving picture according to the first embodiment.
Referring now to FIG. 3, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device may include a processing apparatus (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage apparatus into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the invention adopts the dynamic picture synthesis method in the first embodiment or the second embodiment, so that the technical problem that the dynamic picture synthesis operation process is complicated in the prior art is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the dynamic picture synthesis method provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the previous embodiment, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
EXAMPLE five
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for executing the method of moving picture synthesis in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable storage medium carries one or more programs which, when executed by an electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores the computer-readable program instruction for executing the dynamic picture synthesis method, and solves the technical problem that the dynamic picture synthesis operation process is complicated in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the dynamic picture synthesis method provided by the first embodiment or the second embodiment, and are not described herein again.
EXAMPLE six
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the motion picture synthesis method as described above.
The computer program product provided by the application solves the technical problem that the dynamic picture synthesis operation process is complicated in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the dynamic picture synthesis method provided by the first embodiment or the second embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A moving picture synthesizing method, comprising:
when a dynamic picture synthesis request is received, displaying an extended program operation panel according to the dynamic picture synthesis request;
acquiring a picture set to be synthesized, wherein the picture set is loaded into the operation panel of the extension program by a browser;
drawing all pictures to be synthesized in the picture set to be synthesized into canvas to generate picture data to be synthesized of the pictures to be synthesized;
and generating a dynamic picture according to the picture data to be synthesized.
2. The moving picture synthesizing method according to claim 1, wherein the step of generating a moving picture from the data of the picture to be synthesized comprises:
acquiring the playing sequence of the pictures to be synthesized;
and adding all the picture data to be synthesized into the dynamic picture frame column according to the playing sequence to generate a dynamic picture.
3. The method for synthesizing moving pictures according to claim 2, wherein said step of obtaining a set of pictures to be synthesized, which is loaded on said operating panel of said extended program by said browser, further comprises:
displaying the picture set to be synthesized and a preset playing sequence of the picture set to be synthesized in the extended program operation panel;
and when a custom playing sequence sent by the browser based on user operation is received, taking the custom playing sequence as the playing sequence of the picture to be synthesized.
4. The moving picture synthesizing method according to claim 1, wherein the step of generating a moving picture from the data of the picture to be synthesized comprises:
acquiring the playing rate of the picture to be synthesized, and taking the playing rate as the frame rate of the dynamic picture;
and generating a dynamic picture according to the picture data to be synthesized and the frame rate.
5. The moving picture synthesizing method according to claim 4, wherein the step of obtaining the play rate of the picture to be synthesized comprises:
and when a first custom play rate sent by the browser based on user operation is received, taking the first custom play rate as the play rate of the picture to be synthesized.
6. The method as claimed in claim 4, wherein the step of generating the moving picture according to the data of the picture to be synthesized and the frame rate further comprises:
displaying the dynamic picture and the playing speed of the dynamic picture in the extended program operation panel;
and when receiving a second custom play rate sent by the browser based on user operation, taking the second custom play rate as the play rate of the picture to be synthesized.
7. The moving picture synthesizing method according to claim 1, wherein, when a moving picture synthesis request is received, before the step of displaying an extended program operation panel in accordance with the moving picture synthesis request, the method further comprises:
and generating an enabling control in the browser, and receiving a dynamic picture synthesis request which is generated and sent by the browser when the browser detects that a user triggers the enabling control.
8. A moving picture synthesizing apparatus, comprising:
the extended program operating panel display module is used for displaying an extended program operating panel according to the dynamic picture synthesis request when the dynamic picture synthesis request is received;
the image to be synthesized acquisition module is used for acquiring an image set to be synthesized, which is loaded into the extended program operation panel by the browser;
the to-be-synthesized picture data generation module is used for drawing all to-be-synthesized pictures in the to-be-synthesized picture set into canvas to generate to-be-synthesized picture data of the to-be-synthesized pictures;
and the dynamic picture generating module is used for generating a dynamic picture according to the picture data to be synthesized.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the moving picture synthesizing method according to any one of claims 1 to 7.
10. A readable storage medium having stored thereon a program for implementing a moving picture synthesizing method, the program being executed by a processor to implement the steps of the moving picture synthesizing method according to any one of claims 1 to 7.
CN202111230017.2A 2021-10-22 2021-10-22 Dynamic picture synthesis method and device, electronic equipment and readable storage medium Active CN113676677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111230017.2A CN113676677B (en) 2021-10-22 2021-10-22 Dynamic picture synthesis method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111230017.2A CN113676677B (en) 2021-10-22 2021-10-22 Dynamic picture synthesis method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113676677A true CN113676677A (en) 2021-11-19
CN113676677B CN113676677B (en) 2022-02-08

Family

ID=78550908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111230017.2A Active CN113676677B (en) 2021-10-22 2021-10-22 Dynamic picture synthesis method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113676677B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942820A (en) * 2022-07-26 2022-08-26 深圳市明源云空间电子商务有限公司 Method and device for generating Sprite map, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573110A (en) * 2015-02-02 2015-04-29 北京恒华伟业科技股份有限公司 Dynamic graph display method and dynamic graph display device in browser
CN106558088A (en) * 2015-09-24 2017-04-05 腾讯科技(深圳)有限公司 Generate the method and device of gif file
CN107291329A (en) * 2017-06-09 2017-10-24 珠海格力电器股份有限公司 The method and apparatus that dynamic wallpaper is presented in a kind of screen
CN110322532A (en) * 2018-03-27 2019-10-11 优酷网络技术(北京)有限公司 The generation method and device of dynamic image
CN111464760A (en) * 2020-05-06 2020-07-28 Oppo(重庆)智能科技有限公司 Dynamic image generation method and device and terminal equipment
CN112330775A (en) * 2020-11-24 2021-02-05 携程旅游网络技术(上海)有限公司 Method and device for synthesizing posters in batches, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573110A (en) * 2015-02-02 2015-04-29 北京恒华伟业科技股份有限公司 Dynamic graph display method and dynamic graph display device in browser
CN106558088A (en) * 2015-09-24 2017-04-05 腾讯科技(深圳)有限公司 Generate the method and device of gif file
CN107291329A (en) * 2017-06-09 2017-10-24 珠海格力电器股份有限公司 The method and apparatus that dynamic wallpaper is presented in a kind of screen
CN110322532A (en) * 2018-03-27 2019-10-11 优酷网络技术(北京)有限公司 The generation method and device of dynamic image
CN111464760A (en) * 2020-05-06 2020-07-28 Oppo(重庆)智能科技有限公司 Dynamic image generation method and device and terminal equipment
CN112330775A (en) * 2020-11-24 2021-02-05 携程旅游网络技术(上海)有限公司 Method and device for synthesizing posters in batches, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942820A (en) * 2022-07-26 2022-08-26 深圳市明源云空间电子商务有限公司 Method and device for generating Sprite map, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113676677B (en) 2022-02-08

Similar Documents

Publication Publication Date Title
CN109460233B (en) Method, device, terminal equipment and medium for updating native interface display of page
US9772978B2 (en) Touch input visualizations based on user interface context
US11170159B1 (en) System and method for using a dynamic webpage editor
US11245951B2 (en) Display device and content providing method thereof
KR20140028029A (en) Presentation format for an application tile
KR20140147095A (en) Instantiable gesture objects
WO2018036544A1 (en) Method of playing video in browser window, device, and data storage medium
US20130151937A1 (en) Selective image loading in mobile browsers
WO2020220773A1 (en) Method and apparatus for displaying picture preview information, electronic device and computer-readable storage medium
EP4124052A1 (en) Video production method and apparatus, and device and storage medium
CN112328353B (en) Display method and device of sub-application player, electronic equipment and storage medium
CN111796820B (en) Method and device for constructing front-end page based on integrated assembly and electronic equipment
US20140325349A1 (en) Real-time Representations of Edited Content
CN109446025B (en) Operation behavior playback method and device, electronic equipment and readable medium
CN113688341B (en) Dynamic picture decomposition method and device, electronic equipment and readable storage medium
KR102040359B1 (en) Synchronization points for state information
CN110647369B (en) Page dynamic display method and device, mobile terminal and storage medium
KR20140086979A (en) Method of internet browser-based remote user interface virtual mouse cursor positioning
CN113676677B (en) Dynamic picture synthesis method and device, electronic equipment and readable storage medium
US20140365964A1 (en) Multiple panel touch user interface navigation
EP3008697B1 (en) Coalescing graphics operations
CN112492399B (en) Information display method and device and electronic equipment
CN110618811B (en) Information presentation method and device
CN109669589B (en) Document editing method and device
CN110083407B (en) Method and device for realizing step bar in applet, electronic equipment and storage medium

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