Page display method and device

By automatically calculating and generating image cropping sizes suitable for each column, the large background image is automatically cropped into multiple small background images, which solves the problems of low automation and high operating cost of manual cropping in the existing technology, and achieves efficient Page display.

CN118673229APending Publication Date: 2024-09-20BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310250219.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the current page display, the existing technology requires designers to manually trim large background images to adapt to the different sizes of multiple columns, resulting in low automation and high operation and maintenance costs, and the lack of efficient automation solutions.

Method used

By automatically calculating and determining the image cropping size suitable for each column based on the display size of the accessed page, column data and the image size of the first image, and automatically cropping the large background image into multiple small background images, using terminal equipment and The server works together to generate and display target images.

Benefits of technology

It realizes an automated process without manual calculation of cropping, improves the efficiency and automation of page display, and reduces operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673229A
    Figure CN118673229A
Patent Text Reader

Abstract

The invention discloses a page display method and device, and relates to the technical field of computers. The specific implementation mode of the method comprises the steps that in response to page triggering operation, column data corresponding to one or more columns corresponding to an access page and a first picture corresponding to the access page are determined; according to the display size of the access page, the column data and the image size of the first image, obtaining an image clipping size matched with each column; determining a target picture corresponding to each column according to the picture clipping size; and generating an access page according to the target pictures, so as to respectively display the corresponding target pictures in one or more columns of the access page. According to the embodiment, the picture clipping size of each column can be automatically obtained, the first picture is clipped according to the picture clipping size to obtain the target picture, manual clipping by a designer is not needed, and the process of automatically clipping a large background picture into small background pictures corresponding to multiple columns and displaying the small background pictures is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for page display. Background Art

[0002] During page display, multiple different columns are usually displayed on multiple floors of the same page, and a display picture that can be used as a background picture needs to be set for each column. In order to improve the display effect, multiple consecutive pictures are usually used as background pictures for multiple columns arranged in a row to ensure the continuity of the background (for example, a large background picture is cut into multiple small pictures and displayed in multiple columns arranged in a row). In order to achieve this effect, the existing technology requires designers to manually crop the large background picture according to the size of each column, and store the cropped pictures so that they can be directly loaded and used during display. The degree of automation is low and a large amount of operation and maintenance costs are required. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method and device for page display, which can automatically obtain image cropping sizes suitable for each column according to the display size of the visited page, the column data corresponding to the visited page, and the image size of the first image, and further determine the target images corresponding to each column according to the image cropping size. There is no need for designers to manually calculate and crop, thus realizing the process of automatically cropping a large background image into small background images corresponding to multiple columns and displaying them.

