A picture display method and device, computer equipment and mobile terminal

By performing tiered compression and transmission based on network speed and image size, the problem of poor image display on mobile devices when the network is poor is solved, enabling fast image rendering and smooth display, thus improving the user experience.

CN116320656BActive Publication Date: 2026-05-29GREE ELECTRIC APPLIANCE INC OF ZHUHAI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2023-02-10
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

When mobile devices have poor network conditions, images are not displayed well, affecting the user experience. Existing technologies are unable to effectively solve the uncertainty of network factors on image transmission and rendering.

Method used

Based on network speed, quality, and image size, the system dynamically adjusts image compression and transmission methods, optimizes image display smoothness in real time, and improves user experience through progressive display.

Benefits of technology

When network quality is poor, it enables fast rendering and smooth display of images, improving the user's image browsing experience and avoiding abrupt loading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320656B_ABST
    Figure CN116320656B_ABST
Patent Text Reader

Abstract

The application provides a picture display method, device, computer equipment and mobile terminal, the method comprises the following steps: acquiring the network speed of the mobile terminal, and performing network speed quality grading based on the network speed; acquiring the picture size of a picture to be transmitted, and performing picture grading based on the picture size; compressing the picture to be transmitted based on the network speed quality grading and the picture grading, and displaying the compressed picture. The method provided by the application can acquire the current network type and network speed quality of the mobile equipment in real time, transmit the corresponding picture data according to different network quality levels and picture size levels, dynamically change the size, speed and rendering mode of picture transmission, so that the picture can be smoothly and naturally transmitted and rendered when the network quality is poor, and the experience of the user when browsing the picture is improved through progressive display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of display technology, and in particular to an image display method, apparatus, computer equipment, and mobile terminal. Background Technology

[0002] With the continuous development of display technology, mobile devices such as smartphones have extremely high resolution and excellent color display capabilities. On this basis, configuring a high refresh rate can provide a better viewing experience when browsing text, pictures, and videos.

[0003] However, the display quality on various devices is constrained by network type and speed. Various network factors affect the speed at which image data is transmitted to mobile devices and the rendering effect. The uncontrollable variations in network type and speed make image display time and rendering methods inconsistent and unpredictable. For example, if loading fails to complete, only a blank screen or a portion of the top or left side may be displayed, resulting in poor display quality, long waiting times, and negatively impacting the user experience of apps or websites. Summary of the Invention

[0004] To address the issue of poor image display on existing mobile terminals when the network is weak, this application provides an image display method, apparatus, computer device, and mobile terminal that can compress and transmit images according to network speed and quality and image size adaptability, thereby improving the smoothness of image display and user satisfaction.

[0005] On the one hand, an image display method is provided, the method comprising:

[0006] Obtain the network speed of the mobile terminal and classify the network speed quality based on the network speed;

[0007] Obtain the image size of the image to be transmitted, and classify the image based on the image size;

[0008] Based on the network speed quality classification and the image classification, the image to be transmitted is compressed, and the compressed image is transmitted for display.

[0009] In some embodiments, the process of classifying network speed quality based on the network speed includes:

[0010] Based on the network speed and a preset network speed threshold, the network speed quality is classified into low, medium, or high levels.

[0011] In some embodiments, obtaining the network speed of the mobile terminal and performing network speed quality grading based on the network speed includes:

[0012] The network type and network speed of the mobile terminal are obtained, and the network speed quality is graded based on the network type and network speed.

[0013] In some embodiments, compressing the image to be transmitted based on the network speed quality rating and the image rating includes:

[0014] Based on the preset compression correspondence, the network speed quality classification, and the image classification, the image to be transmitted is compressed;

[0015] The image grading includes small images, medium images, and large images; the network speed quality grading includes low, medium, and high.

[0016] The compression correspondence includes:

[0017] If the network speed quality is rated as high, then the image to be transmitted will not be compressed.

[0018] If the network speed quality is rated as medium, then the large image will be compressed, but the medium and small images will not be compressed.

[0019] If the network speed quality is low, then the large and medium-sized images will be compressed separately, but the small images will not be compressed.

[0020] In some embodiments, after transmitting the compressed image, the method further includes:

[0021] Transmit the uncompressed image to be transmitted and render and display it until the transmission of the uncompressed image to be transmitted is complete.

