CN104462159A - Image conversion method and system based on document page content - Google Patents
Image conversion method and system based on document page content Download PDFInfo
- Publication number
- CN104462159A CN104462159A CN201310450959.0A CN201310450959A CN104462159A CN 104462159 A CN104462159 A CN 104462159A CN 201310450959 A CN201310450959 A CN 201310450959A CN 104462159 A CN104462159 A CN 104462159A
- Authority
- CN
- China
- Prior art keywords
- image
- color
- format
- area
- page
- 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
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 78
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000009466 transformation Effects 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 21
- 230000006835 compression Effects 0.000 abstract description 17
- 238000007906 compression Methods 0.000 abstract description 17
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 239000003086 colorant Substances 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000007639 printing Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
本发明的基于文档页面内容的图像转换方法及系统,对所述页面文档内容进行划分,得到颜色单一区域和颜色复杂区域;将颜色单一区域内的页面内容转换成适于压缩颜色单一的第一格式图像并存储;将颜色复杂区域内的页面内容转换成适于压缩颜色复杂的第二格式图像并存储;这样通过对文档页面内容从类型上进行划分,不同类型的页面内容转换成相应格式的图像,保证文档页面内容中的文字和图像信息的显示效果。
The image conversion method and system based on document page content of the present invention divides the content of the page document to obtain single-color areas and complex-color areas; Format image and store; convert the page content in the complex color area into a second format image suitable for compression and color complex; in this way, by dividing the document page content from the type, different types of page content are converted into the corresponding format Image, to ensure the display effect of the text and image information in the content of the document page.
Description
技术领域technical field
本发明涉及信息处理领域,具体是一种基于文档页面内容的图像转换方法及系统。The invention relates to the field of information processing, in particular to an image conversion method and system based on document page content.
背景技术Background technique
版式文档,是版面呈现效果固定的电子文档格式,比如PDF或者CAJ格式的文档,版式文档的呈现与设备无关,在各种设备上阅读、打印或印刷时,其版面的呈现结果都是一致的;因此能够很好地展示丰富的页面效果,但是阅读版式文档时需要有一些相应模块来对其进行解析、展示,即需要一个阅读器,大大限制了版式文档的使用。尤其是在网络阅读中,不能要求用户都安装阅读器或ActiveX插件,因此,只能将版式文档的内容直接转换为图像,以图像的方式进行统一展示。Layout document is an electronic document format with a fixed layout rendering effect, such as a document in PDF or CAJ format. The presentation of a layout document has nothing to do with the device. When reading, printing or printing on various devices, the layout results are consistent. ; Therefore, it can display rich page effects very well, but some corresponding modules are required to parse and display it when reading the layout document, that is, a reader is required, which greatly limits the use of the layout document. Especially in online reading, users cannot be required to install readers or ActiveX plug-ins. Therefore, the content of the layout document can only be directly converted into images for unified display in the form of images.
版式文档支持非常丰富的版面元素,包含大量图片和文字,从而导致用单一的图像格式不能对这些版面元素提供很好的展示效果。比如,使用JPG图像格式对版式文档进行转换时,由于JPG压缩方案不能很好地处理颜色较少的区域或处理纯色区域,会导致版式文档中的文字部分显示效果不佳;同样,使用PNG对版式文档进行转换时,一般会首先进行颜色取样,然后再进行无损压缩,在颜色取样的过程中,为减少数据量,会损失相当数量的颜色值,导致最终解压后的包含丰富颜色的图像显示失真。Layout documents support very rich layout elements, including a large number of pictures and texts, so a single image format cannot provide a good display effect for these layout elements. For example, when using the JPG image format to convert a layout document, because the JPG compression scheme cannot handle areas with few colors or deal with solid color areas well, the display effect of the text part in the layout document will be poor; similarly, using PNG for When a layout document is converted, color sampling is generally performed first, and then lossless compression is performed. In the process of color sampling, in order to reduce the amount of data, a considerable amount of color values will be lost, resulting in the final decompressed image containing rich colors. distortion.
发明内容Contents of the invention
为此,本发明所要解决的是现有将版式文档转换成单一的图像文件带来的显示效果失真的技术问题,提供一种基于文档页面内容的图像转换方法及系统。Therefore, what the present invention aims to solve is the existing technical problem of distorted display effect caused by converting a layout document into a single image file, and provides an image conversion method and system based on document page content.
为解决上述技术问题,本发明采用的技术方案如下:In order to solve the problems of the technologies described above, the technical scheme adopted in the present invention is as follows:
一种基于文档页面内容的图像转换方法,包括如下步骤:An image conversion method based on document page content, comprising the following steps:
区域划分:对所述页面文档内容进行划分,得到颜色单一区域和颜色复杂区域;Region division: Divide the content of the page document to obtain a single-color region and a complex-color region;
将颜色单一区域内的页面内容转换成适于压缩颜色单一内容的第一格式图像;converting the page content within the color-only region into a first format image suitable for compressing the color-only content;
将颜色复杂区域内的页面内容转换成适于压缩颜色复杂内容的第二格式图像。The page content in the color-complex region is converted into a second-format image suitable for compressing the color-complex content.
所述的一种基于文档页面内容的图像转换方法,所述区域划分步骤具体包括:In the described image conversion method based on document page content, the region division step specifically includes:
将页面元素为文字类型的区域划分为颜色单一区域;Divide the area where the page element is a text type into a single color area;
将页面元素为图像类型的区域划分为颜色复杂区域。Divide the area where the page elements are of image type into color complex areas.
所述的一种基于文档页面内容的图像转换方法,所述区域划分步骤具体包括:In the described image conversion method based on document page content, the region division step specifically includes:
将页面元素的颜色值少于或者等于256种的区域划分为颜色单一区域;Divide the area where the color value of the page element is less than or equal to 256 into a single color area;
将页面元素的颜色值多于256种的区域划分为颜色复杂区域。The area with more than 256 color values of page elements is divided into color complex area.
所述的一种基于文档页面内容的图像转换方法,所述页面元素所在的区域根据所述页面元素的位置、大小和缩放信息确定。In the above-mentioned image conversion method based on document page content, the area where the page element is located is determined according to the position, size and scaling information of the page element.
所述的一种基于文档页面内容的图像转换方法,所述第一格式图像为PNG图像。According to the image conversion method based on document page content, the image in the first format is a PNG image.
所述的一种基于文档页面内容的图像转换方法,所述第二格式图像为JPG图像。According to the image conversion method based on document page content, the image in the second format is a JPG image.
所述的一种基于文档页面内容的图像转换方法,所述存储按照以下步骤进行:In the described image conversion method based on document page content, the storage is performed according to the following steps:
将转换后的第一格式图像和第二格式图像的位置和大小用定长方式存储;storing the positions and sizes of the converted images in the first format and the images in the second format in a fixed-length manner;
将转换后的第一格式图像和第二格式图像的数据按照不定长方式存储;storing the data of the converted image in the first format and the image in the second format in an indefinite length manner;
在每个图像的开始存储的位置建立索引信息;Create index information at the beginning storage position of each image;
将同一文档页面对应的多个所述第一格式图像和所述第二格式图像存储在一个数据文件中。A plurality of images in the first format and images in the second format corresponding to the same document page are stored in a data file.
所述的一种基于文档页面内容的图像转换方法,还包括以下浏览器显示的步骤:The described image conversion method based on document page content also includes the following steps of browser display:
从所述数据文件中读取每一个所述第一格式图像和第二格式图像的位置;reading the location of each of the first format image and the second format image from the data file;
根据每一个所述第一格式图像和第二格式图像的位置构建动态网页信息;读取每一个所述第一格式图像和第二格式图像的数据显示在构建的所述动态网页的对应位置上。Construct dynamic web page information according to the position of each of the first format image and the second format image; read the data of each of the first format image and the second format image and display on the corresponding position of the constructed dynamic web page .
同时提供一种基于文档页面内容的图像转换系统,包括:At the same time, an image conversion system based on document page content is provided, including:
区域划分模块,对所述页面文档内容进行划分,得到颜色单一区域和颜色复杂区域;The area division module divides the content of the page document to obtain a single color area and a complex color area;
图像转换模块,将颜色单一区域内的页面内容转换成适于压缩颜色单一内容的第一格式图像并存储;将颜色复杂区域内的页面内容转换成适于压缩颜色复杂内容的第二格式图像并存储。The image conversion module converts the page content in a single color area into a first format image suitable for compressing single color content and stores it; converts the page content in a complex color area into a second format image suitable for compressing color complex content and storage.
所述的一种基于文档页面内容的图像转换系统,所述区域划分模块具体包括:In the described image conversion system based on document page content, the region division module specifically includes:
颜色单一区域划分子模块:用于将文字类型的所述页面元素所在的区域划分为颜色单一区域;Single-color area division submodule: used to divide the area where the text-type page elements are located into a single-color area;
颜色复杂区域划分子模块:用于将图像类型的所述页面元素所在的区域划分为颜色复杂区域。The color complex area division sub-module: used to divide the area where the page element of the image type is located into a color complex area.
所述的一种基于文档页面内容的图像转换系统,所述区域划分模块具体包括:In the described image conversion system based on document page content, the region division module specifically includes:
颜色单一区域获取子模块,用于将页面元素的颜色值少于或者等于256种的区域划分为颜色单一区域;A single-color area acquisition sub-module, used to divide areas with page element color values less than or equal to 256 into single-color areas;
颜色复杂区域获取子模块,用于将页面元素的颜色值多于256种的区域划分为颜色复杂区域。A submodule for acquiring complex color areas is used to divide areas with more than 256 color values of page elements into complex color areas.
所述的一种基于文档页面内容的图像转换系统,还包括根据所述页面元素的位置、大小和缩放信息确定所述页面元素所在的区域的子模块。The described image conversion system based on document page content further includes a submodule for determining the area where the page element is located according to the position, size and scaling information of the page element.
所述的一种基于文档页面内容的图像转换系统,所述图像转换模块中的所述第一格式图像为PNG图像。In the image conversion system based on document page content, the image in the first format in the image conversion module is a PNG image.
所述的一种基于文档页面内容的图像转换系统,所述图像转换模块中的所述第二格式图像为JPG图像。In the image conversion system based on document page content, the image in the second format in the image conversion module is a JPG image.
所述的一种基于文档页面内容的图像转换系统,所述图像转换模块具体包括存储子模块,所述存储子模块具体包括:In the image conversion system based on document page content, the image conversion module specifically includes a storage submodule, and the storage submodule specifically includes:
第一存储子模块,用于将转换后的第一格式图像和第二格式图像的位置和大小用定长方式存储;The first storage submodule is used to store the positions and sizes of the converted images in the first format and the images in the second format in a fixed-length manner;
第二存储子模块,用于将转换后的第一格式图像和第二格式图像的数据按照不定长方式存储;The second storage sub-module is used to store the data of the converted image in the first format and the image in the second format in a variable-length manner;
索引模块,用于在每个图像的开始存储的位置建立索引信息;An index module, configured to establish index information at the beginning storage position of each image;
第三存储子模块,用于将将同一文档页面对应的多个所述第一格式图像和所述第二格式图像存储在一个数据文件中。The third storage sub-module is configured to store multiple images in the first format and images in the second format corresponding to the same document page in a data file.
所述的一种基于文档页面内容的图像转换系统,还包括浏览器显示模块,所述浏览器显示模块具体包括:The described image conversion system based on document page content also includes a browser display module, and the browser display module specifically includes:
位置读取子模块,用于从所述数据文件中读取每一个所述第一格式图像和第二格式图像的位置;A position reading submodule, configured to read the position of each of the first format image and the second format image from the data file;
动态网页构建子模块,用于根据每一个所述第一格式图像和第二格式图像的位置构建动态网页信息;A dynamic webpage construction submodule, configured to construct dynamic webpage information according to the positions of each of the images in the first format and the image in the second format;
显示子模块,用于读取每一个所述第一格式图像和第二格式图像的数据并显示在构建的所述动态网页的对应位置上。The display sub-module is used to read the data of each image in the first format and the image in the second format and display it on the corresponding position of the constructed dynamic web page.
本发明的上述技术方案相比现有技术具有以下优点:The above technical solution of the present invention has the following advantages compared with the prior art:
(1)本发明的基于文档页面内容的图像转换方法及系统,对所述页面文档内容进行划分,得到颜色单一区域和颜色复杂区域,将颜色单一区域内的页面内容转换成适于压缩颜色单一内容的第一格式图像并存储;将颜色复杂区域内的页面内容转换成适于压缩颜色复杂内容的第二格式图像并存储;这样通过对文档页面内容从颜色是否复杂进行划分,不同的页面内容转换成相应格式的图像,保证文档页面内容中的文字和图像信息的显示效果。(1) The image conversion method and system based on document page content of the present invention divides the content of the page document to obtain a single-color area and a complex-color area, and converts the page content in the single-color area into a single-color area suitable for compression The first format image of the content is stored; the page content in the complex color area is converted into a second format image suitable for compressing the complex color content; in this way, by dividing the content of the document page from whether the color is complex, different page content Convert images into corresponding formats to ensure the display effect of text and image information in document page content.
(2)本发明的基于文档页面内容的图像转换方法及系统中,根据所述文档页面的元数据信息进行区域划分,具体是根据类型是文字还是图像进行区域划分,能更进一步简化区域划分的步骤,减少区域划分的工作量,方便实施。(2) In the image conversion method and system based on document page content of the present invention, the region division is performed according to the metadata information of the document page, specifically, the region division is performed according to whether the type is text or image, which can further simplify the region division Steps to reduce the workload of area division and facilitate implementation.
(3)本发明的基于文档页面内容的图像转换方法及系统中,所述第一格式图像为PNG图像,这样能保证文字的显示效果,同时,能够达到较大的压缩率,减少图像数据的存储空间和在网络上的传输时间;兼顾到了显示效果、数据文件的大小以及转换的性能。(3) In the image conversion method and system based on document page content of the present invention, the image in the first format is a PNG image, which can ensure the display effect of the text, and at the same time, can achieve a relatively large compression rate and reduce image data. Storage space and transmission time on the network; taking into account the display effect, the size of the data file and the performance of the conversion.
(3)本发明的基于文档页面内容的图像转换方法及系统中,所述第二格式图像为JPG图像,一方面,选用JPG格式能保证图像的显示效果,同时,能够达到较大的压缩率,大大减少图像数据的存储空间和在网络上的传输时间;兼顾到了显示效果、数据文件的大小以及转换的性能。(3) In the image conversion method and system based on document page content of the present invention, the image in the second format is a JPG image. On the one hand, choosing the JPG format can ensure the display effect of the image, and at the same time, can achieve a relatively large compression rate , greatly reducing the storage space of image data and transmission time on the network; taking into account the display effect, the size of data files and the performance of conversion.
(4)本发明的基于文档页面内容的图像转换方法及系统中,将转换后的第一格式图像和第二格式图像的位置和大小用定长方式存储;将转换后的第一格式图像和第二格式图像的数据按照不定长方式存储;在每个图像的开始存储的位置建立索引信息;将同一文档页面对应的多个所述第一格式图像和所述第二格式图像存储在一个数据文件中。考虑不同信息的特殊性,针对确定的规则信息选用定长方式存储,针对变量信息采用不定长方式存储,方便实用;而且,通过索引信息的建立,提供高效的图数据读取方式;通过将不同的图像存储在一个数据文件中,便于缓存,也避免一个图像存储成一个文件产生的大量零散小文件,影响后续文件读取的性能,以及可能造成文件的丢失。(4) In the image conversion method and system based on document page content of the present invention, the positions and sizes of the converted first-format images and second-format images are stored in a fixed-length manner; the converted first-format images and The data of the image in the second format is stored in an indefinite length manner; index information is established at the beginning storage position of each image; multiple images in the first format and images in the second format corresponding to the same document page are stored in one data in the file. Considering the particularity of different information, the fixed-length method is used to store the determined rule information, and the variable-length method is used to store the variable information, which is convenient and practical; moreover, through the establishment of index information, it provides an efficient way to read graph data; The image is stored in a data file, which is convenient for caching, and also avoids a large number of scattered small files generated by storing an image as a file, which affects the performance of subsequent file reading and may cause file loss.
(5)本发明的基于文档页面内容的图像转换方法及系统中,根据每一个所述第一格式图像和第二格式图像的位置构建动态网页信息;读取每一个所述第一格式图像和第二格式图像的数据显示在构建的所述动态网页的对应位置上。(5) In the document page content-based image conversion method and system of the present invention, dynamic web page information is constructed according to the position of each of the first-format images and second-format images; each of the first-format images and the second-format images are read The data of the image in the second format is displayed on the corresponding position of the constructed dynamic web page.
附图说明Description of drawings
为了使本发明的内容更容易被清楚的理解,下面根据本发明的具体实施例并结合附图,对本发明作进一步详细的说明,其中In order to make the content of the present invention more easily understood, the present invention will be described in further detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein
图1为本发明一个实施例的一种基于文档页面内容的图像转换方法的方法流程图;Fig. 1 is a method flowchart of an image conversion method based on document page content according to an embodiment of the present invention;
图2为本发明另一个实施例的一种基于文档页面内容的图像转换方法的方法流程图;Fig. 2 is a method flowchart of an image conversion method based on document page content according to another embodiment of the present invention;
图3为本发明一个版式文档的页面示意图;Fig. 3 is a schematic diagram of a page of a layout document of the present invention;
图4为图3使用本发明一个实施例的基于文档页面内容的图像转换方法转换后的区域示意图;FIG. 4 is a schematic diagram of the area converted by using the image conversion method based on document page content in FIG. 3 according to an embodiment of the present invention;
图5为本发明一个实施例的一种基于文档页面内容的图像转换系统的结构框图;FIG. 5 is a structural block diagram of an image conversion system based on document page content according to an embodiment of the present invention;
图6为本发明另一个实施例的一种基于文档页面内容的图像转换系统的结构框图。FIG. 6 is a structural block diagram of an image conversion system based on document page content according to another embodiment of the present invention.
具体实施方式Detailed ways
实施例1Example 1
参见图1所示,为本发明一个实施例的一种基于文档页面内容的图像转换方法,包括如下步骤:Referring to Fig. 1, it is a kind of image conversion method based on document page content of an embodiment of the present invention, comprises the following steps:
区域划分:对页面文档内容进行划分,得到颜色单一区域和颜色复杂区域。Region division: Divide the content of the page document to obtain single-color regions and complex-color regions.
将颜色单一区域内的页面内容转换成适于压缩颜色单一内容的第一格式图像并存储。将颜色复杂区域内的页面内容转换成适于压缩颜色复杂内容的第二格式图像并存储。The page content in the single-color area is converted into a first-format image suitable for compressing the single-color content and stored. The page content in the complex color area is converted into a second format image suitable for compressing the complex color content and stored.
本发明中,适于压缩指适于压缩显示,解压缩后内容的显示基本不失真。In the present invention, being suitable for compression refers to being suitable for compressed display, and the display of decompressed content is basically undistorted.
本实施例的基于文档页面内容的图像转换方法,对页面文档内容进行划分,得到颜色单一区域和颜色复杂区域,将颜色单一区域内的页面内容转换成适于压缩颜色单一内容的第一格式图像并存储;将颜色复杂区域内的页面内容转换成适于压缩颜色复杂内容的第二格式图像并存储;这样通过对文档页面内容从颜色是否复杂进行划分,不同的页面内容转换成相应格式的图像,保证文档页面内容中的文字和图像信息的显示效果。The image conversion method based on the content of the document page in this embodiment divides the content of the page document to obtain a single-color area and a complex-color area, and converts the page content in the single-color area into a first-format image suitable for compressing single-color content And store; convert the page content in the color complex area into a second format image suitable for compressing color complex content and store it; in this way, by dividing the content of the document page from whether the color is complex, different page content is converted into an image of the corresponding format , to ensure the display effect of the text and image information in the content of the document page.
实施例2Example 2
参见图2所示,作为本发明其他实施例的一种基于文档页面内容的图像转换方法,在实施例1的基础上,区域划分步骤具体包括:Referring to Figure 2, as an image conversion method based on document page content in other embodiments of the present invention, on the basis of Embodiment 1, the region division step specifically includes:
获取文档页面的元数据信息;其中,元数据信息包括页面元素的类型、位置、大小和缩放信息,页面元素的类型包括文字(其中表格中的文字也归为文字类型)和图像。本实施例中,文档为版式文档,当然,其他格式的文档只要包括必要的元数据信息,也可使用本发明的图像转换方法进行处理,同样能实现本发明的目的。Obtain the metadata information of the document page; the metadata information includes the type, position, size and zoom information of the page element, and the type of the page element includes text (the text in the table is also classified as text type) and image. In this embodiment, the document is a format document. Of course, documents in other formats can also be processed by the image conversion method of the present invention as long as they include necessary metadata information, and the purpose of the present invention can also be achieved.
根据元数据信息提取文档页面的页面元素的类型。The type of the page element of the document page is extracted according to the metadata information.
根据页面元素的位置、大小和缩放信息确定每个页面元素的区域,即页面元素所在的区域。The area of each page element is determined according to the position, size, and scaling information of the page element, that is, the area where the page element is located.
将页面元素为文字类型的区域划分为颜色单一区域;将页面元素为图像类型的区域划分为颜色复杂区域。Divide the area where the page element is text type into a single color area; divide the area where the page element is an image type into a color complex area.
本实施例中,根据文档页面的元数据信息进行区域划分,具体是根据类型是文字还是图像进行区域划分,能更进一步简化区域划分的步骤,减少区域划分的工作量,方便实施。In this embodiment, the region division is performed according to the metadata information of the document page, specifically according to whether the type is text or image, which can further simplify the region division steps, reduce the workload of the region division, and facilitate implementation.
实施例3Example 3
作为本发明其他实施例的一种基于文档页面内容的图像转换方法,在实施例1的基础上,区域划分步骤具体包括:As an image conversion method based on document page content in other embodiments of the present invention, on the basis of Embodiment 1, the region division step specifically includes:
获取文档页面的元数据信息;其中,元数据信息包括页面元素的颜色值、位置、大小和缩放信息。Obtain the metadata information of the document page; wherein, the metadata information includes the color value, position, size and scaling information of the page elements.
根据页面元素的位置、大小和缩放信息确定每个页面元素的区域,即确定每个页面元素的区域。The area of each page element is determined according to the position, size and scaling information of the page element, that is, the area of each page element is determined.
将页面元素的颜色值少于或者等于256种的区域划分为为颜色单一区域;将页面元素的颜色值多于256种的区域划分为颜色复杂区域。The area where the color value of the page element is less than or equal to 256 is divided into a single color area; the area where the color value of the page element is more than 256 is divided into a complex color area.
优选地,可以将多个直接相邻的颜色单一或者复杂的区域合并生成一个大的颜色单一或者复杂的区域,这样可以减少压缩操作的次数,提高整个文档页面的转换效率。Preferably, multiple directly adjacent single-color or complex-color regions can be combined to generate a large single-color or complex-color region, which can reduce the number of compression operations and improve the conversion efficiency of the entire document page.
本实施例中区域划分通过统计区域内的页面元素的颜色值获取,如果区域内的内容的颜色值不超过256种,则判定该页面元素所在区域为颜色单一区域;反之,如果区域内的内容的颜色值超过256种,则判定为颜色复杂区域。通过统计预定范围内的内容的颜色值的方法进行区域划分统计颜色值的工作量较大,操作起来相对繁琐,但是更准确,通用性更强。In this embodiment, the area division is obtained by counting the color values of the page elements in the area. If the color values of the content in the area do not exceed 256, it is determined that the area where the page element is located is a single-color area; otherwise, if the content in the area If the color value exceeds 256, it is judged as a complex color area. The method of counting the color values of the content within the predetermined range to perform regional division and count the color values requires a large amount of work and is relatively cumbersome to operate, but it is more accurate and more versatile.
实施例4Example 4
作为本发明其他实施例的一种基于文档页面内容的图像转换方法,在上述任一实施例的基础上,第一格式图像为PNG图像,其中PNG的全称为Portable Network Graphic Format,意思为可移植网络图形格式。优选地,第一格式图像为8Bit PNG图像,这样,用8Bit对取样后的颜色值进行存储,最多存储256中颜色,能达到更大的压缩率,减少数据量。作为本发明其他实施例的第一格式图像也可为Gif格式或者Tiff格式的图像,同样能实现本发明保证文字清晰显示的模块,而且还具有一定的压缩率优势。As an image conversion method based on document page content in other embodiments of the present invention, on the basis of any of the above embodiments, the first format image is a PNG image, where the full name of PNG is Portable Network Graphic Format, which means portable Web graphics format. Preferably, the first format image is an 8Bit PNG image. In this way, 8Bit is used to store the sampled color value, and store up to 256 colors, which can achieve a greater compression rate and reduce the amount of data. The image in the first format as another embodiment of the present invention can also be an image in Gif format or Tiff format, which can also implement the module of the present invention to ensure clear display of text, and also has a certain compression rate advantage.
第一格式图像为PNG图像,这样能保证文字的显示效果,同时,能够达到较大的压缩率,减少图像数据的存储空间和在网络上的传输时间;兼顾到了显示效果、数据文件的大小以及转换的性能。The first format image is a PNG image, which can ensure the display effect of the text, and at the same time, can achieve a large compression rate, reduce the storage space of the image data and the transmission time on the network; taking into account the display effect, the size of the data file and Conversion performance.
实施例5Example 5
作为本发明其他的一种基于文档页面内容的图像转换方法,在上述任意一个实施例的基础上,第二格式图像为JPG图像。JPG全名是JPEG,全称为Joint Photographic Experts GROUP,是由国际标准组织(ISO:International Standardization Organization)和国际电话电报咨询委员会(CCITT:Consultation Commitee of the International Telephoneand Telegraph)为静态图像所建立的第一个国际数字图像压缩标准,也是至今一直在使用的、应用最广的图像压缩标准。JPEG格式可在10:1到20:1的比率下轻松地压缩文件,而图片质量不会下降。JPEG压缩可以很好地处理写实摄影作品。As another image conversion method based on document page content of the present invention, on the basis of any one of the above embodiments, the second format image is a JPG image. The full name of JPG is JPEG, and its full name is Joint Photographic Experts GROUP. It is an international digital image compression standard, and it is also the most widely used image compression standard that has been in use so far. The JPEG format easily compresses files at a ratio of 10:1 to 20:1 without loss of picture quality. JPEG compression works well for photorealistic photography.
第二格式图像为JPG图像,一方面,选用JPG格式能保证图像的显示效果,同时,能够达到较大的压缩率,大大减少图像数据的存储空间和在网络上的传输时间;兼顾到了显示效果、数据文件的大小以及转换的性能。The second format image is a JPG image. On the one hand, choosing the JPG format can ensure the display effect of the image. At the same time, it can achieve a large compression rate, greatly reducing the storage space of image data and the transmission time on the network; taking into account the display effect , the size of the data file, and the performance of the conversion.
实施例6Example 6
作为本发明其他实施例的一种基于文档页面内容的图像转换方法,在上述任一实施例的基础上,存储按照以下步骤进行:As an image conversion method based on document page content in other embodiments of the present invention, on the basis of any of the above embodiments, the storage is performed according to the following steps:
将转换后的第一格式图像和第二格式图像的位置和大小用定长方式存储;storing the positions and sizes of the converted images in the first format and the images in the second format in a fixed-length manner;
将转换后的第一格式图像和第二格式图像的数据按照不定长方式存储;storing the data of the converted image in the first format and the image in the second format in an indefinite length manner;
在每个图像的开始存储的位置建立索引信息;Create index information at the beginning storage position of each image;
将同一文档页面对应的多个第一格式图像和第二格式图像存储在一个数据文件中。Multiple images in the first format and images in the second format corresponding to the same document page are stored in a data file.
将转换后的第一格式图像和第二格式图像的位置和大小用定长方式存储;将转换后的第一格式图像和第二格式图像的数据按照不定长方式存储;在每个图像的开始存储的位置建立索引信息;将同一文档页面对应的多个第一格式图像和第二格式图像存储在一个数据文件中。考虑不同信息的特殊性,针对确定的规则信息选用定长方式存储,针对变量信息采用不定长方式存储,方便实用;而且,通过索引信息的建立,提供高效的图数据读取方式;通过将不同的图像存储在一个数据文件中,便于缓存,也避免一个图像存储成一个文件产生的大量零散小文件影响后续文件读取的性能,以及可能造成文件的丢失。Store the position and size of the converted image in the first format and the image in the second format in a fixed-length manner; store the data of the converted image in the first format and the image in the second format in a variable-length manner; at the beginning of each image Index information is established at the stored location; multiple images in the first format and images in the second format corresponding to the same document page are stored in a data file. Considering the particularity of different information, the fixed-length method is used to store the determined rule information, and the variable-length method is used to store the variable information, which is convenient and practical; moreover, through the establishment of index information, it provides an efficient way to read graph data; The image is stored in a data file, which is convenient for caching, and also avoids a large number of scattered small files generated by storing an image as a file, affecting the performance of subsequent file reading, and may cause file loss.
实施例7Example 7
作为本发明其他实施例的一种基于文档页面内容的图像转换方法,在上述实施例6的基础上,还包括以下浏览器显示的步骤:As an image conversion method based on document page content in other embodiments of the present invention, on the basis of the above-mentioned embodiment 6, it also includes the following steps of browser display:
从数据文件中读取每一个第一格式图像和第二格式图像的位置;reading the position of each first format image and second format image from the data file;
根据每一个第一格式图像和第二格式图像的位置构建动态网页信息;读取每一个第一格式图像和第二格式图像的数据显示在构建的动态网页的对应位置上。The dynamic webpage information is constructed according to the position of each image in the first format and the image in the second format; the data read from each image in the first format and the image in the second format is displayed on the corresponding position of the constructed dynamic webpage.
根据每一个第一格式图像和第二格式图像的位置构建动态网页信息;读取每一个第一格式图像和第二格式图像的数据显示在构建的动态网页的对应位置上。The dynamic webpage information is constructed according to the position of each image in the first format and the image in the second format; the data read from each image in the first format and the image in the second format is displayed on the corresponding position of the constructed dynamic webpage.
实施例8Example 8
参见图5所示,为本发明一个实施例的一种基于文档页面内容的图像转换系统,包括:Referring to Fig. 5, it is an image conversion system based on document page content according to an embodiment of the present invention, including:
区域划分模块,对页面文档内容进行划分,得到颜色单一区域和颜色复杂区域;The area division module divides the content of the page document to obtain a single color area and a complex color area;
图像转换模块,将颜色单一区域内的页面内容转换成适于压缩颜色单一内容的第一格式图像并存储;将颜色复杂区域内的页面内容转换成适于压缩颜色复杂内容的第二格式图像并存储。The image conversion module converts the page content in a single color area into a first format image suitable for compressing single color content and stores it; converts the page content in a complex color area into a second format image suitable for compressing color complex content and storage.
本实施例的基于文档页面内容的图像转换系统,对页面文档内容进行划分,得到颜色单一区域和颜色复杂区域,将颜色单一区域内的页面内容转换成适于压缩颜色单一内容的第一格式图像并存储;将颜色复杂区域内的页面内容转换成适于压缩颜色复杂内容的第二格式图像并存储;这样通过对文档页面内容从颜色是否复杂进行划分,不同的页面内容转换成相应格式的图像,保证文档页面内容中的文字和图像信息的显示效果。The image conversion system based on the content of the document page in this embodiment divides the content of the page document to obtain a single-color area and a complex-color area, and converts the page content in the single-color area into a first-format image suitable for compressing single-color content And store; convert the page content in the color complex area into a second format image suitable for compressing color complex content and store it; in this way, by dividing the content of the document page from whether the color is complex, different page content is converted into an image of the corresponding format , to ensure the display effect of the text and image information in the content of the document page.
实施例9Example 9
参见图6所示,为本发明一个实施例的一种基于文档页面内容的图像转换系统,在实施例8的基础上,区域划分模块具体包括:Referring to Figure 6, it is an image conversion system based on document page content according to an embodiment of the present invention. On the basis of Embodiment 8, the area division module specifically includes:
元数据信息获取子模块,用于获取文档页面的元数据信息;其中,元数据信息包括页面元素的类型、位置、大小和缩放信息,页面元素的类型包括文字和图像。The metadata information obtaining sub-module is used to obtain the metadata information of the document page; wherein, the metadata information includes the type, position, size and zoom information of the page element, and the type of the page element includes text and image.
区域确定子模块,用于根据页面元素的位置、大小和缩放信息确定每个页面元素的区域。The area determining submodule is used to determine the area of each page element according to the position, size and scaling information of the page element.
区域划分子模块,用于根据区域将文档页面包括的不同类型的页面元素划分为多个区域;区域划分子模块具体包括:颜色单一区域划分子模块和颜色复杂区域划分子模块:其中,颜色单一区域划分子模块:用于将页面元素为文字类型的区域划分为颜色单一区域;颜色复杂区域划分子模块,用于将页面元素为图像类型的区域划分为颜色复杂区域。The area division sub-module is used to divide different types of page elements included in the document page into multiple areas according to the area; the area division sub-module specifically includes: a color single area division sub-module and a color complex area division sub-module: wherein, the color is single Area division sub-module: used to divide the area where the page element is text type into a single color area; the color complex area division sub-module is used to divide the area where the page element is image type into color complex area.
本实施例中,根据文档页面的元数据信息进行区域划分,具体是根据类型是文字还是图像进行区域划分,能更进一步简化区域划分的步骤,减少区域划分的工作量,方便实施。In this embodiment, the region is divided according to the metadata information of the document page, specifically according to whether the type is text or image, which can further simplify the steps of region division, reduce the workload of region division, and facilitate implementation.
实施例10Example 10
作为本发明一个实施例的一种基于文档页面内容的图像转换系统,在实施例8的基础上,区域划分模块具体包括:As an image conversion system based on document page content in an embodiment of the present invention, on the basis of Embodiment 8, the area division module specifically includes:
元数据信息获得子模块,用于获取文档页面的元数据信息;其中,元数据信息包括页面元素的颜色值、位置、大小和缩放信息;The metadata information obtaining sub-module is used to obtain the metadata information of the document page; wherein, the metadata information includes the color value, position, size and scaling information of the page elements;
区域界定子模块,用于根据页面元素的位置、大小和缩放信息确定每个页面元素的区域;The area defining submodule is used to determine the area of each page element according to the position, size and scaling information of the page element;
区域获取子模块,具体包括颜色单一区域获取子模块和颜色复杂区域获取子模块,其中,颜色单一区域获取子模块,用于将页面元素的颜色值少于或者等于256种的区域划分为颜色单一区域;颜色复杂区域获取子模块,用于将页面元素的颜色值多于256种的区域划分为颜色复杂区域。The area acquisition submodule specifically includes the single color area acquisition submodule and the color complex area acquisition submodule, wherein the single color area acquisition submodule is used to divide the area where the color value of the page element is less than or equal to 256 kinds into a single color area Region; a submodule for acquiring complex color regions, used to divide regions with more than 256 color values of page elements into complex color regions.
本实施例中区域划分通过统计区域内的页面元素的颜色值获取,如果区域内的内容的颜色值不超过256种,则判定页面元素所在的区域为颜色单一区域;反之,如果区域内的内容的颜色值超过256种,则判定为颜色复杂区域。通过统计预定范围内的内容的颜色值的方法进行区域划分统计颜色值的工作量较大,操作起来相对繁琐,但是更准确,通用性更强。In this embodiment, the area division is obtained by counting the color values of the page elements in the area. If the color values of the content in the area do not exceed 256, it is determined that the area where the page element is located is a single-color area; otherwise, if the content in the area If the color value exceeds 256, it is judged as a complex color area. The method of counting the color values of the content within the predetermined range to perform regional division and count the color values requires a large amount of work and is relatively cumbersome to operate, but it is more accurate and more versatile.
实施例11Example 11
作为本发明其他实施例的一种基于文档页面内容的图像转换系统,在上述任一实施例的基础上,图像转换模块中的第一格式图像为PNG图像。As an image conversion system based on document page content in other embodiments of the present invention, on the basis of any of the above embodiments, the image in the first format in the image conversion module is a PNG image.
第一格式图像为PNG图像,这样能保证文字的显示效果,同时,能够达到较大的压缩率,减少图像数据的存储空间和在网络上的传输时间;兼顾到了显示效果、数据文件的大小以及转换的性能。The first format image is a PNG image, which can ensure the display effect of the text, and at the same time, can achieve a large compression rate, reduce the storage space of the image data and the transmission time on the network; taking into account the display effect, the size of the data file and Conversion performance.
实施例12Example 12
作为本发明其他实施例的一种基于文档页面内容的图像转换系统,在上述任意一个实施例的一种基于文档页面内容的图像转换系统的基础上,图像转换模块中的第二格式图像为JPG图像。As an image conversion system based on document page content in other embodiments of the present invention, on the basis of an image conversion system based on document page content in any of the above embodiments, the second format image in the image conversion module is JPG image.
第二格式图像为JPG图像,一方面,选用JPG格式能保证图像的显示效果,同时,能够达到较大的压缩率,大大减少图像数据的存储空间和在网络上的传输时间;兼顾到了显示效果、数据文件的大小以及转换的性能。The second format image is a JPG image. On the one hand, choosing the JPG format can ensure the display effect of the image. At the same time, it can achieve a large compression rate, greatly reducing the storage space of image data and the transmission time on the network; taking into account the display effect , the size of the data file, and the performance of the conversion.
实施例13Example 13
作为本发明其他实施例的一种基于文档页面内容的图像转换系统,在上述任意一个实施例的一种基于文档页面内容的图像转换系统的基础上,图像转换模块具体包括存储子模块,存储子模块具体包括:As an image conversion system based on document page content in other embodiments of the present invention, on the basis of an image conversion system based on document page content in any of the above embodiments, the image conversion module specifically includes a storage sub-module, and the storage sub-module Modules specifically include:
第一存储子模块,用于将转换后的第一格式图像和第二格式图像的位置和大小用定长方式存储。The first storage sub-module is used to store the positions and sizes of the converted images in the first format and the images in the second format in a fixed-length manner.
第二存储子模块,用于将转换后的第一格式图像和第二格式图像的数据按照不定长方式存储。The second storage sub-module is used to store the converted data of the image in the first format and the image in the second format in a variable-length manner.
索引模块,用于在每个图像的开始存储的位置建立索引信息。The index module is used to establish index information at the beginning storage position of each image.
第三存储子模块,用于将将同一文档页面对应的多个第一格式图像和第二格式图像存储在一个数据文件中。The third storage sub-module is used for storing multiple images in the first format and images in the second format corresponding to the same document page in a data file.
本实施例中,将转换后的第一格式图像和第二格式图像的位置和大小用定长方式存储;将转换后的第一格式图像和第二格式图像的数据按照不定长方式存储;在每个图像的开始存储的位置建立索引信息;将同一文档页面对应的多个第一格式图像和第二格式图像存储在一个数据文件中。考虑不同信息的特殊性,针对确定的规则信息选用定长方式存储,针对变量信息采用不定长方式存储,方便实用;而且,通过索引信息的建立,提供高效的图数据读取方式;通过将不同的图像存储在一个数据文件中,便于缓存,也避免一个图像存储成一个文件产生的大量零散小文件影响后续文件读取的性能,以及可能造成文件的丢失。In this embodiment, the positions and sizes of the converted images in the first format and the images in the second format are stored in a fixed-length manner; the data of the converted images in the first format and the images in the second format are stored in a variable-length manner; Index information is established at the starting storage position of each image; multiple images in the first format and images in the second format corresponding to the same document page are stored in a data file. Considering the particularity of different information, the fixed-length method is used to store the determined rule information, and the variable-length method is used to store the variable information, which is convenient and practical; moreover, through the establishment of index information, it provides an efficient way to read graph data; The image is stored in a data file, which is convenient for caching, and also avoids a large number of scattered small files generated by storing an image as a file, affecting the performance of subsequent file reading, and may cause file loss.
实施例14Example 14
作为本发明其他实施例的一种基于文档页面内容的图像转换系统,在上述实施例13的基础上,还包括浏览器显示子模块,浏览器显示子模块具体包括:As an image conversion system based on document page content in other embodiments of the present invention, on the basis of the above-mentioned embodiment 13, it also includes a browser display submodule, and the browser display submodule specifically includes:
位置读取子模块,用于从数据文件中读取每一个第一格式图像和第二格式图像的位置;The position reading submodule is used to read the position of each image in the first format and the image in the second format from the data file;
动态网页构建子模块,用于根据每一个第一格式图像和第二格式图像的位置构建动态网页信息;A dynamic webpage construction sub-module, configured to construct dynamic webpage information according to the positions of each image in the first format and the image in the second format;
显示子模块,用于读取每一个第一格式图像和第二格式图像的数据并显示在构建的动态网页的对应位置上。The display sub-module is used for reading the data of each image in the first format and the image in the second format and displaying it on the corresponding position of the constructed dynamic web page.
下面结合图3和图4所示的版式页面示例,对本发明的基于文档页面内容的图像转换方法和系统进行具体说明:The image conversion method and system based on document page content of the present invention will be specifically described below in conjunction with the layout page examples shown in FIGS. 3 and 4 :
以图3中所示的文档页面为例,该页面根据元数据的不同被划分为四个部分:文字部分1、图像部分2、文字部分3和文字部分4,每部分被最终转换成一张图像,其中图像部分2被转换成适于颜色单一的的PNG图像,其他三部分被转换成适于压缩颜色复杂的JPG图像,各张图像的详细信息如下表所示:Taking the document page shown in Figure 3 as an example, the page is divided into four parts according to different metadata: text part 1, image part 2, text part 3 and text part 4, and each part is finally converted into an image , in which the image part 2 is converted into a PNG image suitable for single color, and the other three parts are converted into JPG images suitable for compressing complex colors. The detailed information of each image is shown in the following table:
将上表里拆分得到的四部分的数据保存成一个如下表所示的大文件Save the four parts of the data split in the above table into a large file as shown in the table below
读取时,根据图像数据数量,能够读取到所有图像的元信息,具体是根据数据指针,能够得到各部分图像的数据的长度和开始位置,进而读取图像数据。When reading, according to the amount of image data, the meta information of all images can be read. Specifically, according to the data pointer, the length and start position of the data of each part of the image can be obtained, and then the image data can be read.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and combinations of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart flow or flows and/or block diagram block or blocks.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310450959.0A CN104462159A (en) | 2013-09-25 | 2013-09-25 | Image conversion method and system based on document page content |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310450959.0A CN104462159A (en) | 2013-09-25 | 2013-09-25 | Image conversion method and system based on document page content |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104462159A true CN104462159A (en) | 2015-03-25 |
Family
ID=52908211
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310450959.0A Pending CN104462159A (en) | 2013-09-25 | 2013-09-25 | Image conversion method and system based on document page content |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104462159A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106327453A (en) * | 2015-06-30 | 2017-01-11 | 北京金山安全软件有限公司 | Method for splicing picture resources and picture resource splicing device |
CN107544985A (en) * | 2016-06-23 | 2018-01-05 | 珠海金山办公软件有限公司 | A kind of presentation file special-effect matching process and device |
CN112130782A (en) * | 2020-09-22 | 2020-12-25 | 上海汉图科技有限公司 | A printing method, device and printing client |
CN114443872A (en) * | 2021-12-22 | 2022-05-06 | 天翼云科技有限公司 | Image storage method, image display method and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5416603A (en) * | 1991-04-30 | 1995-05-16 | Ricoh Company, Ltd. | Image segmentation using discrete cosine transfer data, and image data transmission apparatus and method using this image segmentation |
JP2002312719A (en) * | 2001-04-11 | 2002-10-25 | Nec Corp | Character segmentation device, character segmentation method and program for character segmentation |
CN1649384A (en) * | 2004-01-19 | 2005-08-03 | 株式会社理光 | Image processing apparatus, image processing program and storage medium |
CN103136171A (en) * | 2011-12-02 | 2013-06-05 | 明博教育科技有限公司 | E-book making method based on shock wave flash (SWF) |
-
2013
- 2013-09-25 CN CN201310450959.0A patent/CN104462159A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5416603A (en) * | 1991-04-30 | 1995-05-16 | Ricoh Company, Ltd. | Image segmentation using discrete cosine transfer data, and image data transmission apparatus and method using this image segmentation |
JP2002312719A (en) * | 2001-04-11 | 2002-10-25 | Nec Corp | Character segmentation device, character segmentation method and program for character segmentation |
CN1649384A (en) * | 2004-01-19 | 2005-08-03 | 株式会社理光 | Image processing apparatus, image processing program and storage medium |
CN103136171A (en) * | 2011-12-02 | 2013-06-05 | 明博教育科技有限公司 | E-book making method based on shock wave flash (SWF) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106327453A (en) * | 2015-06-30 | 2017-01-11 | 北京金山安全软件有限公司 | Method for splicing picture resources and picture resource splicing device |
CN106327453B (en) * | 2015-06-30 | 2020-02-07 | 珠海豹趣科技有限公司 | Method for splicing picture resources and picture resource splicing device |
CN107544985A (en) * | 2016-06-23 | 2018-01-05 | 珠海金山办公软件有限公司 | A kind of presentation file special-effect matching process and device |
CN112130782A (en) * | 2020-09-22 | 2020-12-25 | 上海汉图科技有限公司 | A printing method, device and printing client |
CN114443872A (en) * | 2021-12-22 | 2022-05-06 | 天翼云科技有限公司 | Image storage method, image display method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150046797A1 (en) | Document format processing apparatus and document format processing method | |
US9652818B2 (en) | Method and systems for thumbnail generation, and corresponding computer program product | |
US8417043B2 (en) | Method, apparatus and computer program product for normalizing and processing medical images | |
CN103294650B (en) | A kind of method and apparatus showing electronic document | |
US9754350B2 (en) | Systems and methods of automatic image sizing | |
CN104462159A (en) | Image conversion method and system based on document page content | |
CN109272449A (en) | Picture display method and device, computer device and readable storage medium | |
CN115328588A (en) | Method and system for rendering OFD (office file) based on browser front end | |
CN103310408B (en) | Be applicable to the image storage method of hyperfine image | |
JP2016127475A (en) | Image processing system, image processing method, and program | |
CN105373526A (en) | Blank region processing method and system for electronic document | |
US20200334785A1 (en) | Methods and devices of picture processing and user interface display | |
CN107729415A (en) | A kind of compressed file content displaying method and device | |
CN106777107A (en) | A kind of method of digital specimen tile data storage | |
US11102487B2 (en) | Image resampling for DCT based image encoding formats using memory efficient techniques | |
CN109803157A (en) | A kind of sequence frame picture transmission method, system and electronic equipment based on video | |
KR20090124177A (en) | Massive image processing device and method | |
CN103870543A (en) | Method and device for reconstructing document file | |
CN102546577A (en) | Compression and decompression method and system for format data | |
JP6142549B2 (en) | Electronic document image compression device | |
US9092694B2 (en) | Method and system for creating a digital image album | |
JP2004312430A (en) | Method and device for creating/displaying image data, program for creating/displaying image data, and program recording medium | |
CN115409719A (en) | Data processing method and device, terminal equipment and computer readable storage medium | |
CN103268619A (en) | Method and device for batch compression for picture data in swf document | |
CN104660267B (en) | The method and device of compressing file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
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: 20150325 |