[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for page display is provided.

[0005] A page display method according to an embodiment of the present invention includes: in response to a page trigger operation, determining column data respectively corresponding to one or more columns corresponding to an accessed page, and a first picture corresponding to the accessed page;

[0006] Obtaining picture cropping sizes respectively adapted to each of the columns according to the display size of the access page, the column data and the picture size of the first picture;

[0007] Determine the target images corresponding to the columns according to the cropping size of the images;

[0008] The access page is generated according to the target image, so as to display the corresponding target image in the one or more columns of the access page respectively.

[0009] Optionally, the method is applied to a terminal device, and determining the target images corresponding to each of the columns according to the image cropping size includes: generating target link addresses corresponding to each of the columns according to the link address of the first image and the image cropping size; sending the target link address to the server, so that the server crops the first image according to the target link address to obtain the target image; and receiving the target images corresponding to each of the columns sent by the server according to the target link address.

[0010] Optionally, the image cropping sizes respectively adapted to each of the columns are obtained according to the display size of the accessed page, the column data and the image size of the first image, including: determining the column sizes respectively corresponding to each of the columns according to the display size of the terminal device and the column data; and obtaining the image cropping sizes respectively corresponding to each of the columns according to the column size and the image size.

[0011] Optionally, the column data includes a column aspect ratio; determining the column sizes corresponding to each column according to the display size of the terminal device and the column data, including: using the display width in the display size as the column width in the column size; determining the column height in the column size according to the product of the column width and the aspect ratio.

[0012] Optionally, obtaining the image cropping size corresponding to each of the columns based on the column size and the image size includes: determining the sliding direction of one or more of the columns based on the column layout data in the column data; determining the image cropping size corresponding to each of the columns based on the sliding direction, the column size and the image size.

[0013] Optionally, determining the image cropping size corresponding to each of the columns according to the sliding direction, the column size and the image size includes any one of the following:

[0014] In the case where the sliding direction is vertical sliding, determining the cropping height of the picture cropping size corresponding to each of the columns according to the column height and the ratio of the width of the picture size to the column width;

[0015] When the sliding direction is horizontal sliding, the cropping width in the picture cropping size corresponding to each of the columns is determined according to the column width and the ratio of the height in the picture size to the column height.

[0016] Optionally, generating target link addresses corresponding to each of the columns according to the link address of the first image and the image cropping size includes: establishing a coordinate system in the display area corresponding to the access page; determining the image cropping size corresponding to each of the columns according to the coordinate system, the display size, the column data and the image size; and adding the image cropping size to the link address to generate target link addresses corresponding to each of the columns.

[0017] Optionally, after receiving the target images corresponding to the respective columns sent by the server according to the target link address, the method further includes: storing the target images and the target link addresses in a local cache of the terminal device in correspondence with each other;

[0018] The method of determining the target images corresponding to each of the columns according to the image cropping size also includes: generating target link addresses corresponding to each of the columns according to the link address of the first image and the image cropping size; determining whether there is a historical target link address that is the same as the target link address in the local cache; if so, obtaining a historical target image corresponding to the historical target link address in the local cache as the target image.

[0019] Optionally, generating the access page according to the target image to display the corresponding target image in the one or more columns of the access page respectively includes: scaling and displaying the target image according to a ratio of the image cropping size to the display size.

[0020] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for displaying a page is provided.

[0021] A page display device according to an embodiment of the present invention includes: a response module, which is used to determine, in response to a page trigger operation, column data corresponding to one or more columns corresponding to a visited page, and a first image corresponding to the visited page; a calculation module, which is used to obtain image cropping sizes respectively adapted to each of the columns according to a display size of the visited page, the column data and the image size of the first image; a determination module, which is used to determine target images respectively corresponding to each of the columns according to the image cropping sizes; and a display module, which is used to generate the visited page according to the target images, so as to display the corresponding target images respectively in the one or more columns of the visited page.

[0022] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device for page display is provided.

[0023] An electronic device for page display according to an embodiment of the present invention comprises: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement a method for page display according to an embodiment of the present invention.

[0024] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.

[0025] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, a page display method according to an embodiment of the present invention is implemented.

[0026] An embodiment of the above invention has the following advantages or beneficial effects: it can automatically obtain the image cropping size suitable for each column according to the display size of the visited page, the column data corresponding to the visited page and the image size of the first image, and further determine the target image corresponding to each column according to the image cropping size, without the need for designers to manually calculate and crop, thereby realizing the process of automatically cropping a large background image into small background images corresponding to multiple columns and displaying them.

[0027] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0029] Figure 1 is a flow chart of a method for page display according to an embodiment of the present invention;

[0030] Figure 2 is a schematic diagram of a process for determining a target image according to an embodiment of the present invention;

[0031] Figure 3 is a schematic diagram of a process for generating a target link address according to an embodiment of the present invention;

[0032] Figure 4 is a schematic diagram of a position for establishing a coordinate system according to an embodiment of the present invention;

[0033] Figure 5 is a schematic diagram of a process for determining a picture cropping size by a terminal device according to an embodiment of the present invention;

[0034] Figure 6 is a schematic diagram of a process for determining column size according to an embodiment of the present invention;

[0035] Figure 7is a schematic diagram of a process for determining a picture cropping size according to an embodiment of the present invention;

[0036] Figure 8 is a schematic diagram of a process for determining the cropping size of an image when sliding in different directions according to an embodiment of the present invention;

[0037] Fig. 9 is a schematic diagram of another process of determining a target image according to an embodiment of the present invention;

[0038] Fig.10 is a schematic diagram of a process for displaying a target column according to an embodiment of the present invention;