[0022] On the other hand, an apparatus is provided, the apparatus comprising:

[0023] The network speed quality classification module is used to obtain the network speed of the mobile terminal and classify the network speed quality based on the network speed.

[0024] The image classification module is used to obtain the image size of the image to be transmitted and classify the image based on the image size;

[0025] The image compression module is used to compress the image to be transmitted based on the network speed quality rating and the image rating, and then transmit the compressed image for display.

[0026] In some embodiments, the network speed quality grading module is specifically used for:

[0027] Based on the network speed and a preset network speed threshold, network speed quality is classified into low, medium, or high levels.

[0028] In some embodiments, the network speed quality grading module is specifically used for:

[0029] The network type and network speed of the mobile terminal are obtained, and the network speed quality is graded based on the network type and network speed.

[0030] In some embodiments, the image compression module is specifically used for:

[0031] Based on the preset compression correspondence, the network speed quality classification, and the image classification, the image to be transmitted is compressed;

[0032] The image grading includes small images, medium images, and large images; the network speed quality grading includes low, medium, and high.

[0033] The compression correspondence includes:

[0034] If the network speed quality is rated as high, then the image to be transmitted will not be compressed.

[0035] If the network speed quality is rated as medium, then the large image will be compressed, but the medium and small images will not be compressed.

[0036] If the network speed quality is low, then the large and medium-sized images will be compressed separately, but the small images will not be compressed.

[0037] In some embodiments, the image display device further includes an image transmission module, configured to:

[0038] Transmit the uncompressed image to be transmitted, and display it after the image has been transmitted.

[0039] On the other hand, a computer device is provided, which includes a processor and a memory. The memory stores at least one instruction, at least one program, code set, or instruction set. The processor can load and execute at least one instruction, at least one program, code set, or instruction set to implement the image display method provided in the above-mentioned embodiments.

[0040] On the other hand, a mobile terminal is provided, including the computer device described above.

[0041] On the other hand, a computer-readable storage medium is provided, which stores at least one instruction, at least one program, code set, or instruction set. A processor can load and execute at least one instruction, at least one program, code set, or instruction set to implement the image display method provided in the embodiments of this application.

[0042] On the other hand, a computer program product or computer program is provided, which includes computer program instructions stored in a computer-readable storage medium. A processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the image display methods described in the above embodiments.

[0043] The beneficial effects of the technical solution provided in this application include at least the following: Embodiments of this invention provide an image display method, apparatus, computer device, and mobile terminal. The method includes obtaining the network speed of the mobile terminal and classifying the network speed quality based on the network speed; obtaining the image size of the image to be transmitted and classifying the image based on the image size; compressing the image to be transmitted based on the network speed quality classification and the image classification, and transmitting the compressed image for display. The method provided by embodiments of this invention can obtain the current network type and network speed quality of the mobile device in real time, and transmit corresponding image data according to different network quality levels and image size levels, dynamically changing the image transmission size, speed, and rendering method. In cases of poor real-time network quality, compressed images are transmitted first to ensure that the image displayed initially is rendered and displayed quickly. This method can change the original rigid loading mode from top to bottom or left to right, enabling images to be transmitted and rendered smoothly and naturally even when network quality is poor, improving the user's image browsing experience through progressive display. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 This illustration shows a schematic diagram of the implementation flow of an image display method provided in an exemplary embodiment of this application;

[0046] Figure 2 This illustration shows an application process diagram of an image display method provided by an exemplary embodiment of this application;

[0047] Figure 3 This illustration shows another implementation flow diagram of an image display method provided in an exemplary embodiment of this application;

[0048] Figure 4 This invention provides a structural diagram of an image display device according to an exemplary embodiment of the present application.

[0049] Figure 5 This illustration shows a schematic diagram of the structure of a computer device corresponding to an image display method provided in an exemplary embodiment of this application. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0051] The image display method provided in this application can compress and transmit images according to network speed and quality and image size adaptability, thereby improving the smoothness of image display and user satisfaction.

[0052] Example 1

[0053] Figure 1 The diagram illustrates the implementation flow of an image display method provided by an embodiment of the present invention.

[0054] See Figure 1 The image display method provided in this embodiment of the invention may include steps 101 to 103.

