CN107610207A - A kind of method, apparatus and system of generation GIF pictures - Google Patents

A kind of method, apparatus and system of generation GIF pictures Download PDF

Info

Publication number
CN107610207A
CN107610207A CN201710993296.5A CN201710993296A CN107610207A CN 107610207 A CN107610207 A CN 107610207A CN 201710993296 A CN201710993296 A CN 201710993296A CN 107610207 A CN107610207 A CN 107610207A
Authority
CN
China
Prior art keywords
animation
picture
field picture
gif pictures
gif
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710993296.5A
Other languages
Chinese (zh)
Inventor
冯丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710993296.5A priority Critical patent/CN107610207A/en
Publication of CN107610207A publication Critical patent/CN107610207A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present invention proposes a kind of method, apparatus and system of generation GIF pictures.A kind of method of generation GIF pictures, including:Obtain the single picture material for generating GIF pictures;According to the single picture material, animation is generated;Extract each two field picture of the animation;According to each two field picture of the animation, render to obtain GIF pictures.Using the above method, GIF pictures can be generated by single picture, simplify the generating process of GIF pictures.

Description

A kind of method, apparatus and system of generation GIF pictures
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of method, apparatus and system of generation GIF pictures.
Background technology
The final displaying form of dynamic floating layer ad material is a graphic interchange format (Graphics Interchange Format, GIF) picture.GIF forms can deposit several coloured images, if the multiple image number being stored in a file Read and be shown on screen according to by width, so that it may form a kind of simplest animation, i.e. GIF pictures.
The preparation method of existing GIF pictures has two kinds, and one kind is directly to be combined into GIF pictures by multiple static images; Another kind is the video for making an animation in advance, by obtaining each frame of video and then being combined into GIF pictures.If GIF Picture is synthesized this step and can completed by means of instrument, but for input, first way, it is necessary to make GIF pictures in advance In each frame static images, if to make 8s GIF pictures, by 16 frame per second calculate, then just need to make in advance 128 static images;And the second way, then need to make the video of animation in advance.Either any mode, manufacturing process All hell to pays, preliminary preparation expense are big.
The content of the invention
The defects of based on above-mentioned prior art and deficiency, the present invention propose a kind of method, apparatus of generation GIF pictures and are System, GIF pictures can be generated by single picture material, enormously simplify GIF picture making processes.
A kind of method of generation GIF pictures, including:
Obtain the single picture material for generating GIF pictures;
According to the single picture material, animation is generated;
Extract each two field picture of the animation;
According to each two field picture of the animation, render to obtain GIF pictures.
Preferably, it is described according to the single picture material, animation is generated, including:
Obtain the coding resource of the base64 forms of the single picture material;
According to the coding resource of the base64 forms of the single picture material, default animation object is created;
By the animation object editing into the animation with default animation effect.
Preferably, this method also includes:
Obtain the text material for generating GIF pictures;
Accordingly, after the coding resource of base64 forms of the single picture material is obtained, this method also includes:
According to the coding resource of the base64 forms of the single picture material and the text material, create default Animation object and character object;
The animation object and character object are compiled into the animation with default animation effect.
Preferably, each two field picture of the extraction animation, including:
The animation is commenced play out from the first two field picture of the animation;
When being often played to a two field picture of the animation, the two field picture is extracted, until the animation finishes.
Preferably, each two field picture according to the animation, render to obtain GIF pictures, including:
According to the sequencing of extraction image, each two field picture of the animation obtained to extraction is ranked up processing;
Each two field picture of the animation after sequence is carried out rendering processing, obtains GIF pictures.
A kind of device of generation GIF pictures, including:
Picture acquiring unit, for obtaining the single picture material for being used for generating GIF pictures;
Animation producing unit, for according to the single picture material, generating animation;
Picture frame extraction unit, for extracting each two field picture of the animation;
Integrated treatment unit, for each two field picture according to the animation, render to obtain GIF pictures.
Preferably, the animation producing unit, including:
Form conversion subunit, the coding resource of the base64 forms for obtaining the single picture material;
Object Creation subelement, for the coding resource of the base64 forms according to the single picture material, create pre- If animation object;
Animation editor's subelement, for by the animation object editing into the animation with default animation effect.
Preferably, the device also includes:
Text acquiring unit, for obtaining the text material for being used for generating GIF pictures;
Accordingly, the Object Creation subelement is used to be provided according to the coding of the base64 forms of the single picture material Source and the text material, create default animation object and character object;
The animation edit cell is used to compile the animation object and character object with default animation effect Animation.
Preferably, when described image frame extraction unit extracts each two field picture of the animation, it is specifically used for:
The animation is commenced play out from the first two field picture of the animation;When being often played to a two field picture of the animation, The two field picture is extracted, until the animation finishes.
Preferably, the integrated treatment unit when rendering to obtain GIF pictures, has according to each two field picture of the animation Body is used for:
According to the sequencing of extraction image, each two field picture of the animation obtained to extraction is ranked up processing;
Each two field picture of the animation after sequence is carried out rendering processing, obtains GIF pictures.
A kind of system of generation GIF pictures, including:
Memory and processor;
Wherein, the memory is connected with the processor, for caused number in storage program and program operation process According to;
The processor, by running the program in the memory, realize following functions:
Obtain the single picture material for generating GIF pictures;According to the single picture material, animation is generated;Extraction Each two field picture of the animation;According to each two field picture of the animation, render to obtain GIF pictures.
Preferably, the processor when generating animation, is specifically used for according to the single picture material:
Obtain the coding resource of the base64 forms of the single picture material;
According to the coding resource of the base64 forms of the single picture material, default animation object is created;
By the animation object editing into the animation with default animation effect.
Preferably, the processor is additionally operable to:
Obtain the text material for generating GIF pictures;
Accordingly, after the coding resource of base64 forms of the single picture material is obtained, according to individual described figure The coding resource and the text material of the base64 forms of piece material, create default animation object and character object;Will The animation object and character object compile the animation with default animation effect.
Preferably, when the processor extracts each two field picture of the animation, it is specifically used for:
The animation is commenced play out from the first two field picture of the animation;
When being often played to a two field picture of the animation, the two field picture is extracted, until the animation finishes.
Preferably, the processor when rendering to obtain GIF pictures, is specifically used for according to each two field picture of the animation:
According to the sequencing of extraction image, each two field picture of the animation obtained to extraction is ranked up processing;
Each two field picture of the animation after sequence is carried out rendering processing, obtains GIF pictures.
The method of generation GIF pictures proposed by the present invention, animation is generated according to the single picture material of acquisition, then extracted Each two field picture of animation, and render to obtain GIF pictures according to each two field picture of extraction.Above-mentioned generation GIF pictures it is whole Process is applied only to a pictures material, relative to existing GIF Picture Generation Methods, it is not necessary to prepare substantial amounts of picture or Video resource, its generating process greatly simplify.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for generation GIF pictures provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another generation GIF pictures provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for another generation GIF picture provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of the device of generation GIF pictures provided in an embodiment of the present invention;
Fig. 5 is the structural representation of the device of another generation GIF pictures provided in an embodiment of the present invention;
Fig. 6 is the structural representation of the device of another generation GIF picture provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method of generation GIF pictures, shown in Figure 1, this method includes:
S101, obtain single picture material for generating GIF pictures;
Specifically, above-mentioned single picture material, refer in the present embodiment by user's input, for generating GIF pictures Individual static images.
In the prior art, the image content shown based on GIF pictures it is more, it is necessary to user generation GIF pictures it Before, prepare sufficient amount of picture or video material, these picture materials are finally illustrated in the GIF pictures of generation.Therefore, One basis of generation GIF pictures of the prior art is exactly to need user to provide the sufficient amount of picture for meeting demand or regard Frequency material, this brings very big preparation expense to the generation of GIF pictures.
And technical scheme of the embodiment of the present invention is that relative to the greatest improvement of prior art, only by the list of acquisition Pictures material, it is possible to the method for the generation GIF pictures proposed according to embodiments of the present invention, generate GIF pictures.
It should be noted that above-mentioned single picture material, can be the static images of arbitrary format, such as can be .jpg, the picture of the arbitrary format such as .jpeg .png.In addition, above-mentioned single picture material, can be colour picture or Gray scale picture.
S102, according to the single picture material, generate animation;
Specifically, it is only a pictures that what is obtained in step S101, which is used to generate the single picture material of GIF pictures,. It is well known that the final form of GIF pictures is more scene switchings, there is the picture of dynamic effect.And more scenes are cut Change, be necessarily required to several pictures to realize.Therefore, only by the single picture of acquisition, it is clear that be to be not enough to directly generate GIF Picture.
Based on above mentioned problem, the embodiment of the present invention is after single picture material is obtained, according to the single picture material, generation Animation, after animation is obtained, it is possible to each scenic picture for forming GIF pictures is further obtained according to animation, or Dynamic effect.
The embodiment of the present invention is realized by the processing procedure of single picture material generation animation beyond the clouds.Specific method is profit With HTML5 canvas labels, according to above-mentioned single picture material, animation is generated.
Canvas labels, which are one in HTML5, can use script (being usually javascript) graphing wherein HTML element, it can be used for making photograph collection or makes simple animation.Canvas labels provide a blank canvas, Graphing can be carried out using javascript api, each pixel can be controlled, rendered pixel-by-pixel, canvas possesses more Kind of drawing path, including rectangle, circle, character or directly add image.For flash animation, canvas is more smart Ingeniously, and its fluency and cross-platform ability are stronger.
The embodiment of the present invention calls the canvas labels in above-mentioned HTML5, dynamic using the single picture material of acquisition, generation Draw.Due to being the label in the HTML5 called, therefore said process is in a network, completes beyond the clouds in other words.
In fact, the whole processing procedure of technical scheme of the embodiment of the present invention, can be completed, i.e., based on webpage beyond the clouds Perform.Single picture material is uploaded by using family, generates GIF pictures, and the GIF pictures of generation are returned into user.
S103, the extraction animation each two field picture;
Specifically, animation is similar to video, can be considered as showing obtained dynamic picture by image sequence one by one Face.After the embodiment of the present invention obtains animation, further extract animation in each two field picture, realize obtained by single picture it is more Open the purpose of image.
S104, each two field picture according to the animation, render to obtain GIF pictures.
Specifically, in embodiments of the present invention, each two field picture obtained in step S103, all as forming GIF The object of picture.Comprehensive each two field picture is simultaneously rendered, you can obtains GIF pictures.
The above-mentioned specific method rendered, the rendering intent of GIF pictures is generated for conventional user.Including of the prior art By pre-prepd sufficient amount of static images, and the rendering intent of the video generation GIF pictures made in advance, all may be used To be used by the embodiment of the present invention.
The method for the generation GIF pictures that the embodiment of the present invention proposes, animation is generated according to the single picture material of acquisition, so Each two field picture of animation is extracted afterwards, and renders to obtain GIF pictures according to each two field picture of extraction.Above-mentioned generation GIF pictures Whole process be applied only to a pictures material, relative to existing GIF Picture Generation Methods, it is not necessary to prepare substantial amounts of Picture or video resource, its generating process greatly simplify.
Optionally, in another embodiment of the present invention, it is shown in Figure 2, it is described according to the single picture material, Animation is generated, including:
S202, obtain the single picture material base64 forms coding resource;
Specifically, base64 is to be most commonly used for transmitting one of coded system of 8Bit syllabified codes on network. Base64 codings can be used for transmitting longer identification information under HTTP environment, for example, in Java Persistence systems In Hibernate, just employ base64 and be encoded to a longer unique identifier (generally 128-bit UUID) One character string, as the parameter in HTTP lists and HTTP GET URL.In other applications, also usually need two Binary data is encoded to the form for being adapted to be placed in URL (including hiding form fields).Now, being had using base64 codings can not The property read, i.e. coded data will not be with the naked eye immediately seen by people.
The embodiment of the present invention is changed by entering row format to the single picture material of acquisition, by the single picture of arbitrary format Material is converted to the picture of base64 forms, to obtain the coding resource of the base64 forms of the picture materials
S203, the coding resource according to the base64 forms of the single picture material, create default animation object;
Specifically, during canvas labels generate animation, call easeljs inside createjs storehouses and Tweenjs generates the detailed process of animation to realize.In embodiments of the present invention, canvas labels call easeljs to create dynamic Draw the canvas objects for needing to use, including other objects such as picture, circle, rectangle and word.
S204, by the animation object editing into the animation with default animation effect.
Specifically, canvas labels call tweenjs inside createjs storehouses using the canvas objects created as Animated element, edit animation.
It should be noted that in embodiments of the present invention, define the specific animation effect of animation.When canvas labels are adjusted When editing animation with the tweenjs inside createjs storehouses, according to pre-defined animation effect editor's animation.
It is understood that when actually implementing technical scheme of the embodiment of the present invention, can be according to user's request, or reality The animation effect of scene demand, flexibly setting editor animation, make the animation of generation that there is the animation effect for more conforming to user's request Fruit.
The step in the embodiment of the method shown in step S201, S205, S206 difference corresponding diagram 1 in the present embodiment S101, S103, S104, the content of its particular content embodiment of the method shown in Figure 1, here is omitted.
The embodiment of the present invention describes the detailed process that animation is generated by the single picture material of acquisition, with reference to this implementation Example specific introduction, animation can be obtained by single picture, reduce generation GIF pictures during to picture materials quantity It is required that.
Optionally, in another embodiment of the present invention, this method also includes:
Obtain the text material for generating GIF pictures;
Accordingly, after the coding resource of base64 forms of the single picture material is obtained, this method also includes:
According to the coding resource of the base64 forms of the single picture material and the text material, create default Animation object and character object;
The animation object and character object are compiled into the animation with default animation effect.
Specifically, the embodiment of the present invention is obtained and is used for while the single picture material for generating GIF pictures is obtained The text material of GIF pictures is generated, that is, is used for the one section of content of text inputted.Text content, wish to be presented on most for user Word content in whole GIF pictures.
Text material is obtained while picture materials are being obtained, and in the volume for the base64 forms for obtaining picture materials Code resource after, the embodiment of the present invention according to the coding resource of base64 forms create default animation object while, according to The text material of acquisition, create character object.The specific specific method for creating character object, is called by canvas labels Easeljs inside createjs storehouses, obtains character object.
Above-mentioned character object and animation object, while animated element is used as, generate animation.
It should be noted that the text material of above-mentioned acquisition, for the text material of user's input.The text can be with The corresponding text of picture materials of family input or the incoherent text of picture inputted with user.It is final based on making The obtained more preferable purpose of GIF picture effects, pay the utmost attention to make user input the text material related to picture materials, but not Make definitely to require.
The embodiment of the present invention also obtains the text material of user's input, ultimately generated while picture materials are obtained GIF pictures in, add text element, make GIF image contents more rich.
Optionally, in another embodiment of the present invention, each two field picture of the extraction animation, including:
The animation is commenced play out from the first two field picture of the animation;
When being often played to a two field picture of the animation, the two field picture is extracted, until the animation finishes.
Specifically, while using canvas generation animations, a GIF object is created using gif.js, is then started Playing animation, animation can be controlled and played by frame, when playing a frame, call gif.js addFrame methods to take just now That two field picture, and be added in GIF objects, when animation finishes, all animation frames are added to GIF objects In.By the above-mentioned means, extraction has obtained each two field picture of animation.
Optionally, in another embodiment of the present invention, it is shown in Figure 3, each frame according to the animation Image, render to obtain GIF pictures, including:
S304, the sequencing according to extraction image, each two field picture of the animation obtained to extraction are ranked up Processing;
Specifically, each two field picture of the animation obtained for extraction is, it is necessary to be sequentially generated GIF pictures.In the present invention In embodiment, obtained each two field picture will be extracted, according to extraction sequencing, i.e. playing animation when the priority that plays it is suitable Sequence, it is ranked up.
S305, each two field picture to the animation after sequence carry out rendering processing, obtain GIF pictures.
Specifically, each frame picture after above-mentioned sequence is rendered into GIF pictures, then each frame picture is in GIF pictures Dynamic effect, it is identical with the picture transition effect of animation.The embodiment of the present invention equally uses existing conventional GIF rendering intents Render to obtain GIF pictures.
In the present embodiment step S301~S303 difference corresponding diagram 1 shown in embodiment of the method in step S101~ S103, the content of its particular content embodiment of the method shown in Figure 1, here is omitted.
The embodiment of the invention discloses a kind of device of generation GIF pictures, shown in Figure 4, the device includes:
Picture acquiring unit 401, for obtaining the single picture material for being used for generating GIF pictures;
Animation producing unit 402, for according to the single picture material, generating animation;
Picture frame extraction unit 403, for extracting each two field picture of the animation;
Integrated treatment unit 404, for each two field picture according to the animation, render to obtain GIF pictures.
Specifically, in the present embodiment unit specific works content, refer to the content of above method embodiment, this Place repeats no more.
Optionally, in another embodiment of the present invention, it is shown in Figure 5, animation producing unit, including:
Form conversion subunit 4021, the coding resource of the base64 forms for obtaining the single picture material;
Object Creation subelement 4022, for the coding resource of the base64 forms according to the single picture material, wound Build default animation object;
Animation editor subelement 4023, for by the animation object editing into the animation with default animation effect.
Specifically, in the present embodiment unit specific works content, refer to the content of above method embodiment, this Place repeats no more.
Optionally, in another embodiment of the present invention, the device also includes:
Text acquiring unit, for obtaining the text material for being used for generating GIF pictures;
Accordingly, the Object Creation subelement is used to be provided according to the coding of the base64 forms of the single picture material Source and the text material, create default animation object and character object;
The animation edit cell is used to compile the animation object and character object with default animation effect Animation.
Specifically, in the present embodiment unit specific works content, refer to the content of above method embodiment, this Place repeats no more.
Optionally, in another embodiment of the present invention, picture frame extraction unit 403 extracts each frame of the animation During image, it is specifically used for:
The animation is commenced play out from the first two field picture of the animation;When being often played to a two field picture of the animation, The two field picture is extracted, until the animation finishes.
Specifically, the specific works content of the picture frame extraction unit 403 in the present embodiment, refers to above method implementation The content of example, here is omitted.
Optionally, in another embodiment of the present invention, integrated treatment unit 404 is according to each frame figure of the animation Picture, when rendering to obtain GIF pictures, it is specifically used for:
According to the sequencing of extraction image, each two field picture of the animation obtained to extraction is ranked up processing;
Each two field picture of the animation after sequence is carried out rendering processing, obtains GIF pictures.
Specifically, the specific works content of the integrated treatment unit 404 in the present embodiment, refers to above method embodiment Content, here is omitted.
The embodiment of the invention also discloses a kind of system of generation GIF pictures, shown in Figure 6, the system includes:
Memory 601 and processor 602;
Wherein, memory 601 is connected with processor 602, for caused data in storage program and program operation process;
Processor 602, by the program in run memory 601, realize following functions:
Obtain the single picture material for generating GIF pictures;According to the single picture material, animation is generated;Extraction Each two field picture of the animation;According to each two field picture of the animation, render to obtain GIF pictures.
Specifically, the specific works content of the various pieces in the present embodiment, the content of above method embodiment is referred to, Here is omitted.
Optionally, in another embodiment of the present invention, processor 602 is dynamic according to the single picture material, generation During picture, it is specifically used for:
Obtain the coding resource of the base64 forms of the single picture material;
According to the coding resource of the base64 forms of the single picture material, default animation object is created;
By the animation object editing into the animation with default animation effect.
Specifically, the specific works content of the processor 602 in the present embodiment, refers to the interior of above method embodiment Hold, here is omitted.
Optionally, in another embodiment of the present invention, processor 602 is additionally operable to:
Obtain the text material for generating GIF pictures;
Accordingly, after the coding resource of base64 forms of the single picture material is obtained, according to individual described figure The coding resource and the text material of the base64 forms of piece material, create default animation object and character object;Will The animation object and character object compile the animation with default animation effect.
Specifically, the specific works content of the various pieces in the present embodiment, the content of above method embodiment is referred to, Here is omitted.
Optionally, in another embodiment of the present invention, when processor 602 extracts each two field picture of the animation, It is specifically used for:
The animation is commenced play out from the first two field picture of the animation;
When being often played to a two field picture of the animation, the two field picture is extracted, until the animation finishes.
Specifically, the specific works content of the processor 602 in the present embodiment, refers to the interior of above method embodiment Hold, here is omitted.
Optionally, in another embodiment of the present invention, processor 602 is according to each two field picture of the animation, wash with watercolours When dye obtains GIF pictures, it is specifically used for:
According to the sequencing of extraction image, each two field picture of the animation obtained to extraction is ranked up processing;
Each two field picture of the animation after sequence is carried out rendering processing, obtains GIF pictures.
Specifically, the specific works content of the processor 602 in the present embodiment, refers to the interior of above method embodiment Hold, here is omitted.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (15)

  1. A kind of 1. method of generation GIF pictures, it is characterised in that including:
    Obtain the single picture material for generating GIF pictures;
    According to the single picture material, animation is generated;
    Extract each two field picture of the animation;
    According to each two field picture of the animation, render to obtain GIF pictures.
  2. 2. according to the method for claim 1, it is characterised in that it is described according to the single picture material, generate animation, bag Include:
    Obtain the coding resource of the base64 forms of the single picture material;
    According to the coding resource of the base64 forms of the single picture material, default animation object is created;
    By the animation object editing into the animation with default animation effect.
  3. 3. according to the method for claim 2, it is characterised in that this method also includes:
    Obtain the text material for generating GIF pictures;
    Accordingly, after the coding resource of base64 forms of the single picture material is obtained, this method also includes:
    According to the coding resource of the base64 forms of the single picture material and the text material, default animation is created Object and character object;
    The animation object and character object are compiled into the animation with default animation effect.
  4. 4. according to the method for claim 1, it is characterised in that each two field picture of the extraction animation, including:
    The animation is commenced play out from the first two field picture of the animation;
    When being often played to a two field picture of the animation, the two field picture is extracted, until the animation finishes.
  5. 5. according to the method for claim 4, it is characterised in that each two field picture according to the animation, render To GIF pictures, including:
    According to the sequencing of extraction image, each two field picture of the animation obtained to extraction is ranked up processing;
    Each two field picture of the animation after sequence is carried out rendering processing, obtains GIF pictures.
  6. A kind of 6. device of generation GIF pictures, it is characterised in that including:
    Picture acquiring unit, for obtaining the single picture material for being used for generating GIF pictures;
    Animation producing unit, for according to the single picture material, generating animation;
    Picture frame extraction unit, for extracting each two field picture of the animation;
    Integrated treatment unit, for each two field picture according to the animation, render to obtain GIF pictures.
  7. 7. device according to claim 6, it is characterised in that the animation producing unit, including:
    Form conversion subunit, the coding resource of the base64 forms for obtaining the single picture material;
    Object Creation subelement, for the coding resource of the base64 forms according to the single picture material, create default Animation object;
    Animation editor's subelement, for by the animation object editing into the animation with default animation effect.
  8. 8. device according to claim 7, it is characterised in that the device also includes:
    Text acquiring unit, for obtaining the text material for being used for generating GIF pictures;
    Accordingly, the Object Creation subelement be used for according to the coding resource of the base64 forms of the single picture material with And the text material, create default animation object and character object;
    The animation edit cell is used to the animation object and character object compiling moving with default animation effect Draw.
  9. 9. device according to claim 6, it is characterised in that described image frame extraction unit extracts each of the animation During two field picture, it is specifically used for:
    The animation is commenced play out from the first two field picture of the animation;When being often played to a two field picture of the animation, extraction The two field picture, until the animation finishes.
  10. 10. device according to claim 9, it is characterised in that the integrated treatment unit is according to each of the animation Two field picture, when rendering to obtain GIF pictures, it is specifically used for:
    According to the sequencing of extraction image, each two field picture of the animation obtained to extraction is ranked up processing;
    Each two field picture of the animation after sequence is carried out rendering processing, obtains GIF pictures.
  11. A kind of 11. system of generation GIF pictures, it is characterised in that including:
    Memory and processor;
    Wherein, the memory is connected with the processor, for caused data in storage program and program operation process;
    The processor, by running the program in the memory, realize following functions:
    Obtain the single picture material for generating GIF pictures;According to the single picture material, animation is generated;Described in extraction Each two field picture of animation;According to each two field picture of the animation, render to obtain GIF pictures.
  12. 12. system according to claim 11, it is characterised in that the processor is raw according to the single picture material During into animation, it is specifically used for:
    Obtain the coding resource of the base64 forms of the single picture material;
    According to the coding resource of the base64 forms of the single picture material, default animation object is created;
    By the animation object editing into the animation with default animation effect.
  13. 13. system according to claim 12, it is characterised in that the processor is additionally operable to:
    Obtain the text material for generating GIF pictures;
    Accordingly, after the coding resource of base64 forms of the single picture material is obtained, according to single picture element The coding resource and the text material of the base64 forms of material, create default animation object and character object;By described in Animation object and character object compile the animation with default animation effect.
  14. 14. system according to claim 11, it is characterised in that the processor extracts each two field picture of the animation When, it is specifically used for:
    The animation is commenced play out from the first two field picture of the animation;
    When being often played to a two field picture of the animation, the two field picture is extracted, until the animation finishes.
  15. 15. system according to claim 14, it is characterised in that the processor is according to each frame figure of the animation Picture, when rendering to obtain GIF pictures, it is specifically used for:
    According to the sequencing of extraction image, each two field picture of the animation obtained to extraction is ranked up processing;
    Each two field picture of the animation after sequence is carried out rendering processing, obtains GIF pictures.