[0039] Fig.11 is a schematic diagram of main modules of a device for page display according to an embodiment of the present invention;

[0040] Fig.12 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0041] Fig.13 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0043] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.

[0044] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.

[0045] Figure 1 It is a schematic diagram of main steps of a method for page display according to an embodiment of the present invention.

[0046] like Figure 1 As shown, the page display method of the embodiment of the present invention mainly includes the following steps:

[0047] Step S101: In response to a page triggering operation, determining column data corresponding to one or more columns corresponding to an accessed page, and a first picture corresponding to the accessed page;

[0048] Step S102: obtaining the image cropping sizes suitable for each column according to the display size of the accessed page, the column data and the image size of the first image;

[0049] Step S103: determining the target pictures corresponding to the respective columns according to the picture cropping size;

[0050] Step S104: Generate an access page according to the target image, so as to display the corresponding target image in one or more columns of the access page.

[0051] The page triggering operation in step S101 may be a confirmation operation after the user inputs the URL, or a jump operation after the user clicks a link or a picture on the page, and the access page refers to the page that needs to be opened after the jump and the URL input. Usually, a access page is provided with multiple floors, each floor corresponds to one or more columns, and each column can be understood as a page area that displays different content, wherein the column data includes the content to be displayed in the column and the size requirements of the column.

[0052] It should be noted that the above steps S101 to S104 can be executed by the terminal device alone, or can be completed by the terminal device and the server interacting together. The process of interaction between the terminal device and the server is described in detail below.

[0053] In step S101, the process of responding to the page trigger operation is implemented by the terminal device. After receiving the user trigger operation, a data acquisition request can be sent to the server to obtain the column data corresponding to one or more columns corresponding to the visited page and the first picture corresponding to the visited page according to the data acquisition request.

[0054] Since the uncropped first image is usually larger, different first images correspond to different access pages, so the first image is stored on the server side and is not stored on the terminal device. In an optional embodiment, the terminal device is responsible for determining the final image cropping size based on the column data corresponding to one or more columns corresponding to the access page and the first image corresponding to the access page, and then sending the image cropping size to the server side, which crops the stored first image, and finally returns the cropped target images corresponding to each column to the terminal device for display by the terminal device.

[0055] Therefore, the process of step S103 is as follows Figure 2 As shown, specifically including:

[0056] Step S201: generating target link addresses corresponding to each column according to the link address of the first picture and the picture cropping size;

[0057] Step S202: sending the target link address to the server, so that the server cuts the first picture according to the target link address to obtain the target picture;

[0058] Step S203: receiving target images corresponding to the respective columns sent by the server according to the target link address.

[0059] Among them, the link address of the first image can be a URL (Uniform Resource Locator) indicating the storage location of the first image, such as https: / / www.jd.com / 1.png. The target link address includes both the link address of the first image and the cropping size of the image. The server can parse the target link address to obtain the cropping size, and crop it according to the cropping size, and finally generate the target images corresponding to each column.

[0060] The process of generating the target link address in step S201 can be further performed as follows: Figure 3 As shown, including:

[0061] Step S301: establishing a coordinate system in the display area corresponding to the accessed page;

[0062] Step S302: determining the image cropping size corresponding to each column according to the coordinate system, display size, column data and image size;

[0063] Step S303: Add the image cropping size to the link address to generate target link addresses corresponding to each column.

[0064] In actual application, the access page includes not only multiple columns but also a search bar at the top. In order to satisfy the display of various terminal devices of different models, the location of the coordinate system established in step S301 is as follows: Figure 4 As shown, the upper left corner of the first column is used as the coordinate origin, that is, a blank space is left above the picture to ensure that a sufficient safety area is reserved at the top. For example, when the image cropping size determined according to the coordinate system, the display size, the column data and the image size is a cropping width of 100 and a cropping height of 20, the target link address obtained by splicing is https: / / www.jd.com / 1.png?x=0&y=0&width=100&heigh=20.

[0065] By establishing the coordinate system as described above, the cropping size of the target image can be carried in the generated target link address, so that the server can receive the target link address, quickly parse it to obtain the cropping size and perform image cropping. Other coordinate system establishment methods can also be used, and the present invention is not limited to this.