[0055] Step 101: Obtain the network speed of the mobile terminal and classify the network speed quality based on the network speed.

[0056] In some embodiments, step 101 includes:

[0057] Based on the network speed and a preset network speed threshold, the network speed quality is classified into low, medium, or high levels.

[0058] In some embodiments, the network speed quality of the current mobile device is obtained based on the system API of the mobile device or the native API of the APP, and the network speed quality is divided into 5 levels according to the downlink network speed quality. Optionally, the higher the level, the worse the network speed quality. For example, when the actual downlink network speed is 0 to 100kb / s, the network speed quality is level L5, which is extremely poor; when the actual downlink network speed is 100kb / s to 200kb / s, the network speed quality is level L4, which is relatively poor; when the actual downlink network speed is 200kb / s to 500kb / s, the network speed quality is level L3, which is average; when the actual downlink network speed is 500kb / s to 1M / s, the network speed quality is level L2, which is good; and when the actual downlink network speed is greater than 1M / s, the network speed quality is level L1, which is extremely fast.

[0059] In some other embodiments, step 101 includes:

[0060] The network type and network speed of the mobile terminal are obtained, and the network speed quality is graded based on the network type and network speed.

[0061] Specifically, the network speed quality classification based on the network type and network speed includes:

[0062] If the network type is 3G or below mobile network, the network speed quality will be classified as low.

[0063] If the network type is a WIFI network or a 4G or higher mobile network, the network speed quality will be classified as medium or high based on the network speed and a preset network speed threshold.

[0064] In a specific example, after a mobile device connects to the network, the system obtains the network type in real time based on the mobile device's system application programming interface (API) or the APP's native API, determining whether the network is a Wi-Fi network or a mobile network, and also detecting the network speed.

[0065] Step 102: Obtain the image size of the image to be transmitted, and classify the image based on the image size.

[0066] In some embodiments, images are divided into three levels based on the size of the image to be transmitted and displayed. Optionally, a higher level indicates lower image resolution. For example, when the image size is between 1kb and 500kb, the image size level is A3, indicating a small image file; when the image size is between 500kb and 2MB, the image size level is A2, indicating a standard image file; and when the image size is greater than 2MB, the image size level is A1, indicating a high-definition image file.

[0067] Step 103: Based on the network speed quality classification and the image classification, compress the image to be transmitted, and transmit the compressed image for display.

[0068] In some embodiments, step 103 includes:

[0069] Based on the preset compression correspondence, the network speed quality classification, and the image classification, the image to be transmitted is compressed;

[0070] The image grading includes small images, medium images, and large images; the network speed quality grading includes low, medium, and high.

[0071] In a specific example, a small image corresponds to an A3 image size rating, a medium image corresponds to an A2 image size rating, and a large image corresponds to an A1 image size rating.

[0072] The compression correspondence includes:

[0073] If the network speed quality is rated as high, then the image to be transmitted will not be compressed.

[0074] If the network speed quality is rated as medium, then the large image will be compressed, but the medium and small images will not be compressed.

[0075] If the network speed quality is low, then the large and medium-sized images will be compressed separately, but the small images will not be compressed.

[0076] In some embodiments, the method provided by the present invention may further include:

[0077] Transmit the uncompressed image to be transmitted and render and display it until the transmission of the uncompressed image to be transmitted is complete.

[0078] Figure 2 The diagram illustrates the application process of the image display method provided in an embodiment of the present invention.

[0079] See Figure 2 In some embodiments, high-definition images are first compressed and displayed at a low resolution. As the image data is continuously transmitted, the resolution is gradually improved until the final rendering and display are completed.

[0080] In a specific example, if the current network is determined to be a mobile network, specifically a 3G or lower speed mobile network, the backend will mark the network speed quality of the current mobile device as Level L5 in real time. When a request is made for a large image file (A1 or A2 level), the image file is first compressed to A3 level, and the compressed image file is displayed first. Subsequent transmissions will continue to display high-resolution images. When a request is made for a small image file (A3 level), it is transmitted and displayed directly without compression.

[0081] In a specific example, if the current network is determined to be a Wi-Fi network or a 4G, 5G or higher mobile network, then the current network speed and quality are further assessed.

