CN104182394B - Server, terminal and layout files display methods - Google Patents

Server, terminal and layout files display methods Download PDF

Info

Publication number
CN104182394B
CN104182394B CN201310190129.9A CN201310190129A CN104182394B CN 104182394 B CN104182394 B CN 104182394B CN 201310190129 A CN201310190129 A CN 201310190129A CN 104182394 B CN104182394 B CN 104182394B
Authority
CN
China
Prior art keywords
content
format
client
layout files
processing
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.)
Expired - Fee Related
Application number
CN201310190129.9A
Other languages
Chinese (zh)
Other versions
CN104182394A (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.)
New Founder Holdings Development Co ltd
Founder Apabi Technology Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Apabi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University Founder Group Co Ltd, Beijing Founder Apabi Technology Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201310190129.9A priority Critical patent/CN104182394B/en
Publication of CN104182394A publication Critical patent/CN104182394A/en
Application granted granted Critical
Publication of CN104182394B publication Critical patent/CN104182394B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of servers, including:Communication unit, for receiving the browse request from client, and by image processing unit treated handle after content be sent to client;Recognition unit, the type page for when receiving browse request, identifying target resource;Image processing unit, for generating the content with format for type page, and to the content progress image procossing with format, with content after being handled.Correspondingly, the present invention also provides a kind of terminals and a kind of layout files display methods.According to the technique and scheme of the present invention, the data traffic of online browse layout files can be reduced, and the display effect of layout files can be improved.

Description