[0066] The following is a detailed description of the steps for determining the image cropping size for the terminal device. Figure 5 As shown, including:

[0067] Step S501: Determine the column size corresponding to each column according to the display size of the terminal device and the column data;

[0068] Step S502: Obtain the image cropping size corresponding to each column according to the column size and the image size.

[0069] Among them, on the terminal device, the display size can be understood as the screen size of the terminal device, or the size of the partial display area of ​​the screen used for display. In actual application, in order to improve the user's visual experience, full-screen display is usually performed in the displayable area, that is, the accessed page is displayed according to the screen size, so step S501 can also be understood as determining the column size corresponding to each column according to the screen size of the terminal device and the column data.

[0070] There are many situations in the process of determining the column size. In an optional embodiment, the column data includes the column aspect ratio, that is, for some columns, they need to be displayed in a specific ratio, so step S501 can be as follows: Figure 6 As shown, including:

[0071] Step S601: using the display width in the display size as the column width in the column size;

[0072] Step S602: Determine the column height in the column size according to the product of the column width and the aspect ratio.

[0073] In another optional embodiment, there is no special restriction on the aspect ratio of the column, so the display width in the display size can still be used as the column width in the column size, and the column height in the column size is determined according to the data content length in the column data. For example, when the data content length is 50 characters, 3 lines need to be displayed on the screen, and each line of text is 0.5 cm high, so the required column height is 3 cm (including the height of the 1.5 cm blank area). When the data content length is 200 characters, 12 lines need to be displayed on the screen, and each line of text is 0.5 cm high, so the required column height is 7.5 cm (including the height of the 1.5 cm blank area).

[0074] Through the above two methods, under different display requirements of different columns, the column height can be determined based on the same column width to implement the process of step S501. As for the process of determining the image cropping size in step S502, in an optional embodiment, as Figure 7 As shown, including:

[0075] Step S701: determining the sliding direction of one or more columns according to the column layout data in the column data;

[0076] Step S702: Determine the image cropping size corresponding to each column according to the sliding direction, column size and image size.

[0077] The column layout data includes the arrangement direction of the columns (whether the columns are arranged horizontally or vertically) and the sliding direction of one or more columns. Generally speaking, the sliding directions of the columns are the same. For example, the columns can be browsed sequentially by sliding on the terminal device. For different sliding directions, the cropping method of the first image is also different. Figure 8 As shown, including:

[0078] Step S801: when the sliding direction is vertical sliding, the cropping height of the picture cropping size corresponding to each column is determined according to the column height and the ratio of the width in the picture size to the column width;

[0079] Step S802: when the sliding direction is horizontal sliding, the cropping width in the picture cropping size corresponding to each column is determined according to the column width and the ratio of the height in the picture size to the column height.

[0080] It is understandable that when the sliding direction is vertical sliding, it is necessary to ensure that the widths of the target images corresponding to the various columns are the same, and the height is cropped. When the sliding direction is horizontal sliding, it is necessary to ensure that the heights of the target images are the same, and the width is cropped. In a further optional embodiment, in order to minimize the difficulty and efficiency of cropping, the embodiment of the present invention does not choose to crop both the width and the height, but when the sliding direction is vertical sliding, the width of the first image is not cropped, and when the sliding direction is horizontal sliding, the height of the first image is not cropped. However, if actually needed, the first image can also be cropped at the same time according to the required width and height, and the present invention does not limit this.

[0081] In a further optional embodiment, after receiving the target images corresponding to the respective columns sent by the server according to the target link address in step S203, the terminal device can store the target images and the target link addresses in the local cache in correspondence, so that step S103 can be performed as follows. Fig. 9As shown, including:

[0082] Step S901: Generate target link addresses corresponding to each column according to the link address of the first picture and the picture cropping size;

[0083] Step S902: Determine whether there is a historical target link address that is the same as the target link address in the local cache;

[0084] If yes, execute step S903: obtain the historical target picture corresponding to the historical target link address in the local cache as the target picture;

[0085] If not, execute step S904: send the target link address to the server.