[0082] If the current downlink speed corresponds to a network quality level of L5 or L4, then when a request is made for a large image file of A1 or A2 quality level, the image file is first compressed to A3 quality level, and the compressed image file is displayed first. Subsequent transmissions continue to display high-resolution images. When a request is made for a small image file of A3 quality level, it is transmitted and displayed directly without compression.

[0083] If the current downlink speed corresponds to a network quality level of L3, then when a request for a high-definition image of level A1 is made, the image is compressed to level A2 for transmission, and the compressed image file is displayed first, followed by continuous transmission to display high-definition images; when a request for a medium-sized image of level A2 is made, the image is compressed to level A3 for transmission, and the compressed image file is displayed first, followed by continuous transmission to display images with higher clarity; when a request for a small image of level A3 is made, no compression is performed, and the image is transmitted and displayed directly.

[0084] If the current downlink network speed quality level is determined to be L2 or L1, then no compression is required for any type of image; they can be transmitted and displayed directly.

[0085] In another specific example, instead of determining the type of network, we can directly determine the network speed quality level, and then determine the specific method of image transmission and display based on the network speed quality level and the image size.

[0086] If the current downlink speed corresponds to a network quality level of L5 or L4, then when a request is made for a large image file of A1 or A2 quality level, the image file is first compressed to A3 quality level, and the compressed image file is displayed first. Subsequent transmissions continue to display high-resolution images. When a request is made for a small image file of A3 quality level, it is transmitted and displayed directly without compression.

[0087] If the current downlink speed corresponds to a network quality level of L3, then when a request for a high-definition image of level A1 is made, the image is compressed to level A2 for transmission, and the compressed image file is displayed first, followed by continuous transmission to display high-definition images; when a request for a medium-sized image of level A2 is made, the image is compressed to level A3 for transmission, and the compressed image file is displayed first, followed by continuous transmission to display images with higher clarity; when a request for a small image of level A3 is made, no compression is performed, and the image is transmitted and displayed directly.

[0088] If the current downlink network speed quality level is determined to be L2 or L1, then no compression is required for any type of image; they can be transmitted and displayed directly.

[0089] The image display method provided in this invention can obtain the current network type and speed quality of the mobile device in real time, and transmit corresponding image data in stages according to different network quality levels and image size levels, dynamically changing the image transmission size, speed, and rendering method. In cases of poor real-time network quality, compressed images are transmitted first to ensure rapid rendering and display of the first image. This method changes the original rigid loading mode from top to bottom or left to right, allowing images to be transmitted and rendered smoothly and naturally even with poor network quality, improving the user experience when browsing images through progressive display.

[0090] Example 2

[0091] Figure 3 This diagram illustrates another implementation flow of the image display method provided in an embodiment of the present invention.

[0092] See Figure 3 In a specific example, the image display method provided in this embodiment of the invention is implemented as follows.

[0093] After the mobile device connects to the network, the network type is obtained in real time, and the network type is determined to be Wi-Fi network, 4G and above network, or 3G and below network.

[0094] At the same time, the images to be transmitted are classified into different levels according to their size and quality. A3 level images are the smallest, corresponding to 1kb to 500kb; A2 level images are medium, corresponding to 500kb to 2M; and A1 level images are the largest, corresponding to 2M to 100M.

[0095] Furthermore, based on the differentiation of network types, network speed quality is classified into different levels.

[0096] Specifically, if the network type is 3G or below, the network speed and quality level will be marked as L5, corresponding to a speed of 0 to 100 kb / s. For A1 and A2 level images, they will be compressed to A3 level for transmission and display, and image data will be continuously transmitted for image rendering until a complete uncompressed image is rendered.

[0097] If the network type is Wi-Fi, 4G, or 5G, then network speed quality will be graded.

[0098] Specifically, speeds from 0 to 100 kb / s are classified as Level L5, and speeds from 100 kb / s to 200 kb / s are classified as Level L4. If the requested image is at Level A1 or A2, the image is compressed while continuously transmitting image data for rendering until a complete, uncompressed image is rendered. If the requested image is at Level A3, no compression is performed, and data is transmitted and displayed directly.

[0099] The speed range of 200kb / s to 500kb / s is classified as L3. If the requested image is at level A1, it will be compressed to level A2 while continuously transmitting image data for rendering until a complete, uncompressed image is rendered. If the requested image is at level A2 or A3, it will be transmitted and displayed directly without compression.