Server, terminal and layout files display methods
Technical field
The present invention relates to computer information technology fields, in particular to a kind of server, a kind of terminal and a kind of version Formula document display method.
Background technology
With the development of network technology and digital publishing technology and popularizing for multiple terminal equipment, user uses online Browsing terminal is varied.For layout files, in order to retain the characteristic of its master former formula, can generally be opened up by image Show.Currently in order to adapting to the size of display screen in online browse various terminals, scaling processing is carried out after being downloaded to layout files. When display screen is smaller and " white edge " in layout files is larger, content shows that unsharp problem will display, and influences User experience wastes the data traffic of user further for the download for being worth not high " white edge " information is read.
Therefore, it is necessary to a kind of layout files display technologies, under the premise of not influencing user experience, reduce data traffic.
Invention content
The technical issues of in view of occurring in the related technology, technical problem to be solved by the present invention lies in provide one kind Layout files display technology reduces data traffic under the premise of not influencing user experience.
In view of this, according to an aspect of the invention, there is provided a kind of server, including:Communication unit, for receiving Browse request from client, and by image processing unit treated processing after content be sent to the client;Know Other unit, the type page for when receiving the browse request, identifying target resource;Described image processing unit, for giving birth to Image procossing is carried out at the content with format for the type page, and to the content with format, it is described to obtain Content after processing.
What it is due to generation is the content with format for being directed to type page, eliminates " white edge " in original format set type file, And then reduce the data traffic of online browse, and image procossing further is carried out to the content with format, greatly reduce Network flow, and the browsing content due to remaining layout files, will not influence the clear of important content information It lookes at.
According to another aspect of the present invention, a kind of terminal is additionally provided, including:Communication unit, for being sent to server Browse request, and receive content after the processing from the server;Unit for scaling, for big according to the screen of the terminal The size of content after the small and described processing, zooms in and out content after the processing, obtains display content;Display unit is used for Show the display content that the unit for scaling obtains.
According to another aspect of the invention, a kind of layout files display methods is additionally provided, including:It is receiving from visitor When the browse request at family end, the type page of target resource is identified, generate the content with format for the type page;To the tool It is sent to the client after having the content of format to carry out image procossing, so that the client is shown.
What it is due to generation is the content with format for being directed to type page, eliminates " white edge " in original format set type file, And then reduce the data traffic of online browse, and image procossing further is carried out to the content with format, greatly reduce Network flow, and the browsing content due to remaining layout files, will not influence the clear of important content information It lookes at.
Therefore, according to the technique and scheme of the present invention, what is transmitted between client and server is after removing " white edge " Content with format, while the word segment in transferring content is also carried out black and white processing by server end, improves compressing file The collective effect of rate, two methods is the reduction of transferring content, reduces data volume, and it is online clear in progress also just to save user Data traffic when looking at.Simultaneously by carrying out pattern processing in client, aesthetic problem when webpage imaging is also taken into account, has been improved User experience.Further, since server end remains original layout files, can also be selected when client screen is larger It is browsed by original layout files.
Description of the drawings
Fig. 1 shows the block diagram of server according to an embodiment of the invention;
Fig. 2 shows the block diagrams of terminal according to an embodiment of the invention;
Fig. 3 shows the schematic diagram of layout files display system according to an embodiment of the invention;
Fig. 4 shows layout files schematic diagram according to an embodiment of the invention;
Fig. 5 shows the flow chart of layout files display methods according to an embodiment of the invention;
Fig. 6 shows server-side processes process schematic according to an embodiment of the invention;
Fig. 7 shows THP terminal handler process schematic diagram according to an embodiment of the invention.
Specific implementation mode
To better understand the objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specific real Mode is applied the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be implemented different from other modes described here using other, therefore, the present invention is not limited to following public specific realities Apply the limitation of example.
Fig. 1 shows the block diagram of server according to an embodiment of the invention.
As shown in Figure 1, server 100 according to an embodiment of the invention, including:Communication unit 102 comes from for receiving The browse request of client, and by image processing unit 106 treated processing after content be sent to client;Recognition unit 104, the type page for when receiving browse request, identifying target resource, such as the type page 402 in Fig. 4;Image processing unit 106, image procossing is carried out for generating the content with format for type page, and to the content with format, to obtain everywhere Content after reason.
What it is due to generation is the content with format for being directed to type page, eliminates the white edge in original format set type file(Such as White edge 404 in Fig. 4), and then reduce the data traffic of online browse, and figure further is carried out to the content with format As processing, network flow, and the browsing content due to remaining layout files are greatly reduced, weight will not be influenced Want the browsing of content information.
Preferably, image processing unit 106 with the text information part in the content of format for will carry out at black and white Reason generates black white image, and retains the gray level image format of the non-legible message part in the content with format.
After carrying out black and white processing to text information part, compression ratio can be improved, to reduce data traffic, saved for user Resource-saving.
Preferably, server 100 can also include:Judging unit 108 includes the screen message of client in browse request When, judge whether the size of client screen exceeds screen size preset value, is determined whether target directly according to judging result Resource is sent to client.
When client screen is smaller, after layout files is removed white edge, important content part capable of enlarged displaying, to improve User experience can be not necessarily to server and carry out associated picture processing when client screen is larger, to mitigate the burden of server, Therefore, it is possible to provide selected to user, if to carry out relevant image procossing.
Fig. 2 shows the block diagrams of terminal according to an embodiment of the invention.
As shown in Fig. 2, terminal 200 according to an embodiment of the invention, including:Communication unit 202 is used for server (Such as server 100 shown in FIG. 1)Browse request is sent, and receives content after the processing from the server;Scaling is single Member 204 zooms in and out content after above-mentioned processing, obtains for the size according to content after the screen size of terminal 200 and processing To display content;Display unit 206, the display content obtained for showing unit for scaling 204.
Preferably, terminal 200 can also include:Pattern processing unit 208 carries out at pattern the display content after scaling Reason, display unit 106 is based on pattern, and treated that content is imaged.
After layout files is removed white edge, the content with format that can be obtained to processing is amplified display or diminution Display for beauty or meets user's custom to meet display effect requirement, can be that the content with format increases corresponding sample Formula, such as background color, font format, underscore etc..
Therefore, transmitted between client and server according to the present invention be remove " white edge " after in format Hold, while the word segment in transferring content is also carried out black and white processing by server end, improves compressing file rate, two methods Collective effect be the reduction of transferring content, reduce data volume, also just save data of the user when carrying out online browse Flow.Simultaneously by carrying out pattern processing in client, aesthetic problem when webpage imaging is also taken into account, user's body is improved It tests.Further, since server end remains original layout files, can also be selected by original when client screen is larger Layout files browsed.
Fig. 3 shows the schematic diagram of layout files display system according to an embodiment of the invention.As shown in figure 3, service Device 100 is handled target resource after the browse request for receiving terminal 200, including removal white edge, word segment it is black White processing etc..Content after processing is sent to terminal 200.In end side, terminal 200 zooms in and out place to content after the processing Reason shows content to make full use of screen size, and can be to carry out pattern processing to content after processing, to improve user's body It tests.
Fig. 5 shows the flow chart of layout files display methods according to an embodiment of the invention.
As shown in figure 5, layout files display methods according to an embodiment of the invention, including:Step 502, it is receiving When browse request from client, the type page of target resource is identified, generate the content with format for type page;Step 504, it is sent to client after carrying out image procossing to the content with format, so that client is shown.
What it is due to generation is the content with format for being directed to type page, eliminates " white edge " in original format set type file, And then reduce the data traffic of online browse, and image procossing further is carried out to the content with format, greatly reduce Network flow, and the browsing content due to remaining layout files, will not influence the clear of important content information It lookes at.
In the above-mentioned technical solutions, it is preferred that with format content carry out image procossing process include:To have Text information part in the content of format carries out black and white processing, generates black white image, and retain in the content with format The gray level image format of non-legible message part.After carrying out black and white processing to text information part, compression ratio can be improved, to Data traffic is reduced, resource is saved for user.
In the above-mentioned technical solutions, it is preferred that size of the client according to client screen and the content with format Size zooms in and out the content with format, obtains display content.
Preferably, layout files display methods according to the present invention can also include:Pattern processing is carried out to display content, Based on pattern, treated that content carries out imaging shows.After layout files is removed white edge, what can be obtained to processing has version The content of formula is amplified display or reduces display, to meet display effect requirement, for beauty or meets user's custom, can be Content with format increases corresponding pattern, such as background color, font format, underscore etc..
Preferably, layout files display methods according to the present invention can also include:Include client in browse request When screen message, judge whether the size of client screen exceeds screen size preset value, is determined whether directly according to judging result It connects and target resource is sent to client.It is capable of enlarged displaying heavy after layout files is removed white edge when client screen is smaller Content part is wanted, to improve user experience, when client screen is larger, server can be not necessarily to and carry out associated picture processing, with Mitigate the burden of server, therefore, it is possible to provide selected to user, if to carry out relevant image procossing.
Layout files browsing method according to the present invention is further illustrated with reference to Fig. 6 and Fig. 7.
As shown in fig. 6, target resource is stored in server end after machining, the processing procedure of server end includes:
A1:After server end obtains the online browse request of client, the target resource for treating browsing carries out type page identification Operation generates the content with format just for type page, to eliminate the white edge in target resource.
A2:Server end carries out image procossing to the content after identification type page and content is sent to client by treated End, wherein image procossing is divided into two classes:
A) the text information part in the content after identification type page is subjected to black and white processing, becomes black white image.
B) by the non-legible message part in the content after identification type page, retain its original gray level image mode.
As shown in fig. 7, the processing procedure of client includes:
A3:Content after client acquisition server-side processes are good, according to the actual size of online browse client screen And the size and location with format content, processing is zoomed in and out, makes full use of screen size to show content.
A4:Pattern processing is carried out to displaying content in client, takes into account aesthetic problem when webpage imaging.
A5:Pattern handling result is finally illustrated in client.
Through the above technical solutions, when online browse terminal is imaged, server end utilizes type page recognition methods, It is positioned, only extracts type page content, while need not wherein will carry out black and white processing with the part of iamge description, improve compression Rate, by treated, result is transmitted, to reduce its data traffic.Simultaneously when client forms webpage in view of beautiful, Pattern processing is carried out to it, the user experience is improved.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (6)