[0086] That is, after the target link address is generated, it is first determined whether there is the same historical target link address in the cache. If yes, it means that the first image has been cropped in the past and stored in the local cache of the terminal device, and the target image can be directly obtained from the cache. If not, the process of sending the target link address to the server is executed to obtain the target image from the server.

[0087] In a further optional embodiment, after the terminal device acquires the target image, the process of generating the access page in step S104 further includes: scaling the target image for display according to the ratio of the image cropping size to the display size.

[0088] In actual application, due to the limited screen size of the terminal device, it is impossible to display all the columns of the access page at one time. Therefore, in a further optional embodiment, Fig.10 As shown, including:

[0089] Step S1001: Determine the target column currently displayed according to the screen size;

[0090] Step S1002: for each target column, executing the step of determining the target pictures corresponding to each column according to the picture cropping size.

[0091] Through the above process, the corresponding target image can be obtained only for the target column currently displayed, reducing unnecessary data calculation. It can be understood that when the user scrolls the screen, the target column will also change. In another optional embodiment, the target images of all columns of the visited page can also be obtained at one time, and can be directly loaded when they need to be displayed.

[0092] According to the page display method of the embodiment of the present invention, the image cropping size suitable for each column can be automatically obtained according to the display size of the visited page, the column data corresponding to the visited page and the image size of the first image, and the target image corresponding to each column can be further determined according to the image cropping size. There is no need for designers to manually calculate and crop, thus realizing the process of automatically cropping a large background image into small background images corresponding to multiple columns and displaying them.

[0093] Fig.11 4 is a schematic diagram of main modules of a device for page display according to an embodiment of the present invention.

[0094] like Fig.11 As shown, the device 1100 for displaying a page according to an embodiment of the present invention includes:

[0095] A response module 1101 is used to determine, in response to a page trigger operation, column data corresponding to one or more columns corresponding to a visited page, and a first picture corresponding to the visited page;

[0096] A calculation module 1102, configured to obtain image cropping sizes respectively adapted to each of the columns according to the display size of the accessed page, the column data and the image size of the first image;

[0097] A determination module 1103, configured to determine target images corresponding to the respective columns according to the image cropping size;

[0098] The display module 1104 is used to generate the access page according to the target image, so as to display the corresponding target image in the one or more columns of the access page.

[0099] In an optional embodiment of the present invention, the page display device 1100 is applied to a terminal device, and the determination module 1103 is also used to generate target link addresses corresponding to each of the columns according to the link address of the first image and the image cropping size; send the target link address to the server so that the server crops the first image according to the target link address to obtain the target image; and receive the target images corresponding to each of the columns sent by the server according to the target link address.

[0100] In an optional embodiment of the present invention, the calculation module 1102 is also used to determine the column size corresponding to each of the columns according to the display size of the terminal device and the column data; and obtain the image cropping size corresponding to each of the columns according to the column size and the image size.

[0101] In an optional embodiment of the present invention, the column data includes a column aspect ratio; the calculation module 1102 is further used to use the display width in the display size as the column width in the column size; and determine the column height in the column size based on the product of the column width and the aspect ratio.

[0102] In an optional embodiment of the present invention, the calculation module 1102 is also used to determine the sliding direction of one or more of the columns based on the column layout data in the column data; and determine the image cropping size corresponding to each of the columns based on the sliding direction, the column size and the image size.

[0103] In an optional embodiment of the present invention, the calculation module 1102 is also used to determine the cropping height of the image cropping size corresponding to each of the columns according to the column height and the ratio of the width of the image size to the column width when the sliding direction is vertical sliding; and determine the cropping width of the image cropping size corresponding to each of the columns according to the column width and the ratio of the height of the image size to the column height when the sliding direction is horizontal sliding.

[0104] In an optional embodiment of the present invention, the determination module 1103 is also used to establish a coordinate system in the display area corresponding to the access page with the upper left corner of the first column in the access page as the coordinate origin; determine the image cropping size corresponding to each of the columns according to the coordinate system, the display size, the column data and the image size; add the image cropping size to the link address to generate the target link address corresponding to each of the columns.