CN201710993296.5A 2017-10-23 2017-10-23 A kind of method, apparatus and system of generation GIF pictures Pending CN107610207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710993296.5A CN107610207A (en) 2017-10-23 2017-10-23 A kind of method, apparatus and system of generation GIF pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710993296.5A CN107610207A (en) 2017-10-23 2017-10-23 A kind of method, apparatus and system of generation GIF pictures

Publications (1)

Publication Number Publication Date
CN107610207A true CN107610207A (en) 2018-01-19

Family

ID=61079179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710993296.5A Pending CN107610207A (en) 2017-10-23 2017-10-23 A kind of method, apparatus and system of generation GIF pictures

Country Status (1)

Country Link
CN (1) CN107610207A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881997A (en) * 2018-07-24 2018-11-23 北京奇艺世纪科技有限公司 Animation file generates and playback method, device and system
CN109636885A (en) * 2018-11-28 2019-04-16 广东智合创享营销策划有限公司 A kind of sequence frame animation method and system for the H5 page
CN110322532A (en) * 2018-03-27 2019-10-11 优酷网络技术(北京)有限公司 The generation method and device of dynamic image
CN112001988A (en) * 2019-05-27 2020-11-27 珠海金山办公软件有限公司 Animation effect generation method and device
CN112269961A (en) * 2020-11-12 2021-01-26 携程旅游网络技术(上海)有限公司 Webpage generation method, system, equipment and storage medium based on associated report
CN112819927A (en) * 2021-02-04 2021-05-18 上海哔哩哔哩科技有限公司 Video generation method and device based on pictures

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138695A (en) * 2015-09-21 2015-12-09 合一网络技术(北京)有限公司 Method and device for graphics interchange format (GIF) recording
CN106204693A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 Animation producing method based on picture detection and device
CN106375862A (en) * 2016-09-22 2017-02-01 维沃移动通信有限公司 GIF picture acquisition method and apparatus, and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204693A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 Animation producing method based on picture detection and device
CN105138695A (en) * 2015-09-21 2015-12-09 合一网络技术(北京)有限公司 Method and device for graphics interchange format (GIF) recording
CN106375862A (en) * 2016-09-22 2017-02-01 维沃移动通信有限公司 GIF picture acquisition method and apparatus, and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LX7185: "如何用手机app把一张照片制作成动图", 《HTTP://WWW.360DOC.COM/CONTENT/17/1012/19/10700822_694409330.SHTML》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110322532A (en) * 2018-03-27 2019-10-11 优酷网络技术(北京)有限公司 The generation method and device of dynamic image
CN108881997A (en) * 2018-07-24 2018-11-23 北京奇艺世纪科技有限公司 Animation file generates and playback method, device and system
CN109636885A (en) * 2018-11-28 2019-04-16 广东智合创享营销策划有限公司 A kind of sequence frame animation method and system for the H5 page
CN109636885B (en) * 2018-11-28 2023-07-04 广东智合创享营销策划有限公司 Sequential frame animation production method and system for H5 page
CN112001988A (en) * 2019-05-27 2020-11-27 珠海金山办公软件有限公司 Animation effect generation method and device
CN112269961A (en) * 2020-11-12 2021-01-26 携程旅游网络技术(上海)有限公司 Webpage generation method, system, equipment and storage medium based on associated report
CN112819927A (en) * 2021-02-04 2021-05-18 上海哔哩哔哩科技有限公司 Video generation method and device based on pictures