1. a kind of server, which is characterized in that including:
Communication unit, for receiving the browse request from client, and will be interior after image processing unit treated processing Appearance is sent to the client;
Recognition unit, the type page for when receiving the browse request, identifying target resource;
Described image processing unit has format for generating the content with format for the type page, and to described Content carries out image procossing, to obtain content after the processing;
Judging unit judges that the size of client screen is when the browse request includes the screen message of the client It is no to exceed screen size preset value, determined whether that the target resource is directly sent to the client according to judging result.
2. server according to claim 1, which is characterized in that described image processing unit is used to described to have format Content in text information part carry out black and white processing, generate black white image, and retain in the content with format The gray level image format of non-legible message part.
3. a kind of layout files display methods, which is characterized in that including:
When receiving the browse request from client, the type page of target resource is identified, generate having for the type page The content of format;
It is sent to the client after carrying out image procossing to the content with format, so that the client is shown;
The client is according to the size of the size and the content with format of client screen, to described with format Content zooms in and out, and obtains display content.
4. layout files display methods according to claim 3, which is characterized in that carried out to the content with format The process of image procossing includes:
Text information part in the content with format is subjected to black and white processing, generates black white image, and described in reservation The gray level image format of non-legible message part in content with format.
5. layout files display methods according to claim 3, which is characterized in that further include:
Pattern processing is carried out to the display content, treated that content carries out imaging shows based on pattern.
6. layout files display methods according to any one of claim 3 to 5, which is characterized in that further include:
When the browse request includes the screen message of the client, judge whether the size of client screen exceeds screen Size preset value determines whether that the target resource is directly sent to the client according to judging result.
CN201310190129.9A 2013-05-21 2013-05-21 Server, terminal and layout files display methods Expired - Fee Related CN104182394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310190129.9A CN104182394B (en) 2013-05-21 2013-05-21 Server, terminal and layout files display methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310190129.9A CN104182394B (en) 2013-05-21 2013-05-21 Server, terminal and layout files display methods