[0105] In an optional embodiment of the present invention, the device 1100 also includes a storage module, which is used to store the target images and the target link addresses in a local cache of the terminal device after the receiving server sends the target images corresponding to the respective columns according to the target link address; the determination module 1103 is also used to generate the target link addresses corresponding to the respective columns according to the link address of the first image and the image cropping size; determine whether there is a historical target link address that is the same as the target link address in the local cache; if so, obtain the historical target image corresponding to the historical target link address in the local cache as the target image.

[0106] In an optional embodiment of the present invention, the display module 1104 is further configured to display the target image in a scaled manner according to a ratio between the image cropping size and the display size.

[0107] According to the page display device of the embodiment of the present invention, the image cropping size suitable for each column can be automatically obtained according to the display size of the visited page, the column data corresponding to the visited page and the image size of the first image, and the target image corresponding to each column can be further determined according to the image cropping size. There is no need for designers to manually calculate and crop, thus realizing the process of automatically cropping a large background image into small background images corresponding to multiple columns and displaying them.

[0108] Fig.12 An exemplary system architecture 1200 is shown to which the method or apparatus for page display according to an embodiment of the present invention may be applied.

[0109] like Fig.12 As shown, the system architecture 1200 may include terminal devices 1201, 1202, 1203, a network 1204, and a server 1205. The network 1204 is used to provide a medium for communication links between the terminal devices 1201, 1202, 1203 and the server 1205. The network 1204 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0110] Users can use terminal devices 1201, 1202, 1203 to interact with server 1205 through network 1204 to receive or send data, etc. Various communication client applications can be installed on terminal devices 1201, 1202, 1203, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0111] The terminal devices 1201 , 1202 , and 1203 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0112] The server 1205 may be a server that provides various services, such as a background management server that provides support for the target link addresses sent by the user using the terminal devices 1201, 1202, and 1203. The background management server may perform analysis and other processing on the received target link addresses and other data, and feed back the processing results (such as the target image) to the terminal device.

[0113] It should be noted that the page display method provided in the embodiment of the present invention is generally executed by the terminal devices 1201 , 1202 , and 1203 , and accordingly, the page display apparatus is generally arranged in the terminal devices 1201 , 1202 , and 1203 .

[0114] It should be understood that Fig.12The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0115] Reference below Fig.13 , which shows a schematic diagram of the structure of a computer system 1300 of a terminal device suitable for implementing an embodiment of the present invention. Fig.13 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0116] like Fig.13 As shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a storage part 1308 into a random access memory (RAM) 1303. In the RAM 1303, various programs and data required for the operation of the system 1300 are also stored. The CPU 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) first interface 1305 is also connected to the bus 1304.

[0117] The following components are connected to the I / O first interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network first interface card such as a LAN card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O first interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed, so that a computer program read therefrom is installed into the storage section 1308 as needed.

[0118] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1309, and / or installed from the removable medium 1311. When the computer program is executed by the central processing unit (CPU) 1301, the above-mentioned functions defined in the system of the present invention are executed.

[0119] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a response module, a calculation module, a determination module, and a display module. The names of these modules do not constitute a limitation on the modules themselves in some cases. For example, the response module may also be described as "a module that determines, in response to a page trigger operation, column data corresponding to one or more columns corresponding to the accessed page, and a first picture corresponding to the accessed page".

[0122] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: in response to a page trigger operation, determining the column data corresponding to one or more columns corresponding to the access page, and the first picture corresponding to the access page; according to the display size of the access page, the column data and the picture size of the first picture, obtaining the picture cropping size respectively adapted to each of the columns; according to the picture cropping size, determining the target picture corresponding to each of the columns; generating the access page according to the target picture, so as to display the corresponding target picture in the one or more columns of the access page.

[0123] According to the technical solution of the embodiment of the present invention, the image cropping sizes suitable for each column can be automatically obtained according to the display size of the visited page, the column data corresponding to the visited page and the image size of the first image, and the target images corresponding to each column can be further determined according to the image cropping sizes. There is no need for designers to manually calculate and crop, thus realizing the process of automatically cropping a large background image into small background images corresponding to multiple columns and displaying them.

