CN113703877A - Method and device for generating image based on image generation plug-in and readable storage medium - Google Patents

Method and device for generating image based on image generation plug-in and readable storage medium Download PDF

Info

Publication number
CN113703877A
CN113703877A CN202111237335.1A CN202111237335A CN113703877A CN 113703877 A CN113703877 A CN 113703877A CN 202111237335 A CN202111237335 A CN 202111237335A CN 113703877 A CN113703877 A CN 113703877A
Authority
CN
China
Prior art keywords
file
image
picture
generating
compressed file
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
CN202111237335.1A
Other languages
Chinese (zh)
Other versions
CN113703877B (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 CN202111237335.1A priority Critical patent/CN113703877B/en
Publication of CN113703877A publication Critical patent/CN113703877A/en
Application granted granted Critical
Publication of CN113703877B publication Critical patent/CN113703877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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
    • G06F16/986Document structures and storage, e.g. HTML extensions

Abstract

The invention discloses a method, a device and a readable storage medium for generating a graph type based on a graph type generation plug-in, wherein the method comprises the following steps: the method comprises the steps that a picture generation plug-in receives a picture file and a compressed file to be combined, a js script generating a picture format is called to convert the picture file and the compressed file into binary data, picture file data are generated based on the binary data, a downloading program of a display interface of the picture generation plug-in is activated, a downloading requirement of a browser end is obtained based on the downloading program, and if the downloading requirement is received, the picture file data are converted into pictures and sent to the browser end. The method and the device realize the rapid and convenient generation of the image types under the condition of no network resources, and meet the use requirements of users in specific scenes.

Description

Method and device for generating image based on image generation plug-in and readable storage medium
Technical Field
The invention relates to the field of browser plug-ins, in particular to a method and a device for generating a graph type based on a graph type generation plug-in and a computer readable storage medium.
Background
With the development of various technological and technical means, users pay more and more attention to the confidentiality of network information, and further generate various means of encrypting files, wherein a graph is one of the means of encrypting files.
In the prior art, at least the following problems exist, a user can generate the image type file through a browser end only under the condition that the user has network resources, and the image type file can be failed to generate when the environment where the user is located does not have the network resources.
In addition, when the browser is used for generating the image type file, a specific online website needs to be opened for execution, the process is complicated, and when the connected online website is a malicious website, the risk of file leakage exists.
Disclosure of Invention
The invention mainly aims to provide a method for generating a graph type based on a graph type generation plug-in, and aims to solve the technical problem of how to realize the generation of a graph type file under the condition of no network resource.
In order to achieve the above object, the present invention provides a method for generating a pattern based on a pattern generation plug-in, which comprises the following steps:
receiving a picture file and a compressed file to be combined based on a picture generation plug-in, and calling a js script for generating a picture format to convert the picture file and the compressed file into binary data;
generating image type file data based on the binary data, activating a downloading program of a display interface of the image type generation plug-in, and acquiring a downloading requirement of a browser side based on the downloading program;
and if the downloading requirement is received, converting the image type file data into image types and sending the image types to the browser end.
Optionally, before the step of receiving the picture file and the compressed file to be combined by the picture generation plug-in, and calling the js script generating the picture format to convert the picture file and the compressed file into binary data, the method further includes:
receiving an installation request of a browser end;
checking whether the application program interface of the browser end is consistent with the application program interface of the image merging plug-in or not based on the installation request;
if the application program interfaces are consistent, sending data signature information to the browser end, and judging whether an operation instruction for continuing installation sent by the browser end is received;
if receiving an operation instruction of continuing installation sent by the browser end, completing the installation of the browser end;
and if the operation instruction of continuing the installation sent by the browser end is not received, the installation of the browser end is interrupted.
Optionally, after the step of generating a js script in a picture format to convert the picture file and the compressed file into binary data by the call, the method further includes:
and after detecting the received binary data of the picture file and the compressed file, generating an empty zip compressed file character stream, and adding the binary data of the compressed file into the empty zip compressed file character stream to form a compressed file character stream.
Optionally, after the step of adding the binary data of the compressed file to the character stream of the empty zip compressed file to form a character stream of the compressed file, the method further includes:
and adding the compressed file character stream to the tail of the binary data of the picture file to complete the generation of the picture file and the picture type file data corresponding to the compressed file.
Optionally, after the step of generating the graphics file data based on the binary data and activating a downloading program of a display interface of the graphics generation plug-in, the method further includes:
and sending the image file data to the display interface, and displaying a preset image file based on the display interface.
Optionally, after the step of sending the image file data to the display interface and displaying a preset image file based on the display interface, the method further includes:
and displaying the animation of the step of extracting the compressed file in the image based on the display interface.
Optionally, if the download requirement is received, the step of converting the image type file data into an image type and sending the image type file data to the browser end includes:
and if the downloading requirement is not received, caching the image type file data into a local file of the browser end.
Optionally, after the step of converting the image file data into an image type and sending the image type to the browser end if the download requirement is received, the method further includes:
and calling out and clearing binary data of the picture file and the compressed file cached to the browser end after detecting that the browser end finishes downloading and storing the picture type.
In addition, in order to achieve the above object, the present invention further provides an apparatus for generating a pattern based on a pattern generation plug-in, including a memory, a processor, and a pattern generation plug-in generation pattern processing program stored in the memory and executable on the processor, where the processor executes the steps of the method for generating a pattern based on a pattern generation plug-in when the pattern generation plug-in generates the pattern processing program.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, in which a graph species generation plug-in generation graph species program is stored, and the graph species generation plug-in generation graph species program implements the steps of the graph species generation plug-in generation graph species method when executed by a processor.
The embodiment of the invention provides a method for generating image types based on image type generation plug-ins, which is characterized in that the image type generation plug-ins are installed at a browser end, so that a user can generate the image types under the condition of no network resource, the js script of an image type generation language is compiled in the image type generation plug-ins, the automatic compiling of a command line is realized, the received image files and compressed files are converted into binary streams to be stored to the browser end, the space saving of the browser end is facilitated, and the loss of effective bits cannot be caused by using binary storage.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a method for generating a graphics based on a graphics generation plug-in according to the present invention;
FIG. 3 is a detailed flowchart of step S10 in FIG. 2;
FIG. 4 is a schematic diagram of a display interface of a plug-in generation and an interface of an upload file bar according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: and installing a picture generation plug-in at the browser end, rapidly and conveniently recoding the uploaded picture file and the uploaded compressed file based on a js script in the picture generation plug-in to obtain picture file data, and converting the picture file data into a picture and storing the picture to the browser end.
In the prior art, the generation of the image seeds needs to be based on a server, and the server can generate the image seeds only under the condition of network resources, so that the method for generating the image seeds is limited, the method is not beneficial to users under the condition of no network resources, the method needs to be realized through an online website, the generation process is complicated, and if the website is a malicious website, the risk of information leakage exists, and the method is not beneficial to the information safety of the users.
The invention provides a method for generating image types based on image type generation plug-ins, which enables a user to realize the generation of the image types under the condition of no network resources, meets the use requirements of the user in a specific scene and achieves the purposes of synthesizing image files and compressing the files in an off-line manner.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device for generating the image seeds based on the image seed generation plug-in the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer, an e-book reader, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the device for generating the image based on the image generation plug-in may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the configuration of the seed-based generation of a seed device illustrated in FIG. 1 does not constitute a limitation on seed-based generation of a seed device, and may include more or fewer components than those illustrated, or some components in combination, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a generation seed program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a generate graphics program stored in the memory 1005 and perform the following operations:
receiving an image file and a compressed file to be combined by the image generation plug-in, and calling a js script for generating an image format to convert the image file and the compressed file into binary data;
generating image type file data based on the binary data, activating a downloading program of a display interface of the image type generation plug-in, and acquiring a downloading requirement of a browser side based on the downloading program;
and if the downloading requirement is received, converting the image type file data into image types and sending the image types to the browser end.
Further, the processor 1001 may call a graph seed generation plug-in based graph seed program stored in the memory 1005, and further perform the following operations:
receiving an installation request of a browser end;
checking whether the application program interface of the browser end is consistent with the application program interface of the image merging plug-in or not based on the installation request;
if the application program interfaces are consistent, sending data signature information to the browser end, and judging whether an operation instruction for continuing installation sent by the browser end is received;
if receiving an operation instruction of continuing installation sent by the browser end, completing the installation of the browser end;
and if the operation instruction of continuing the installation sent by the browser end is not received, the installation of the browser end is interrupted.
Further, the processor 1001 may call a graph seed generation plug-in based graph seed program stored in the memory 1005, and further perform the following operations:
and after detecting the received binary data of the picture file and the compressed file, generating an empty zip compressed file character stream, and adding the binary data of the compressed file into the empty zip compressed file character stream to form a compressed file character stream.
Further, the processor 1001 may call a graph seed generation plug-in based graph seed program stored in the memory 1005, and further perform the following operations:
and adding the compressed file character stream to the tail of the binary data of the picture file to complete the generation of the picture file and the picture type file data corresponding to the compressed file.
Further, the processor 1001 may call a graph seed generation plug-in based graph seed program stored in the memory 1005, and further perform the following operations:
and sending the image file data to the display interface, and displaying a preset image file based on the display interface.
Further, the processor 1001 may call a graph seed generation plug-in based graph seed program stored in the memory 1005, and further perform the following operations:
and displaying the animation of the step of extracting the compressed file in the image based on the display interface.
Further, the processor 1001 may call a graph seed generation plug-in based graph seed program stored in the memory 1005, and further perform the following operations:
and if the downloading requirement is not received, caching the image type file data into a local file of the browser end.
Further, the processor 1001 may call a graph seed generation plug-in based graph seed program stored in the memory 1005, and further perform the following operations:
and calling out and clearing binary data of the picture file and the compressed file cached to the browser end after detecting that the browser end finishes downloading and storing the picture type.
Referring to fig. 2, an embodiment of the present invention provides a method for generating a graphics seed based on a graphics seed generation plug-in, where the method for generating the graphics seed based on the graphics seed generation plug-in includes:
step S10, receiving the picture file and the compressed file to be combined based on the picture generation plug-in, calling a js script for generating the picture format to convert the picture file and the compressed file into binary data;
the image generation plug-in is installed at the browser end and is mainly used for quickly generating an image file plug-in based on the image generation plug-in uploaded by a user.
The picture type mainly refers to a file which combines a picture file and a compressed file in a special way, the picture type is usually a picture on the surface, the picture can be reserved normally, when a user downloads the picture to the local, the suffix name of the file needs to be modified, for example, jpg is modified into zip, the compressed file can be obtained after the compressed file is decompressed by using compression software, and the compressed file is encrypted to a certain extent.
The uploaded file information needs to be a compressed file, so that the uploading speed can be increased, and the space capacity can be saved.
In the invention, a user directly opens the plug-in and drags or loads the picture file and the compressed file to be combined to the display interface of the image generation plug-in, and the image generation plug-in can directly call the js script in the image generation plug-in for generating the image format when detecting that the picture file and the compressed file are dragged or loaded, so as to convert the picture file and the compressed file into binary data.
The js script is an executable file which is written by using a specific descriptive language and according to a certain format, and is written in the plug-in at the earlier stage, so that the picture file and the compressed file to be combined can be recoded into a command code which can be identified by a machine and can be executed according to the sequence of the generated program, and because the js script can only realize information browsing or dynamic interaction through a browser end, the loss of data can be effectively prevented, and a user can conveniently add functions to the plug-in by using code segments at any time.
The js script dynamic program in the invention is implemented in a binary mode, so that the js script directly converts the programs of the picture file and the compressed file into binary data, namely binary instruction codes, which are instruction codes recognizable by a browser end, and the converted binary data is directly recognized by the browser end and is directly cached in the browser end.
The binary data is converted into the binary data because the operation rule of the binary data is simple, the operation speed can be improved, the reliability is high, errors can be avoided in the transmission process, and the binary data is more favorably cached.
The image file and the compressed file are converted into the binary data, because the binary data saves space capacity, the capacity load of the browser end can be reduced.
Optionally, after the step of invoking a js script generating a picture format in step S10 to convert the picture file and the compressed file into binary data, the method further includes:
step A, after detecting the received binary data of the picture file and the compressed file, generating an empty zip compressed file character stream, and adding the binary data of the compressed file into the empty zip compressed file character stream to form a compressed file character stream.
When the binary data files of the picture file and the compressed file are detected, the plug-in generates an empty zip compressed file character stream for filling the binary data of the compressed file. After the binary data of the compressed file is filled into the character stream of the empty zip compressed file, the character stream of the compressed file is generated, the binary data of the compressed file is conveniently hidden under the picture file, and the data damage of the compressed file is avoided.
The reason why the binary data of the compressed file needs to be converted into the character stream of the compressed file is that the character stream can be displayed as text information of the file which can be seen only for better caching the data transmitted to the browser end. If the binary data of the compressed file is not converted into the character stream of the compressed file, but the binary data of the compressed file is directly added to the end of the binary data of the picture file, after the generated compressed file in the picture is decompressed, the data is 01, namely the binary data, but not the text information of the file.
Although a user can read text information from binary data, binary data is not a general-purpose language in nature, and reading text information from binary data can consume a great deal of time and effort by the user.
Therefore, the binary data of the compressed file is filled into the character stream of the empty zip compressed file, so that the decompressed compressed file can be displayed in a text information form, a user can read the text information more conveniently, and time and energy of the user are saved.
Optionally, after the step of adding the binary data of the compressed file to the character stream of the empty zip compressed file in the step a to form a character stream of the compressed file, the method further includes:
and step B, adding the compressed file character stream to the tail of the binary data of the picture file to complete the generation of the picture file and the picture type file data corresponding to the compressed file.
Because the generation sequence of the image types is written in the js script of the image type generation plug-in, after the compressed file character stream is obtained, the next step is to bind the data destination to which the compressed file character stream is written.
In the invention, the data destination of the compressed file character stream is the binary data of the picture file, and the data of a picture type file can be obtained after the compressed file character stream is written into the binary data of the picture file.
Step S20, generating image type file data based on the binary data, activating a downloading program of a display interface of the image type generation plug-in, and acquiring a downloading requirement of the browser end based on the downloading program;
after the graph generation plug-in obtains the data of the graph files, the merging is completed, and the next step is to output the graph file data.
The display interface of the picture generation plug-in activates a downloading program, so that a downloading button is displayed on the display interface, and a user can select whether to download the generated picture file data or not based on the downloading button.
Optionally, referring to fig. 4, after the step of generating the graphics file data based on the binary data and activating the downloading program of the display interface of the graphics generation plug-in step S20, the method further includes:
and step C, sending the image file data to the display interface, and displaying the preview image file based on the display interface.
After the display interface of the image generation plug-in receives the synthesized image file data, the preview image file is displayed to the user on the display interface, that is, the downloaded image is displayed on the display interface, as shown in fig. 4, after the image file and the compressed file to be merged are dragged or loaded in the uploaded file bar, the image is generated on the display interface, and the user can click on the download key as required.
Optionally, after the step of generating the seed file data based on the binary data and activating the downloading program of the display interface in step C, the method further includes:
and D, sending the image file data to the display interface, and displaying a preset image file based on the display interface.
The method for displaying the step of how to extract the compressed files in the image type on the display interface is to avoid that the user does not know how to extract the compressed files in the image type and takes additional time to inquire relevant information.
Step S30, if the download requirement is received, converting the image type file data into an image type, and sending the image type file data to the browser.
If the image generation plug-in receives a downloading requirement issued by a user through the browser end, the generated image file data is converted into an image and is sent to the browser end, and the storage position of the image is popped up on the display interface of the browser end, so that the user can conveniently and quickly find the storage path of the image.
Optionally, if the download requirement is received in step S30, the step of converting the image file data into an image and sending the image to the browser for storage includes:
and step E, if the downloading requirement is not received, caching the image type file data into a local file of the browser end.
If the image generation plug-in does not receive the downloading requirement issued by the user, the generated image file data is cached in the local file of the browser end, so that the user can conveniently and directly extract the image file data, and repeated combination is avoided.
Optionally, if the downloading requirement is received in step S30, after the step of converting the image file data into an image and sending the image to the browser end, the method further includes:
and F, calling out and clearing binary data of the picture file and the compressed file cached to the browser end after detecting that the browser end finishes downloading and storing the picture type.
And calling out and clearing binary data of the picture file and the compressed file cached to the browser end after detecting that the browser end finishes downloading and storing the picture type.
After receiving a downloading requirement issued by a user, converting the image file data into image types and sending the image types to the browser end, the image type generation plug-in unit is used for eliminating the binary data of the image file and the compressed file which need to be cached to the browser end based on the js script, and the problem that the invalid binary data occupies the memory is avoided.
In the embodiment, the js script of the image generation language is written in the image generation plug-in, so that the image generation of the image file and the compressed file can be realized through an automatic command line under the condition of no network resource, the preview image file is displayed on the display interface of the image generation plug-in, the judgment of whether the image generation is successful or not by a user is facilitated, the generated image file data which is not downloaded by the user is cached in the local file of the browser end, the direct extraction of the image file data by the user is facilitated, the repeated combination of the same image is avoided, the image generation plug-in is mounted on the browser end, the space memory of a user terminal is saved, and the image generation is more convenient.
Further, referring to fig. 3, an embodiment of the present invention provides a method for generating a picture based on a picture generation plug-in, where the picture generation plug-in step S10 receives a picture file and a compressed file to be merged, and before the step of calling a js script for generating a picture format to convert the picture file and the compressed file into binary data, the method further includes:
step S11, receiving an installation request of a browser end;
step S12, checking whether the application program interface of the browser end is consistent with the application program interface of the image type merging plug-in based on the installation request;
in order to ensure the security of the browser, it is necessary to check whether the application program interface of the browser matches with the application program interface of the image generation plug-in, because the application program interface can provide the capability of accessing the operating system, and the target operating system can be accessed only when the application program interface is enabled.
Step S13, if the application program interface is consistent, sending data signature information to the browser end, and judging whether an operation instruction for continuing installation sent by the browser end is received;
when the application program interface of the browser end is detected to be consistent with the application program interface of the image generation plug-in, the image generation plug-in has no potential threat to the browser end, the image generation plug-in has legality and traceability, and random calling of harmful image generation plug-ins to the application program interface of the browser end is avoided.
And the received digital signature information is used for verifying the digital signature of the image generation plug-in unit by the browser, and after the verification is passed, the digital signature information is packaged and sent to the image generation plug-in unit for a user to check and judge whether to continue downloading the image generation plug-in unit.
Through the operation instruction of the user at the browser end, whether the user wants to continue the installation of the image generation plug-in can be judged, and the problem that the user feels that the plug-in has installation risk but can not stop downloading after checking the digital signature information is avoided.
Step S14, if receiving the operation instruction of continuing the installation sent by the browser end, finishing the installation of the browser end;
in step S15, if the operation command to continue the installation transmitted from the browser side is not received, the installation of the browser side is interrupted.
If the operation instruction of continuing installation sent by the browser end is not received, the user feels that the plug-in has installation risk after viewing the digital signature information, the downloading is stopped, and the plug-in data installed at the early stage is deleted, so that the risk information is prevented from being stored on the user terminal.
In the embodiment, whether the browser port is consistent with the application program interface of the image generation plug-in is judged, so that damage to the browser port caused by malicious connection of a harmful plug-in is avoided, the safety of the user terminal is improved, and the digital signature information is packaged and sent to the image generation plug-in, so that a user can see the verification of the digital signature information, and the user has a judgment basis for judging whether to continue to install the plug-in, and the judgment conforming to the safety of the user terminal is facilitated.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for generating a graphics seed based on a graphics seed generation plug-in, the method for generating the graphics seed based on the graphics seed generation plug-in comprising the steps of:
receiving a picture file and a compressed file to be combined based on a picture generation plug-in, and calling a js script for generating a picture format to convert the picture file and the compressed file into binary data;
generating image type file data based on the binary data, activating a downloading program of a display interface of the image type generation plug-in, and acquiring a downloading requirement of a browser side based on the downloading program;
and if the downloading requirement is received, converting the image type file data into image types and sending the image types to the browser end.
2. The method as claimed in claim 1, wherein the generating plug-in based on graph type receives the picture file and the compressed file to be combined, and before the step of generating the js script in the graph type format to convert the picture file and the compressed file into binary data is invoked, the method further comprises:
receiving an installation request of a browser end;
checking whether the application program interface of the browser end is consistent with the application program interface of the image merging plug-in or not based on the installation request;
if the application program interfaces are consistent, sending data signature information to the browser end, and judging whether an operation instruction for continuing installation sent by the browser end is received;
if receiving an operation instruction of continuing installation sent by the browser end, completing the installation of the browser end;
and if the operation instruction of continuing the installation sent by the browser end is not received, the installation of the browser end is interrupted.
3. The method for generating a picture based on a picture seed generation plug-in of claim 1, wherein after the step of calling a js script generating a picture format to convert the picture file and the compressed file into binary data, further comprising:
and after detecting the received binary data of the picture file and the compressed file, generating an empty zip compressed file character stream, and adding the binary data of the compressed file into the empty zip compressed file character stream to form a compressed file character stream.
4. The method for generating a pattern based on a pattern generation plug-in of claim 3, wherein the step of adding binary data of the compressed file to the empty zip compressed file character stream to form a compressed file character stream further comprises, after the step of:
and adding the compressed file character stream to the tail of the binary data of the picture file to complete the generation of the picture file and the picture type file data corresponding to the compressed file.
5. The method of claim 1, wherein the step of generating a pattern file data based on the binary data and activating a downloading program of a display interface of the pattern generation plug-in further comprises:
and sending the image file data to the display interface, and displaying a preset image file based on the display interface.
6. The method for generating image types based on the image type generation plug-in of claim 5, wherein after the step of sending the image type file data to the display interface and displaying the preset image type file based on the display interface, the method further comprises:
and displaying the animation of the step of extracting the compressed file in the image based on the display interface.
7. The method of claim 1, wherein if the download request is received, the step of converting the image file data into an image type and sending the image type to the browser end comprises:
and if the downloading requirement is not received, caching the image type file data into a local file of the browser end.
8. The method for generating image seeds based on image seed generation plug-in of claim 1, wherein after the step of converting the image seed file data into image seeds and sending the image seeds to the browser side if the download requirement is received, the method further comprises:
and calling out and clearing binary data of the picture file and the compressed file cached to the browser end after detecting that the browser end finishes downloading and storing the picture type.
9. An apparatus for generating a pattern based on a pattern generation plug-in, comprising a memory, a processor and a pattern based generation plug-in generation pattern processing program stored in the memory and executable on the processor, wherein the processor executes the pattern based generation plug-in generation pattern processing program to implement the steps of the method for generating a pattern based on a pattern generation plug-in according to any one of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon a graph species generation plug-in generating graph species program, which when executed by a processor, implements the steps of the graph species generation plug-in generating graph species method of any of claims 1-8.
CN202111237335.1A 2021-10-25 2021-10-25 Method and device for generating image based on image generation plug-in and readable storage medium Active CN113703877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111237335.1A CN113703877B (en) 2021-10-25 2021-10-25 Method and device for generating image based on image generation plug-in and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111237335.1A CN113703877B (en) 2021-10-25 2021-10-25 Method and device for generating image based on image generation plug-in and readable storage medium

Publications (2)

Publication Number Publication Date
CN113703877A true CN113703877A (en) 2021-11-26
CN113703877B CN113703877B (en) 2022-02-08

Family

ID=78646825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111237335.1A Active CN113703877B (en) 2021-10-25 2021-10-25 Method and device for generating image based on image generation plug-in and readable storage medium

Country Status (1)

Country Link
CN (1) CN113703877B (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
US20100199160A1 (en) * 2005-10-25 2010-08-05 Research In Motion Limited Image stitching for mobile electronic devices
CN103678535A (en) * 2013-12-02 2014-03-26 北京奇虎科技有限公司 Browser and downloading method thereof
US20140365861A1 (en) * 2011-04-25 2014-12-11 Google Inc. Prefetching binary data for use by a browser plugin
CN105677717A (en) * 2015-12-29 2016-06-15 努比亚技术有限公司 Display method and terminal
CN112084545A (en) * 2020-09-09 2020-12-15 云工工业科技(深圳)有限公司 Online preview method and system for three-dimensional drawing files with different formats
CN113254403A (en) * 2020-05-21 2021-08-13 永中软件股份有限公司 Method for previewing files in compressed package in browser

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100199160A1 (en) * 2005-10-25 2010-08-05 Research In Motion Limited Image stitching for mobile electronic devices
US20140365861A1 (en) * 2011-04-25 2014-12-11 Google Inc. Prefetching binary data for use by a browser plugin
CN103678535A (en) * 2013-12-02 2014-03-26 北京奇虎科技有限公司 Browser and downloading method thereof
CN105677717A (en) * 2015-12-29 2016-06-15 努比亚技术有限公司 Display method and terminal
CN113254403A (en) * 2020-05-21 2021-08-13 永中软件股份有限公司 Method for previewing files in compressed package in browser
CN112084545A (en) * 2020-09-09 2020-12-15 云工工业科技(深圳)有限公司 Online preview method and system for three-dimensional drawing files with different formats

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
努力会到一个境界: "怎么用QQ浏览器拼接图片", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/597A06436F1D72702B5243C9.HTML》 *
西西整理: "使用百度影音浏览器识别图种、制作图种", 《HTTPS://WWW.CR173.COM/HTML/21601_1.HTML》 *

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
CN113703877B (en) 2022-02-08

Similar Documents

Publication Publication Date Title
US20150012924A1 (en) Method and Device for Loading a Plug-In
US20150163232A1 (en) Method, device and system for detecting malware in a mobile terminal
CN106874037B (en) Application program installation method and device and mobile terminal
US9244702B1 (en) Installer-free applications using native code modules and persistent local storage
CN108111555B (en) Method and system for controlling installation package downloading process
JP2005525631A (en) System and method using multiple applications
CN105718313A (en) Application operation method and device
CN112256990B (en) Image processing method and device and computer readable storage medium
CN110865837B (en) Method and terminal for system upgrade
KR20180038482A (en) Smart card read / write method and device
CN106850563B (en) Method and device for accessing payment terminal
CN113703877B (en) Method and device for generating image based on image generation plug-in and readable storage medium
CN112162795A (en) Plug-in starting method and device, computer equipment and storage medium
US9571557B2 (en) Script caching method and information processing device utilizing the same
US10353700B1 (en) Code base sharing between standalone and web-based versions of an application via an emulated network communication channel
CN108345683A (en) Webpage display process, device, terminal and storage medium
CN109145598B (en) Virus detection method and device for script file, terminal and storage medium
CN114860295A (en) Resource file updating method, device, equipment and readable storage medium
KR101369254B1 (en) Apparatus and method for detecting malicious application
CN110489679B (en) Browser kernel processing method and device and storage medium
CN110795154A (en) Cross-platform device driving method, device, equipment and computer readable storage medium
CN113419785B (en) Method and terminal for solving cross-domain security problem when WebView loads local page
CN114942820A (en) Method and device for generating Sprite map, electronic equipment and readable storage medium
CN112948727B (en) WebView-based data injection method, device, equipment and storage medium
CN117290842A (en) Method and device for extracting static features of malicious document

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