[0100] The speeds from 500kb / s to 1M / s are classified as L2, and the speeds from 1M / s to 100M / s are classified as L1. At this speed level, the network quality is relatively good, and images at the A1, A2, and A3 levels are not compressed and are directly transmitted, rendered, and displayed.

[0101] In summary, the image display method provided by this invention can obtain the current network type and speed quality of the mobile device in real time. If the network quality is poor, when the mobile device sends an image request, the background automatically reduces the image transmission size, lowers the size and quality of the initially displayed image, allows the image to occupy the corresponding position first, and then performs progressive image rendering, gradually improving the image quality. After the complete image data transmission is completed, the optimal image is seamlessly switched for display, achieving a better user browsing experience.

[0102] Example 3

[0103] Figure 4 A schematic diagram of the image display device provided in an embodiment of the present invention is shown.

[0104] See Figure 4 The image display device provided in this embodiment of the invention may include:

[0105] The network speed quality classification module 201 is used to obtain the network speed of the mobile terminal and classify the network speed quality based on the network speed.

[0106] Image classification module 202 is used to obtain the image size of the image to be transmitted and classify the image based on the image size;

[0107] Image compression module 203 is used to compress the image to be transmitted based on the network speed quality classification and the image classification, and then transmit the compressed image for display.

[0108] In some embodiments, the network speed quality grading module 201 is specifically used for:

[0109] Based on the network speed and a preset network speed threshold, network speed quality is classified into low, medium, or high levels.

[0110] In some embodiments, the network speed quality grading module 201 is specifically used for:

[0111] The network type and network speed of the mobile terminal are obtained, and the network speed quality is graded based on the network type and network speed.

[0112] In some embodiments, the network speed quality grading module 201 is specifically used for:

[0113] If the network type is 3G or below mobile network, the network speed quality will be classified as low.

[0114] If the network type is a WIFI network or a 4G or higher mobile network, the network speed quality will be classified as medium or high based on the network speed and a preset network speed threshold.

[0115] In some embodiments, the image compression module 203 is specifically used for:

[0116] Based on the preset compression correspondence, the network speed quality classification, and the image classification, the image to be transmitted is compressed;

[0117] The image grading includes small images, medium images, and large images; the network speed quality grading includes low, medium, and high.

[0118] The compression correspondence includes:

[0119] If the network speed quality is rated as high, then the image to be transmitted will not be compressed.

[0120] If the network speed quality is rated as medium, then the large image will be compressed, but the medium and small images will not be compressed.

[0121] If the network speed quality is low, then the large and medium-sized images will be compressed separately, but the small images will not be compressed.

[0122] In some embodiments, the image display device further includes an image transmission module, configured to:

[0123] Transmit the uncompressed image to be transmitted and render and display it until the transmission of the uncompressed image to be transmitted is complete.

[0124] In summary, the device provided in this embodiment of the invention can obtain the current network type and network speed quality of the mobile device in real time, and transmit corresponding image data in stages according to different network quality levels and image size levels, dynamically changing the image transmission size, speed, and rendering method. When the real-time network quality is poor, compressed images are transmitted first to ensure that the first image displayed is rendered quickly. This method can change the original rigid loading mode from top to bottom or left to right, enabling images to be transmitted and rendered smoothly and naturally even when the network quality is poor, improving the user's image browsing experience through progressive display.

[0125] Example 4

[0126] Figure 5 This application shows a schematic diagram of the structure of a computer device provided in an exemplary embodiment, the computer device comprising:

[0127] The processor 301 includes one or more processing cores. The processor 301 executes various functional applications and data processing by running software programs and modules.

[0128] The receiver 302 and transmitter 303 can be implemented as a communication component, which can be a communication chip. Optionally, this communication component can include signal transmission functionality. That is, the transmitter 303 can be used to transmit control signals to the image acquisition device and the scanning device, and the receiver 302 can be used to receive corresponding feedback commands.

[0129] The memory 304 is connected to the processor 301 via the bus 305.

[0130] The memory 304 can be used to store at least one instruction, and the processor 301 is used to execute the at least one instruction to implement steps 101 to 102 in the above-described embodiment of the steam oven control method.

