WO2015085785A1 - Procédé et appareil pour griser automatiquement une page - Google Patents

Procédé et appareil pour griser automatiquement une page Download PDF

Info

Publication number
WO2015085785A1
WO2015085785A1 PCT/CN2014/084370 CN2014084370W WO2015085785A1 WO 2015085785 A1 WO2015085785 A1 WO 2015085785A1 CN 2014084370 W CN2014084370 W CN 2014084370W WO 2015085785 A1 WO2015085785 A1 WO 2015085785A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
page
color
grayscale
path information
Prior art date
Application number
PCT/CN2014/084370
Other languages
English (en)
Chinese (zh)
Inventor
李成银
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2015085785A1 publication Critical patent/WO2015085785A1/fr

Links

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/451Execution arrangements for user interfaces
    • 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

Definitions

  • the present invention relates to network communication technologies, and in particular, to a method for automatically graying a page and a device for automatically graying a page. Background technique
  • Websites sometimes have the need to gray out their pages. For example, in the event of a major disaster in the country or on certain anniversaries, many websites turn their pages into grayscale pages in order to express feelings of mourning or memory.
  • the existing method of graying out a page is usually: a message (such as an HTTP message) sent by the website server to the browser client after receiving the request message sent by the browser client through the terminal device where the browser client is located.
  • the message content is inserted into the filter attribute or the GSS3 gray parameter, and the message is sent to the terminal device where the browser client is located; the browser client parses the message after the terminal device receives the message sent by the server.
  • rendering processing and the browser client will process the image or the color of the font or the background in the message according to the filter property or the GSS3 gray parameter in the parsing and rendering process, so that the browser client The end presents a grayscale page for the user.
  • the inventor has found that graying out a page by using the above method requires a browser client to perform color change processing during page parsing and rendering, so that the speed of the browser client displaying the page to the user is greatly affected.
  • the effect in the case of more page content, there will be a situation where the browser client cannot display the page to the user normally.
  • the web server in order to avoid the problem of page display speed, usually only inserts the filter attribute or the GSS3 gray parameter in the message content of the message when the content of the website home page is delivered, so that the webpage other than the homepage of the website often does not Displayed as a grayscale page.
  • the present invention has been made in order to provide a method of automatically graying a page that overcomes the above problems or at least partially solves the above problems, and a corresponding apparatus for automatically graying a page.
  • a method for automatically graying a page comprising: acquiring source code of a page; identifying and obtaining a name of a picture in the page, and a storage path of the image from source code of the page.
  • the source code of the updated page is used by the website server according to browsing
  • the page request of the client sends a message carrying the content of the corresponding page to the browser client.
  • an apparatus for automatically graying out a page includes: an acquisition module adapted to acquire source code of a page; and an identification module adapted to be from source code of the page Identifying and acquiring the name of the picture in the page, the storage path information of the picture, and the color value corresponding to the color variable;
  • the first conversion module is adapted to acquire a picture according to the name of the picture and the storage path information, and convert the picture into a grayscale a picture, and the storage of the grayscale picture is corresponding to the storage information of the picture in the source code of the page;
  • the second conversion module is adapted to convert the color value corresponding to the color variable into a grayscale And using the gray value to update a color value corresponding to the color variable in the source code of the page;
  • the source code of the updated page is used by the website server to request a browser client according to a page request of the browser client The terminal sends a message carrying the content of the corresponding page.
  • a computer program comprising computer readable code causing the server to perform the above method when the computer readable code is run on a server is provided.
  • a computer readable medium in which the above computer program is stored.
  • the method and device for automatically graying out the page of the present invention can obtain the storage path information of the picture in the page and the color value corresponding to the color variable conveniently, quickly and accurately by identifying the source code of the page, by corresponding to the storage path information.
  • the image is converted into a grayscale image
  • the color value is converted into a grayscale value
  • the storage location of the grayscale image is set corresponding to the storage path information of the image in the source code of the page
  • the grayscale value is updated to the source code of the page.
  • the color value corresponding to the color variable, so that the page content delivered to the browser client by using the updated source code is the page content based on the grayscale page, so that the present invention does not require the browser client to perform the color changing process.
  • the grayscale page can be presented to the user; and the grayscale page presented to the user can be not only the homepage of the website but also other pages; in addition, the image in the content of the page delivered to the user is grayed out.
  • Degree picture, not color picture, therefore, the present invention can also improve page access speed degree.
  • FIG. 1 is a flow chart showing a method for automatically graying a page according to a first embodiment of the present invention
  • FIG. 2 is a schematic diagram of an apparatus for automatically graying a page according to Embodiment 2 of the present invention
  • Figure 3 shows a block diagram of a communication device for performing the method of the present invention
  • Figure 4 shows a schematic diagram of a memory unit for holding or carrying program code implementing a method in accordance with the present invention. detailed description
  • Embodiment 1 A method for automatically graying a page. The method of this embodiment will be described in detail below with reference to FIG.
  • the page in this embodiment may also be referred to as a WEB page
  • the WEB page may be a WEB page of a website homepage, or may be a WEB page corresponding to a sub-link under the website homepage.
  • WEB pages typically reference resources such as Javascr i pt, CSS (Cascad i ng Sty le Sheets), images, F ash, and video.
  • WEB page source code is mainly used to design nets M, -, obtaining a page of the source code may include the step of: obtaining the file name, etc. Page required page dimmed process corresponding source code, The source code of the page is obtained according to the file name.
  • S1 1 Identify and obtain the name of the picture in the page, the storage path information of the picture, and the color value corresponding to the color variable from the source code of the page, and then go to S1 20 and S1 30 respectively.
  • the content of the source code of the page needs to be searched for content that needs to be grayed out (that is, an object or a color conversion object).
  • the content that needs to be grayed out in the WEB webpage is mainly the image and the color used in the GSS (such as the background color and the font color, etc.), that is, the embodiment of the present invention needs to be directed to the image and the GSS.
  • the colors used for the identification, the identification process is used to keywords (also referred to as a specific character) may comprise tags such as image "i mg" and the like, may also include a picture name suffixes, such as ". pn g" or ".jpg”etc; also You can include the name of the color variable, such as " color: " and so on.
  • the source code of a page is set to contain both HTML code and GSS code, and the HTML code and GSS code are as follows:
  • the images involved include "logo, png” and "1.jpg”; wherein the storage path information of the image “logo, png” is “.././resources/img ⁇ ,” and the image The storage path information for "1. jpg” is "../../resources/img/”.
  • regular expressions such as regular expressions including “img”, ".jpg”, and “.png”
  • the color values used include: #888" and "#00ff00” in .cls And “#ff0000” in the header, and the picture "2. jpg” is also involved in the above GSS code.
  • regular expressions such as regular expressions including “color: ”
  • Regular expressions such as regular expressions including "img”, ".jpg”, and “.png” identify the above GSS code, and can accurately locate the storage path information of the image "2.jpg”. ../im g ⁇ , .
  • This step uses regular expressions (such as regular expressions formed by specific characters such as “img”, “.jpg”, “.png”, “color:”, and “/” to identify and retrieve from source code.
  • regular expressions such as regular expressions formed by specific characters such as “img”, “.jpg”, “.png”, “color:”, and “/” to identify and retrieve from source code.
  • the specific implementation process of the storage path information of the picture and the color value corresponding to the color variable will not be described in detail herein.
  • the name of the picture obtained according to the above identification and the storage path information of the picture can be accurately located to a unique picture, so that a unique picture can be obtained.
  • the acquired image can be converted into a grayscale image by using an existing image conversion tool.
  • the acquired image can be converted into an image filter function in the Imagemagic function library.
  • Grayscale picture For example, the above acquired image is converted into a grayscale image by calling an image filter function in the Phpgd function library.
  • $ img i magecreatef rompng ( $f i lePath );
  • ⁇ mouth fruit above fi lePath is set to .. /. /resources/ img/ logo.
  • png Bay 'J picture " logo, png" is converted to grayscale picture; if the above code f fiPath is set For .. /../resources/img/1. jpg, the picture "1. jpg" is converted to grayscale image; if fi lePath in the above program code is set to .. /img/2. jpg, then The picture "2. jpg” is converted to a grayscale image.
  • the storage information of the grayscale picture is set corresponding to the storage information of the picture in the source program code of the page.
  • the main purpose of the step is to: corresponding to the storage information of the picture in the source code of the page and the actual storage information of the gray picture, so as to be extracted when the specific code is formed by using the source code.
  • the picture is a converted grayscale image, not the original image (such as a color image).
  • the foregoing storage information may be the storage path information of the picture and the picture name.
  • the foregoing corresponding manner may be implemented in the following four manners:
  • the converted grayscale image is stored according to the storage path information of the corresponding image (ie, the original image) in the source code of the page, and the image name of the grayscale image is the same as the image name of the original image, thereby
  • the original picture corresponding to the storage path information is overwritten by the converted grayscale picture; that is, the converted grayscale picture can be obtained by using the storage path information of the original picture in the source code of the page and the picture name of the original picture.
  • This method does not need to modify the source code of the page, which is a better implementation.
  • the converted grayscale image is stored according to the storage path information of the corresponding image (ie, the original image) in the source code of the page, and the image name of the grayscale image is different from the image name of the original image, thereby
  • the converted grayscale image does not cover the original image; the method needs to modify the image name of the original image in the source code of the page, so that the storage path information and the new image of the original image in the modified source code are modified.
  • the name corresponds to the actual storage path information of the grayscale picture and the picture name, that is, the converted gray level can be obtained by using the storage path information of the original picture in the modified source code and the picture name of the converted gray picture. image. This method retains the original picture.
  • the converted grayscale image is no longer stored according to the storage path information of the corresponding image (ie, the original image) in the source code of the page, but is stored in another place, so that the grayscale image corresponds to a different one.
  • the new storage path information of the storage path information of the original picture however, the picture name of the gray picture may be the same as the picture name of the original picture; this method needs to modify the storage path information of the original picture in the source code but does not need to be modified.
  • the picture name of the original picture so that the new storage path information in the modified source code and the picture name of the original picture correspond to the actual storage path information of the grayscale picture and the picture name of the grayscale picture, that is, the modified
  • the new storage path information in the source code and the picture name of the original picture can obtain the converted grayscale picture. This method retains the original picture.
  • the converted grayscale image is no longer stored according to the storage path information of the corresponding image (ie, the original image) in the source code of the page, but stored in another place, so that the grayscale image corresponds to a different one.
  • the new storage path information of the storage path information of the original picture, and the picture name of the gray picture is different from the picture name of the original picture; this method needs to modify the storage path information of the original picture in the source code and the original picture.
  • the picture name so that the new storage path information and the new picture name in the modified source code correspond to the actual storage path information of the grayscale picture and the picture name of the grayscale picture, that is, using the modified source code New storage path information as well as new The image name can be obtained from the converted grayscale image. This method retains the original picture.
  • the execution of this step and the execution of the above S120 are not limited by a certain order.
  • S120 and S130 perform the sequence of conversion operations.
  • S120 and S130 will perform conversion operations under normal conditions.
  • the hexadecimal color value When converting a color value to a gray value for a background color and a font color using a hexadecimal color value, the hexadecimal color value should be converted to an RGB color value first, and then the RGB color value Convert to grayscale values.
  • $co I or $co I or ⁇ 0 ⁇ . $co I or ⁇ 0 ⁇ . $color ⁇ 1 ⁇ . $color ⁇ 1 ⁇ . $co I or ⁇ 2 ⁇ . $co I or ⁇ 2 ⁇ ;
  • the RGB color After converting a hexadecimal color value to an RGB color value, the RGB color can be converted to a gray value by the following formula (1):
  • the hexadecimal color value ie, "#888" and "#00ff00” in the .cls and "#ff0000" in the header
  • the GSS code is as follows:
  • the source code of the updated page formed after the above processing is mainly used by the website server to send a message carrying the content of the corresponding page to the browser client according to the page request of the browser client. That is to say, the method of this embodiment can also upload the source code of the updated page formed after the above processing, and set the source code of the updated page to the web server.
  • the source code of the page is brought online, after which the web server receives the page request transmitted by the browser client. And sending, according to the source code corresponding to the page, a message carrying the page content based on the grayscale image and the grayscale value to the browser client, so that the browser client directly parses the message after receiving the message. And rendering, you can render the grayscale page for the user.
  • the file size of the picture can be greatly reduced, for example, the file size of the picture 1.jpg can be reduced from 1 10K to 38K, so that the embodiment of the present invention can improve the page. Access speed makes it faster for users to browse the page.
  • Embodiment 2 A device for automatically graying a page.
  • the device that is automatically grayed out on the page can be set in the device of the development webpage or in the server of the website.
  • the apparatus of this embodiment will be described in detail below with reference to FIG.
  • the apparatus shown in FIG. 2 mainly includes: an acquisition module 200, an identification module 210, a first conversion module 220, and a second conversion module 230.
  • the obtaining module 200 is connected to the identification module 210; the obtaining module 200 is mainly adapted to obtain the source of the page code.
  • the source code of the webpage acquired by the obtaining module 200 usually includes an HTML program code, a GSS program code, and the like.
  • the obtaining module 200 may first obtain the file name of the source program code corresponding to the page that needs to be grayed out by the page, and further obtain the source code of the page according to the file name.
  • the identification module 210 is connected to the first conversion module 220 and the second conversion module 230 respectively in addition to the acquisition module 200.
  • the identification module 210 is mainly adapted to obtain the name and picture of the picture in the page from the source code of the page. Stores path information and color values corresponding to color variables.
  • the identification module 210 needs to find the content (ie, the object or the color conversion object) that needs to be grayed out in the source code of the page.
  • the content of the WEB webpage that needs to change the color to gray is mainly the image and the color used in the GSS (such as the background color and the font color, etc.), that is, the identification module 210 needs to be targeted for the image and the GSS.
  • the color used for recognition, the keywords used in the recognition process may include image tags such as "img", etc., and may also include image name suffixes, such as ". png" or ". jpg” Etc;; can also include the name of the color variable, such as "color:” and so on.
  • the source code of a page is set to contain both HTML code and GSS code, and the HTML code and GSS code are as follows:
  • the images involved include "logo, png” and "1.jpg”; wherein the storage path information of the image “logo, png” is “.././resources/img ⁇ ,” and the image The storage path information of "1. jpg” is "../../resources/img/”.
  • the recognition module 210 utilizes regular expressions (such as including “im g " , ". jpg” and “.pn g " in The regular HTML expression identifies the above HTML code, and can accurately locate the storage path of the image "logo, png”” .././resources/ img/ " and the storage path of the image "1.jpg” Information "../../ resources/ img/”.
  • the color values used include: “#888” and "#00f f 00" in the c I s and "#ff0000" in the header, and the image is also involved in the above GSS code” 2.
  • jpg The recognition module 210 can accurately identify the color values "#888", “#00ff00", and "#ff0000” by using a regular expression (such as a regular expression including "color:”) to identify the GSS code.
  • the recognition module 210 recognizes the above GSS code by means of a regular expression (such as a regular expression including "img”, ".jpg”, and “.png”, and can accurately locate the picture "2. jpg "The storage path information"../img/” .
  • the recognition module 210 recognizes and recognizes from the source code by using regular expressions (such as regular expressions formed by specific characters such as “img”, “.jpg”, “.png”, “color:”, and “/”).
  • regular expressions such as regular expressions formed by specific characters such as "img”, “.jpg”, “.png”, “color:”, and “/”.
  • the specific implementation process of obtaining the storage path information of the picture and the color value corresponding to the color variable is not described in detail herein.
  • the first conversion module 220 is connected to the identification module 210.
  • the first conversion module 220 is mainly adapted to acquire a picture according to the name of the picture and the storage path information, convert the picture into a grayscale picture, and store the gray picture with the picture.
  • the storage information in the source code of the page corresponds to the setting.
  • the name of the picture acquired by the first conversion module 220 according to the identification module 210 and the storage path information of the picture can be accurately located to a unique picture, so that the first conversion module 220 can obtain a unique one. image.
  • the first conversion module 220 may convert the acquired image into a grayscale image by using an existing image conversion tool. For example, the first conversion module 220 may use the image filter function in the Imagemagic function library to retrieve the acquired image. Converting to a grayscale picture; for example, the first conversion module 220 can convert the acquired image by calling an image filter function in the Php gd function library. Change to grayscale image.
  • the first conversion module 220 can be implemented by using the following program code (ie, the first conversion module 220 includes the following code) :
  • $img i magecreatef rompng ( $f i lePath );
  • the shell 'J picture" logo, png is converted into a grayscale picture; if in the above program code Fi lePath is set to .. /../resources/img/1. jpg by the first conversion module 220, then the picture "1. jpg" is converted into a grayscale picture; if the fi lePath in the above program code is first converted The module 220 is set to ../img/2. jpg, and the picture "2. jpg" is converted to a grayscale picture.
  • the first conversion module 220 can implement the corresponding setting of the storage of the grayscale picture and the storage information of the picture in the source code of the page in the following four ways:
  • the first conversion module 220 stores the converted grayscale image according to the storage path information of the corresponding image (ie, the original image) in the source code of the page, and the image name of the grayscale image and the image of the original image.
  • the name is the same, so that the first conversion module 220 covers the original image corresponding to the storage path information by the converted grayscale image; that is, the storage path information of the original image in the source code of the page and the image name of the original image may be used.
  • the grayscale picture converted by the first conversion module 220 is obtained. This method does not require the first conversion module 220 to modify the source code of the page, which is a better implementation.
  • the first conversion module 220 stores the converted grayscale image according to the storage path information of the corresponding image (ie, the original image) in the source code of the page, and the image name of the grayscale image and the image of the original image.
  • the name is not the same, so that the first conversion module 220 does not cover the original picture; the first conversion module 220 needs to modify the picture name of the original picture in the source code of the page, so that the modified source program
  • the storage path information of the original picture in the code and the new picture name correspond to the actual storage path information and the picture name of the grayscale picture, that is, the storage path information of the original picture in the modified source code and the converted gray
  • the image name of the degree image can be obtained as a converted grayscale image. This method retains the original picture.
  • the first conversion module 220 no longer follows the corresponding picture in the source code of the page (ie, The storage path information of the original picture is used to store the converted grayscale picture, but the converted grayscale picture is stored elsewhere, so that the first conversion module 220 makes the grayscale picture correspond to a different picture from the original picture.
  • the new storage path information of the path information is stored, but the picture name of the gray picture may be the same as the picture name of the original picture; the first conversion module 220 needs to modify the storage path information of the original picture in the source code but does not need to be modified.
  • the picture name of the original picture so that the new storage path information in the modified source code and the picture name of the original picture correspond to the actual storage path information of the grayscale picture and the picture name of the grayscale picture, that is, the modified
  • the new storage path information in the source code and the picture name of the original picture can obtain the converted grayscale picture. This method retains the original picture.
  • the first conversion module 220 does not store the converted grayscale image according to the storage path information of the corresponding image (ie, the original image) in the source code of the page, but stores the converted grayscale image.
  • the first conversion module 220 causes the grayscale picture to correspond to a new storage path information different from the storage path information of the original picture, and the picture name of the gray picture is different from the picture name of the original picture;
  • the first conversion module 220 needs to modify the storage path information of the original picture in the source code and the picture name of the original picture, so that the new storage path information in the modified source code and the new picture name and the actual picture of the gray picture
  • the storage path information corresponds to the picture name of the grayscale picture, that is, the converted grayscale picture can be obtained by using the new storage path information in the modified source code and the new picture name. This method retains the original picture.
  • the second conversion module 230 is connected to the identification module 210.
  • the second conversion module 230 is mainly adapted to convert the color value corresponding to the color variable into a gray value, and update the color value corresponding to the color variable in the source code of the page by using the gray value. .
  • the operation performed by the second conversion module 230 and the execution performed by the first conversion module 230 are not limited by a sequence, for example, performing a conversion after finding a content that needs to be color grayed out.
  • the sequence of the conversion operations performed by the second conversion module 230 and the first conversion module 230 depends on the order in which the identification module 210 searches for the content that needs to be color-grayed from the source code of the web page; For another example, in a case where the identification module 210 searches for the content that needs to be subjected to the color graying process from the source code of the webpage, and then performs the conversion, the second conversion module 230 and the first conversion module 230 are normally simultaneously Perform a conversion operation.
  • the second conversion module 230 should first convert the hexadecimal color value to the RGB color value, and then The second conversion module 230 then converts the RGB color values into grayscale values.
  • the second conversion module 230 converts the hexadecimal color value into the RGB color value is as follows (the second conversion module 230 includes the following program code):
  • $co I or $co I or ⁇ 0 ⁇ . $co I or ⁇ 0 ⁇ . $color ⁇ 1 ⁇ . $color ⁇ 1 ⁇ . $co I or ⁇ 2 ⁇ . $co I or ⁇ 2 ⁇ ;
  • the second conversion module 230 can convert the RGB color to a gray value by the following formula (1):
  • Equation (1) is for the example described in the identification module 210
  • the GSS code in the second conversion module 230 converts the hexadecimal color values it contains (ie, "#888" and "#00ff00" in the .cls and "#ff0000" in the header) to gray. After the degree value, and replacing the color value corresponding to the color variable in the source code of the page with the gray value, the GSS code is as follows:
  • the source code of the updated page formed by the processing by the first conversion module 220 and the second conversion module 230 is mainly used by the website server to deliver the corresponding page content to the browser client according to the page request of the browser client. Message. That is to say, the device can also bring up the source code of the updated page formed by the above processing, and set the source code of the updated page to the web server.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed or All processes or units of the device are combined.
  • Each feature disclosed in the specification (including the accompanying claims, the abstract and the drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the apparatus for automatic graying of pages in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the present invention may be stored on a computer readable medium or may have the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 3 illustrates a communication device that can implement the method of automatic graying of pages of the present invention.
  • the communication device conventionally includes a processor 310 and a computer program product or computer readable medium in the form of a memory 320.
  • Memory 320 can be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk or ROM.
  • Memory 320 has a memory space 330 for program code 331 for performing any of the method steps described above. For example, it is used in program code 331.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such computer program products are typically portable or fixed storage units as described with reference to Figure 4.
  • the storage unit may have a storage section or a storage space or the like arranged similarly to the storage 320 in the communication device of Fig. 3.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises a program 331' for performing the steps of the method according to the invention, ie a code readable by a processor such as 310, which when executed by the communication device causes the communication device to perform the above Each step in the described method.

Landscapes

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

Abstract

L'invention concerne un procédé et un appareil qui permettent de griser automatiquement une page. Le procédé consiste : à obtenir les codes de programme source d'une page; à partir des codes de programme source de la page, à identifier et à obtenir les informations de nom et de chemin de stockage d'une image dans la page et une valeur de couleur correspondant à une variable de couleur; à obtenir l'image conformément aux informations de nom et de chemin de stockage de l'image, à convertir l'image en une image en niveaux de gris et à régler en conséquence les informations de stockage de l'image en niveaux de gris et les informations de stockage de l'image dans les codes de programme source de la page; à convertir la valeur de couleur correspondant à la variable de couleur en une valeur de niveau de gris, et en vertu de la valeur de niveau de gris, à mettre à jour la valeur de couleur correspondant à la variable de couleur dans les codes de programme source de la page. Les codes de programme source mis à jour de la page sont utilisés pour un serveur de site web qui envoie un message acheminant un contenu de page correspondant à un client de navigateur conformément à une requête de page provenant du client de navigateur.
PCT/CN2014/084370 2013-12-12 2014-08-14 Procédé et appareil pour griser automatiquement une page WO2015085785A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310680693.9A CN103761079B (zh) 2013-12-12 2013-12-12 页面自动变灰的方法和装置
CN201310680693.9 2013-12-12

Publications (1)

Publication Number Publication Date
WO2015085785A1 true WO2015085785A1 (fr) 2015-06-18

Family

ID=50528323

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084370 WO2015085785A1 (fr) 2013-12-12 2014-08-14 Procédé et appareil pour griser automatiquement une page

Country Status (2)

Country Link
CN (1) CN103761079B (fr)
WO (1) WO2015085785A1 (fr)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761079B (zh) * 2013-12-12 2017-01-18 北京奇虎科技有限公司 页面自动变灰的方法和装置
CN105786896A (zh) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 一种页面侧边栏的颜色渲染方法及装置
CN105096242A (zh) * 2015-08-18 2015-11-25 耿懿超 一种图片处理方法及其图片处理装置
CN106126650A (zh) * 2016-06-24 2016-11-16 武汉斗鱼网络科技有限公司 一种基于php扩展的网页图片支持系统
CN109918065B (zh) * 2019-02-18 2022-05-17 广州视源电子科技股份有限公司 图片代码的编辑方法、装置、计算机设备和存储介质
CN110838086B (zh) * 2019-11-07 2021-07-16 上海大学 一种基于相关性模板匹配的室外图像拼接方法
CN111930461B (zh) * 2020-08-13 2023-09-15 中国工商银行股份有限公司 基于Android的移动端APP全量页面灰度化方法和装置
CN111930462A (zh) * 2020-08-13 2020-11-13 中国工商银行股份有限公司 Pc端全量页面灰度化方法和装置
CN113569169A (zh) * 2021-07-29 2021-10-29 北京奇艺世纪科技有限公司 一种页面显示方法和装置
CN114968466A (zh) * 2022-07-14 2022-08-30 深圳市明源云空间电子商务有限公司 页面配色调整方法、装置、电子设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662672A (zh) * 2012-04-05 2012-09-12 广州市动景计算机科技有限公司 对网页进行换肤处理的方法和装置以及移动终端
WO2012149855A1 (fr) * 2011-09-30 2012-11-08 华为技术有限公司 Procédé de réglage de couleurs de page web, navigateur web et serveur de page web
CN103761079A (zh) * 2013-12-12 2014-04-30 北京奇虎科技有限公司 页面自动变灰的方法和装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6581109B1 (en) * 1999-06-24 2003-06-17 International Business Machines Corporation System to dynamically adjust image colors in client/server environment to assure accurate color reproduction
US7400334B1 (en) * 2000-09-29 2008-07-15 809, L.L.C. Use of vector graphics in paper printing and website development
US7383498B1 (en) * 2002-12-27 2008-06-03 Sap Ag Editing styles for markup documents using parametrized styles sheets
CN100551079C (zh) * 2007-09-06 2009-10-14 中兴通讯股份有限公司 一种在机顶盒上对文本焦点进行自适应着色的方法
CN102004784A (zh) * 2010-11-25 2011-04-06 北京播思软件技术有限公司 一种手持终端浏览器的节电方法
CN103399764A (zh) * 2013-07-24 2013-11-20 北京小米科技有限责任公司 界面色彩设置方法、装置和终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012149855A1 (fr) * 2011-09-30 2012-11-08 华为技术有限公司 Procédé de réglage de couleurs de page web, navigateur web et serveur de page web
CN102662672A (zh) * 2012-04-05 2012-09-12 广州市动景计算机科技有限公司 对网页进行换肤处理的方法和装置以及移动终端
CN103761079A (zh) * 2013-12-12 2014-04-30 北京奇虎科技有限公司 页面自动变灰的方法和装置

Also Published As

Publication number Publication date
CN103761079B (zh) 2017-01-18
CN103761079A (zh) 2014-04-30

Similar Documents

Publication Publication Date Title
WO2015085785A1 (fr) Procédé et appareil pour griser automatiquement une page
CN107274884B (zh) 一种基于文本解析和语音合成的信息获取方法
CN110096660B (zh) 用于加载页面图片的方法、装置和电子设备
US20140344707A1 (en) Information Distribution Method and Device
US10515142B2 (en) Method and apparatus for extracting webpage information
JP5887025B2 (ja) 情報送信方法、装置、およびシステム、端末、およびサーバ
WO2015103938A1 (fr) Procédé de chargement d'informations de commentaire d'un site web et client navigateur
WO2016070718A1 (fr) Procédé, dispositif, et navigateur, pour le téléchargement de fichiers
US9633049B2 (en) Searching apparatus, searching method, and searching system
WO2014200853A2 (fr) Détermination de données de message à présenter
CN107040584B (zh) 客户端下载图片的方法及装置
WO2014000519A1 (fr) Système et procédé pour un filtrage de mot-clé
WO2014108040A1 (fr) Procédé et appareil de présentation de contenu sur un dispositif électronique
WO2014056352A1 (fr) Procédé, dispositif et système de transcodage de page web
WO2016101732A1 (fr) Procédé de transmission d'informations de plusieurs pages et appareil de navigation de page
US10482393B2 (en) Machine-based learning systems, methods, and apparatus for interactively mapping raw data objects to recognized data objects
WO2015154682A1 (fr) Procédé de traitement de requête de réseau, serveur de réseau et système de réseau
JP5767413B1 (ja) 情報処理システム、情報処理方法、および情報処理プログラム
US9223782B2 (en) System for performing instructions that are dependent upon received media-based messages and associated methods and components
US20140085486A1 (en) Information processing terminal, information processing method, and apparatus control system
WO2016107309A1 (fr) Procédé, dispositif, et système de balayage de fichier
CN111988405B (zh) 负载均衡装置的报文重写方法及负载均衡装置
CN110636105B (zh) 树形图的获取方法和装置、存储介质、电子设备
WO2015154681A1 (fr) Procédé, dispositif et serveur permettant de générer une adresse de liaison
WO2015154678A1 (fr) Procédé et dispositif de traitement de fichiers, et système de réseau

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14869512

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14869512

Country of ref document: EP

Kind code of ref document: A1