[0124] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for displaying a page. It is characterized in that include: In response to a page triggering operation, determining column data corresponding to one or more columns corresponding to the accessed page, and a first picture corresponding to the accessed page; Obtaining picture cropping sizes respectively adapted to each of the columns according to the display size of the access page, the column data and the picture size of the first picture; Determine the target images corresponding to the columns according to the cropping size of the images; The access page is generated according to the target image, so as to display the corresponding target image in the one or more columns of the access page respectively.

2. The method according to claim 1, It is characterized in that Applied to a terminal device, determining the target images corresponding to the respective columns according to the image cropping size includes: Generate target link addresses corresponding to the columns according to the link address of the first picture and the cropping size of the picture; Sending the target link address to the server, so that the server cuts the first picture according to the target link address to obtain the target picture; Receive target pictures corresponding to each of the columns respectively sent by the server according to the target link address.

3. The method according to claim 2, It is characterized in that The obtaining, according to the display size of the access page, the column data and the image size of the first image, image cropping sizes respectively adapted to each of the columns comprises: Determine the column size corresponding to each of the columns according to the display size of the terminal device and the column data; According to the column size and the picture size, the picture cropping size corresponding to each column is obtained.

4. The method according to claim 3, It is characterized in that The column data includes a column aspect ratio; and determining the column sizes corresponding to the columns according to the display size of the terminal device and the column data, including: Using the display width in the display size as the column width in the column size; The column height in the column size is determined according to the product of the column width and the aspect ratio.

5. The method according to claim 3, It is characterized in that The step of obtaining the image cropping size corresponding to each column according to the column size and the image size includes: Determining a sliding direction of one or more of the columns according to the column layout data in the column data; The image cropping sizes corresponding to the respective columns are determined according to the sliding direction, the column size and the image size.

6. The method according to claim 5, It is characterized in that Determining the image cropping size corresponding to each of the columns according to the sliding direction, the column size, and the image size includes any one of the following: In the case where the sliding direction is vertical sliding, determining the cropping height of the picture cropping size corresponding to each of the columns according to the column height and the ratio of the width of the picture size to the column width; When the sliding direction is horizontal sliding, the cropping width in the picture cropping size corresponding to each of the columns is determined according to the column width and the ratio of the height in the picture size to the column height.

7. The method according to claim 3, It is characterized in that Generating target link addresses corresponding to the columns respectively according to the link address of the first picture and the cropping size of the picture includes: Establishing a coordinate system in the display area corresponding to the accessed page; Determine the image cropping size corresponding to each of the columns according to the coordinate system, the display size, the column data and the image size; The image cropping size is added to the link address to generate target link addresses corresponding to each of the columns.

8. The method according to claim 2, It is characterized in that After receiving the target pictures corresponding to the respective columns sent by the server according to the target link address, the method further includes: storing the target image and the target link address in a local cache of the terminal device in correspondence; Determining the target images corresponding to the columns according to the image cropping size also includes: Generate target link addresses corresponding to the columns according to the link address of the first picture and the cropping size of the picture; Determining whether there is a historical target link address identical to the target link address in the local cache; If yes, the historical target picture corresponding to the historical target link address is obtained from the local cache as the target picture.

9. The method according to claim 1, It is characterized in that Generating the access page according to the target image so as to display the corresponding target image in the one or more columns of the access page respectively includes: The target image is scaled and displayed according to the ratio of the image cropping size to the display size.

10. A device for displaying a page, It is characterized in that include: A response module, configured to determine, in response to a page trigger operation, column data corresponding to one or more columns corresponding to the accessed page, and a first picture corresponding to the accessed page; A calculation module, used for obtaining the image cropping size suitable for each of the columns according to the display size of the access page, the column data and the image size of the first image; A determination module, used to determine the target pictures corresponding to the respective columns according to the picture cropping size; A display module is used to generate the access page according to the target image, so as to display the corresponding target image in the one or more columns of the access page.

11. An electronic device for page display, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.

12. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Method and device for displaying detail information of target object

    CN106330814A

  • Webpage picture quick self-adaptive output system and method

    CN111400626A

  • Configuration method and display method and device of advertisement position floors, medium and equipment

    CN111445288A

  • Photo Selection for Mobile Devices

    US20130147845A1