[0131] Those skilled in the art will understand that Figure 5 This is merely an example of a computer device and does not constitute a limitation on the computer device. It may include more or fewer components than shown, or combine certain components, or different components. For example, the computer device may also include network access devices, etc.

[0132] The processor 301 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0133] The memory 304 can be an internal storage unit of the computer device, such as a hard drive or RAM. The memory 304 can also be an external storage device of the computer device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 304 can include both internal and external storage units. The memory 304 is used to store the computer program and other programs and data required by the terminal device. The memory 304 can also be used to temporarily store data that has been output or will be output.

[0134] Example 5

[0135] This application also provides a mobile terminal, including the computer device described above.

[0136] In some embodiments, the mobile terminal may include, but is not limited to, devices such as mobile phones, tablets, and laptops.

[0137] Example 6

[0138] This application also provides a computer-readable storage medium storing at least one instruction, at least one program, code set, or instruction set, which can be loaded and executed by a processor to implement the above-described image display method.

[0139] Optionally, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).

[0140] Example 7

[0141] This application also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the image display methods described in the above embodiments.

[0142] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the implementation.

[0143] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0144] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0145] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0146] The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0147] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A method for displaying an image, characterized in that, The method includes: Obtain the network speed of the mobile terminal and classify the network speed quality based on the network speed; Obtain the image size of the image to be transmitted, and classify the image based on the image size; Based on the preset compression correspondence, the network speed quality classification, and the image classification, the image to be transmitted is compressed; The image grading includes small images, medium images, and large images; the network speed quality grading includes low, medium, and high. The compression correspondence includes: If the network speed quality is rated as high, then the image to be transmitted will not be compressed. If the network speed quality is rated as medium, then the large image will be compressed, but the medium and small images will not be compressed. If the network speed quality is low, then the large and medium-sized images will be compressed separately, but the small images will not be compressed. When the network speed quality is classified as high, medium or low, and the image to be transmitted is not compressed, the image to be transmitted and displayed directly. When the network speed quality is classified as medium or low, and the image to be transmitted is compressed, the compressed image is transmitted and displayed, occupying the corresponding position. After the compressed image is displayed, the uncompressed image to be transmitted is continuously transmitted, and progressive rendering and display are performed, gradually improving the quality of the displayed image until the transmission of the uncompressed image to be transmitted is completed.

2. The method according to claim 1, characterized in that, The process of classifying network speed quality based on the network speed includes: Based on the network speed and a preset network speed threshold, the network speed quality is classified into low, medium, or high levels.

3. The method according to claim 1, characterized in that, The process of obtaining the network speed of the mobile terminal and classifying the network speed quality based on the network speed includes: The network type and network speed of the mobile terminal are obtained, and the network speed quality is graded based on the network type and network speed.

4. An image display device, characterized in that, The device includes: The network speed quality classification module is used to obtain the network speed of the mobile terminal and classify the network speed quality based on the network speed. The image classification module is used to obtain the image size of the image to be transmitted and classify the image based on the image size; The image compression module is used to compress the image to be transmitted based on a preset compression correspondence, the network speed quality classification, and the image classification. The image grading includes small images, medium images, and large images; the network speed quality grading includes low, medium, and high. The compression correspondence includes: If the network speed quality is rated as high, then the image to be transmitted will not be compressed. If the network speed quality is rated as medium, then the large image will be compressed, but the medium and small images will not be compressed. If the network speed quality is low, then the large and medium-sized images will be compressed separately, but the small images will not be compressed. When the network speed quality is classified as high, medium or low, and the image to be transmitted is not compressed, the image to be transmitted and displayed directly. When the network speed quality is classified as medium or low, and the image to be transmitted is compressed, the compressed image is transmitted and displayed, occupying the corresponding position. After the compressed image is displayed, the uncompressed image to be transmitted is continuously transmitted, and progressive rendering and display are performed, gradually improving the quality of the displayed image until the transmission of the uncompressed image to be transmitted is completed.

5. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one instruction, the at least one instruction being loaded and executed by the processor to implement the image display method as described in any one of claims 1 to 3.

6. A mobile terminal, characterized in that, Includes the computer device as described in claim 5.

7. A computer-readable storage medium, characterized in that, The readable storage medium stores at least one instruction, which is loaded and executed by a processor to implement the image display method as described in any one of claims 1 to 3.