Similar Documents

Publication Publication Date Title
CN107610207A (en) A kind of method, apparatus and system of generation GIF pictures
CN110290425B (en) Video processing method, device and storage medium
CN111899322B (en) Video processing method, animation rendering SDK, equipment and computer storage medium
CN104765614B (en) Color in processing method and processing device
CN105657574B (en) A kind of video file production method and device
CN105933724A (en) Video producing method, device and system
JP5118342B2 (en) Method for sending and receiving font information in a streaming system
CN103631865B (en) Webpage generating method and equipment
CN111246122A (en) Method and device for synthesizing video by multiple photos
CN111899155A (en) Video processing method, video processing device, computer equipment and storage medium
CN106886353B (en) Display processing method and device of user interface
CN107392974A (en) Picture generation method and device and terminal equipment
CN107767437B (en) Multilayer mixed asynchronous rendering method
CN114997105A (en) Design template, material generation method, computing device and storage medium
CN107320956A (en) A kind of interface generation method and device
CN110853121B (en) Cross-platform data processing method and device based on AE
CN112269891A (en) Dynamic album generating method, server, display terminal and readable storage medium
CN114339069B (en) Video processing method, video processing device, electronic equipment and computer storage medium
CN107230244A (en) The generation method and rendering system of a kind of animation file
CN106204693A (en) Animation producing method based on picture detection and device
CN110784739A (en) Video synthesis method and device based on AE
JP5277436B2 (en) Image display program, image display device, and avatar providing system
CN104461615B (en) A kind of processing method and electronic equipment of skin resource
CN111145318A (en) Rendering method and device based on NGUI
CN115391692A (en) Video processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180119