Publications (2)

Publication Number Publication Date
CN104182394A CN104182394A (en) 2014-12-03
CN104182394B true CN104182394B (en) 2018-09-18

Family

ID=51963452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310190129.9A Expired - Fee Related CN104182394B (en) 2013-05-21 2013-05-21 Server, terminal and layout files display methods

Country Status (1)

Country Link
CN (1) CN104182394B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832272A (en) * 2017-11-02 2018-03-23 山东浪潮云服务信息科技有限公司 Multi-format document automatic conversion insertion stream-oriented file method based on domestic CPU
CN114595017B (en) * 2022-01-18 2024-05-10 阿里巴巴(中国)有限公司 Data display method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001022328A1 (en) * 1999-09-22 2001-03-29 Liquidsite, Inc. E-commerce systems and methods responsive to interactive product placements
CN1327202A (en) * 2000-06-01 2001-12-19 ***科技股份有限公司 Web site figure instant preview system
CN101449270A (en) * 2006-03-15 2009-06-03 谷歌公司 Automatic display of resized images
CN102332024A (en) * 2011-09-30 2012-01-25 奇智软件(北京)有限公司 Touch control type browser for portable mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100504755C (en) * 2006-08-14 2009-06-24 天津津科电子***工程有限公司 Display method for quickly focalizing page center on hand-held reading apparatus
CN101202755A (en) * 2007-12-20 2008-06-18 腾讯科技(深圳)有限公司 System, method and device for displaying picture of mobile terminal
CN101833586A (en) * 2010-05-26 2010-09-15 卓望数码技术(深圳)有限公司 HTML (Hypertext Markup Language) small screen self-adaption typesetting method and typesetting server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001022328A1 (en) * 1999-09-22 2001-03-29 Liquidsite, Inc. E-commerce systems and methods responsive to interactive product placements
CN1327202A (en) * 2000-06-01 2001-12-19 ***科技股份有限公司 Web site figure instant preview system
CN101449270A (en) * 2006-03-15 2009-06-03 谷歌公司 Automatic display of resized images
CN102332024A (en) * 2011-09-30 2012-01-25 奇智软件(北京)有限公司 Touch control type browser for portable mobile terminal

Also Published As

Publication number Publication date
CN104182394A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
US10282643B2 (en) Method and apparatus for obtaining semantic label of digital image
CN110120024B (en) Image processing method, device, equipment and storage medium
CN107147939A (en) Method and apparatus for adjusting net cast front cover
CN106682124A (en) Image recognition method, device and equipment
CN106202086B (en) Picture processing and obtaining method, device and system
CN102663672A (en) Picture verification code generation method and device
DE112015005985T5 (en) CLASSIFICATION AND STORAGE OF DOCUMENTS
DE102016015381A1 (en) Using Bloom filters to simplify the expansion and subdivision of a dynamic font
CN110263737A (en) Image processing method, image processing apparatus, terminal device and readable storage medium storing program for executing
CN105551044B (en) A kind of picture control methods and device
CN104182394B (en) Server, terminal and layout files display methods
CN107491464A (en) Device, method, terminal, server and the system of electronics service manual are provided
CN111859210B (en) Image processing method, device, equipment and storage medium
CN104427285B (en) A kind of prompt message generation method and device
US20150296039A1 (en) Method and system for document processing in wireless communication apparatus
US11902522B2 (en) Character restoration method and apparatus, storage medium, and electronic device
CN109255967A (en) Method and apparatus for release information
CN115376137B (en) Optical character recognition processing and text recognition model training method and device
CN105260346A (en) Monitoring data processing method, device and system
CN106776552B (en) File identification method, device, server and computer storage media
CN111260756A (en) Method and apparatus for transmitting information
CN106598933B (en) A kind of web-based type-setting document proofreading method and equipment
US20110145369A1 (en) Data downloading system, device, and method
CN112235633A (en) Output effect adjusting method, device, equipment and computer readable storage medium
CN109840244A (en) A kind of image type conversion method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220615

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: FOUNDER APABI TECHNOLOGY Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: FOUNDER APABI TECHNOLOGY Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180918