Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for file compression

A technology of file compression and compression algorithm, which is applied in the field of data processing, can solve the problem of low file compression efficiency and achieve the effect of improving compression efficiency

Active Publication Date: 2019-04-12
TENCENT TECH SHANGHAI
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] A file compression method and device provided by the present invention can solve the problem of low file compression efficiency when manually compressing SWF

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for file compression
  • Method and device for file compression
  • Method and device for file compression

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0026] The embodiment of the present invention provides a method for file compression, such as figure 1 As shown, the method is applied to an electronic device, and the electronic device is used to run and maintain a SWF file, and the method includes:

[0027] Step 101. Extract image data from each tag of the SWF file.

[0028] A SWF file has multiple tags, and each tag can contain image data. Image data includes JPEG images and RGB bitmaps.

[0029] Step 102. C...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a file compression method and device and relates to the field of data processing. Through the file compression method and device, the problem of low file compression efficiency during artificial compression of SWF can be solved. The method comprises the following steps: extracting image data from various labels of an SWF file; respectively compressing each image data; storing the image data after compression into the various labels corresponding to the image data. The method disclosed by the invention is mainly applied to an optimization process of the SWF file.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a file compression method and device. Background technique [0002] SWF (Shock Wave Flash) is an animation file format that supports vector and dot matrix graphics. It is widely used in web design, animation production and other fields. SWF files are also commonly called Flash files. Because SWF files contain elements such as images, sounds, and scripts, their file sizes tend to be large. During the use, there are problems with the slow running speed of the SWF file, such as the slow loading of the page or the long time for decompressing the game installation package. [0003] In the prior art, when reducing the file size of the SWF, the following method is adopted: Flash developers manually replace the symbols and pictures in the SWF when creating the SWF, thereby reducing the file size of the SWF. For example: replace a bitmap in a SWF with a vector image. Since the storage sp...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H03M7/30
Inventor 王军黄飞跃吴永坚倪辉
Owner TENCENT TECH SHANGHAI