Terminal picture processing method and device, equipment, medium and program product

By generating and sending the image request address, the server processes and returns pictures of the target size, the problem of large cache size and slow image loading speed of terminal software is solved, and more efficient image loading and display is achieved.

CN119474427APending Publication Date: 2025-02-18QINGDAO HAIER TECH +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411513625.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, the terminal software directly displays the unprocessed original image after obtaining the image address, resulting in large cache size, slow image loading speed, or need to compress the image locally, affecting the image display time.

Method used

By obtaining the attribute value in the picture address and the terminal's screen resolution, generating the picture request address, and sending the request address to the server, the server makes the picture process according to the request address, obtaining the picture of the target size, and the terminal receives and displays the picture.

Benefits of technology

It reduces the cache volume of terminal software, improves picture loading speed, avoids the time-consuming local image compression, and improves picture display efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474427A_ABST
    Figure CN119474427A_ABST
Patent Text Reader

Abstract

The invention provides a terminal picture processing method and device, equipment, a medium and a program product, and relates to the technical field of smart home / smart home. The method comprises the following steps: acquiring a picture address, and acquiring an attribute value of a first picture from the picture address; obtaining the screen resolution of the terminal, and determining whether the first width and the first height of a display control of the terminal are fixed values or not; if the first width and the first height are fixed values, confirming to generate a picture request address according to the attribute value and the screen resolution; and sending the picture request address to a server, so that the server processes the first picture according to the picture request address to obtain a second picture with a target size, and receiving and displaying the second picture. According to the method, the picture loading speed is increased, and unnecessary picture caching of the terminal is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home / intelligent family technology, and in particular to a terminal image processing method, device, equipment, medium and program product. Background Art

[0002] In the design of terminal software (APP), browsing and displaying pictures is a very common function; the terminal software can obtain, cache and display pictures from the server to facilitate users to browse pictures.

[0003] In the prior art, after the terminal software obtains the image address, it will directly display the unprocessed original image, which will cause the cache size of the terminal software to be large and the image loading speed to be slow; or, the terminal software will download the image to the local and then compress the image, and then the terminal software will display the compressed image, which will also affect the image display time.

[0004] Therefore, the present application proposes a terminal image processing method to solve the above problems. Summary of the invention

[0005] The present application provides a terminal image processing method, device, equipment, medium and program product to solve the problems of large cache volume and slow image loading speed in the prior art.

[0006] In a first aspect, the present application provides a terminal image processing method, comprising:

[0007] Obtaining a picture address, and obtaining an attribute value of the first picture from the picture address;

[0008] Obtaining a screen resolution of a terminal, and confirming whether a first width and a first height of a display control of the terminal are fixed values;

[0009] If the first width and the first height are fixed values, confirming to generate a picture request address according to the attribute value and the screen resolution;

[0010] The image request address is sent to a server, so that the server processes the first image according to the image request address, obtains a second image of a target size, receives the second image and displays it.

[0011] In a possible implementation, the confirming that a picture request address is generated according to the attribute value and the screen resolution includes:

[0012] According to the second width in the attribute value and the screen resolution, obtaining a width display formula of the first picture;

[0013] According to the second height in the attribute value and the screen resolution, obtaining a height display formula of the first picture;

[0014] The picture address is called, and according to the size assignment format of the first picture, the width display formula and the height display formula are concatenated with the picture address to obtain the picture request address.

[0015] In a possible implementation, the size assignment format includes a target size, an assignment symbol, a width display format, and a height display format, so that the server processes the first image according to the image request address to obtain a second image of the target size, including:

[0016] So that the server obtains the first picture according to the picture address in the picture request address, calculates the target width according to the width display formula, calculates the target height according to the height display formula, assigns the target width and the target height to the target size through the assignment symbol, adjusts the first picture with the target size, and obtains a second picture of the target size.

[0017] In a possible implementation, the server stores a plurality of parameter keywords and a value range of the second height and the second width, wherein the parameter keywords describe the second width, the second height, the screen resolution, the target size, the assignment symbol, the width display formula, the height display formula, and the image address in the form of symbols and / or symbol groups; the width display formula is a symbol group including a symbol for the second width, a symbol for the screen resolution, and mathematical symbols; the height display formula is a symbol group including a symbol for the second height, a symbol for the screen resolution, and mathematical symbols.

[0018] In a possible implementation manner, the receiving and displaying the second picture includes:

[0019] When connecting to the network, the second image processed by the server is received, and the second image is displayed in the display control.

[0020] In a possible implementation manner, if the first width and the first height are empty, the method further includes:

[0021] Confirm that the display control does not exist or that an abnormality exists in the display control, and terminate the current process.

[0022] In a second aspect, the present application provides a terminal image processing device, including:

[0023] An acquisition module is used to acquire a picture address and obtain a property value of the first picture from the picture address;

[0024] A determination module, used to obtain a screen resolution of a terminal and confirm whether a first width and a first height of a display control of the terminal are fixed values;

[0025] A generating module, configured to, if the first width and the first height are fixed values, determine to generate a picture request address according to the attribute value and the screen resolution;

[0026] The processing module is used to send the image request address to the server, so that the server processes the first image according to the image request address, obtains a second image of a target size, receives the second image and displays it.

[0027] In a third aspect, the present application provides a terminal image processing device, including: at least one processor and a memory;

[0028] The memory stores computer-executable instructions;

[0029] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the terminal image processing method as described above.

[0030] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the terminal image processing method as described above.

[0031] In a fifth aspect, the present application provides a computer program product, which includes instructions, and when the instructions are executed on an electronic device, the electronic device implements the terminal image processing method as described above.

[0032] The present application provides a terminal image processing method, apparatus, device, medium and program product, which obtain an image address and obtain an attribute value of a first image from the image address; obtain a screen resolution of the terminal and confirm whether a first width and a first height of a display control of the terminal are fixed values; if the first width and the first height are fixed values, confirm that an image request address is generated according to the attribute value and the screen resolution; send the image request address to a server so that the server processes the first image according to the image request address to obtain a second image of a target size, receive the second image and display it.

[0033] In the above process, the terminal software obtains the image address of the first image through the server interface, and obtains the corresponding second width and second height of the first image through a regular expression; in order to make the display of the first image more compatible with the terminal, the screen resolution of the terminal is also obtained; it is confirmed whether the first width and the first height of the display control of the terminal are fixed values, if so, it means that the display control exists and can be used to display the image; further, according to the second width, the second height and the screen resolution, a picture request address including the second width, the second height and the screen resolution can be constructed, and the picture request address of the target size of the first image is calculated according to the information; the terminal software initiates the picture request address to the server, and allows the server to process the first image according to the information in the picture request address to obtain the second image of the target size; the obtained second image is small in size and does not need to be locally cached when displayed on the terminal, which can improve the loading speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0035] Figure 1 A hardware environment diagram for terminal image processing provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of a terminal image processing process provided in an embodiment of the present application Figure 1 ;

[0037] Figure 3 A schematic diagram of a terminal image processing process provided in an embodiment of the present application Figure 2 ;

[0038] Figure 4 A diagram of a terminal image processing device provided by an embodiment of the present invention;

[0039] Figure 5 A hardware schematic diagram of a terminal image processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] It should be noted that the terms "first", "second" etc. of the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0042] In the prior art, after the terminal software obtains the image address from the server, it directly displays the unprocessed original image, which will cause the software cache size to be too large and the image loading to be slow; or the terminal software will download the image to the local and compress the image, and then display the compressed image after compression, which is a time-consuming process.

[0043] This application outputs image URLs that match the terminal resolution through a content delivery network (CDN), further improving the image loading speed and saving cache space.

[0044] The following describes an implementation process of terminal image processing proposed in this application in conjunction with the accompanying drawings and specific embodiments.

[0045] Figure 1 A hardware environment diagram of an end image processing provided in an embodiment of the present application; according to one aspect of an embodiment of the present application, an interactive method for end image processing is provided. The interactive method for end image processing is widely used in smart home (Smart Home), smart home, smart home device ecology, smart residential (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned interactive method for end image processing can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1 As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0046] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0047] Figure 2 A schematic diagram of a terminal image processing process provided in an embodiment of the present application Figure 1 .like Figure 2 As shown, the method includes:

[0048] S201. Obtain a picture address, and obtain an attribute value of a first picture from the picture address.

[0049] The terminal image processing system includes a terminal and a server; the terminal can be a mobile phone, a tablet, a computer, etc., which can interact with the user; the mobile phone, tablet, etc. can communicate with the server through a wireless network, and the computer can communicate with the server through a wired or wireless network; the server can provide users with various services, such as web browsing, image search, etc.; the server obtains the access information of the terminal and provides the services required by the terminal according to the access information; the terminal can access the server through a network address, such as a URL (Uniform Resource Locator) address, which is a standardized address used to specify the location of resources on the Internet;

[0050] The image address may be a URL address, and the symbol may be defined as imageUrl; the terminal software obtains the image address of the first image through the server interface, and the image address carries the attribute values ​​of the first image, such as the second width and the second height; the second width and the second height need to be extracted through a regular expression;

[0051] Regular expressions can process text data in a variety of formats. No matter what format the width and height information appears in (such as HTML tag attributes, CSS styles, JSON data, etc.), it can be matched and extracted through appropriate regular expressions; the writing mode of the regular expression can be adjusted according to the corresponding statement.

[0052] S202: Acquire the screen resolution of the terminal, and confirm whether the first width and the first height of the display control of the terminal are fixed values.

[0053] Screen resolution is the number of pixels on the terminal screen, usually described by the number of horizontal pixels multiplied by the number of vertical pixels. Screen resolution determines the fineness of the details displayed on the image. Generally, the higher the resolution of the image, the more pixels it contains, and the clearer the image. However, different terminals may have different screen resolutions, so it is necessary to process the image adaptively according to the screen resolution, so that the image can be displayed better and the corresponding screen resolution is not wasted.

[0054] The terminal software has a corresponding display control. Whether the display control exists and is normal will affect whether the image can be displayed. The first width and the first height of the display control can be set to fixed values, that is, fixed width pixels and height pixels. The way to determine whether the display control can display the image normally in this example is to confirm whether the first width and the first height of the display control are fixed values.

[0055] S203: If the first width and the first height are fixed values, confirm that a picture request address is generated according to the attribute value and the screen resolution.

[0056] If the first width and the first height are fixed values, it means that the display control exists and can be used for display; then the terminal software can start to splice the image request address, which can also be a URL address; the spliced ​​image request address needs to include a symbol for identifying the first image, a symbol for the second width, a symbol for the second height, and a symbol for the screen resolution, as well as a size calculation formula for calculating the target size of the first image based on these symbols.

[0057] If the first width and first height of the display control are not fixed values, or the first width and first height are empty, the image cannot be displayed:

[0058] For example, if the first width and the first height are empty, the method further includes:

[0059] Confirm that the display control does not exist or that an abnormality exists in the display control, and terminate the current process.

[0060] When it is confirmed that the first width and the first height are empty, it is confirmed that there is an abnormality in the display control and the current process is terminated; or the process can be refreshed to re-determine the first width and the first height of the display control; the refresh process can set an additional refresh interface. When the display control is abnormal, a prompt window pops up to remind the user that the image cannot be obtained and please refresh. After the user clicks the confirmation control in the window, the first width and the first height of the display control are re-determined; or the prompt window does not pop up, and the refresh control is directly set to refresh when the user does not obtain the image.

[0061] S204. Send the picture request address to the server, so that the server processes the first picture according to the picture request address, obtains a second picture of a target size, receives the second picture and displays it.

[0062] After the terminal software has assembled the image request address, it sends the image request address to the server. The image request address carries the information of the previous step of this embodiment assembled by the terminal software. According to the symbol for identifying the first image in the image request address, the first image in the server can be found. The target size of the first image is calculated by using the size calculation formula according to the symbol of the second width, the symbol of the second height and the symbol of the screen resolution, and the target size of the first image is calculated to obtain the second image.

[0063] The server then feeds the second image back to the terminal software for display:

[0064] In an exemplary embodiment, the receiving and displaying the second picture includes:

[0065] When connecting to the network, the second image processed by the server is received, and the second image is displayed in the display control.

[0066] The server used to obtain the first image according to the image address and the server used to process the first image according to the image request address may be different or the same server.

[0067] The terminal software can connect to the server through the CDN, and after receiving the second picture through the CDN, display the second picture in the display control. The above process does not cache the picture in the terminal software, which can reduce unnecessary cache of the terminal software, which is conducive to speeding up the picture display. The second picture is small in size, which is also conducive to speeding up the picture display.

[0068] In an embodiment of the present application, the terminal software obtains the image address of the first image through the server interface, and obtains the corresponding second width and second height of the first image through a regular expression; in order to make the display of the first image more compatible with the terminal, the screen resolution of the terminal is also obtained; confirm whether the first width and the first height of the display control of the terminal are fixed values, if so, it means that the display control exists and can be used to display the image; further, according to the second width, the second height and the screen resolution, a picture request address including the second width, the second height and the screen resolution can be constructed, and the picture request address of the target size of the first image is calculated according to the information; the terminal software initiates the picture request address to the server, and allows the server to process the first image according to the information in the picture request address to obtain the second image of the target size; the obtained second image is small in size, does not need to be locally cached when displayed on the terminal, and can improve the loading speed.

[0069] Figure 3 A schematic diagram of a terminal image processing process provided in an embodiment of the present application Figure 2 .like Figure 3 As shown, the method includes:

[0070] S301. Obtain a width display format of the first picture according to a second width in the attribute value and the screen resolution.

[0071] By multiplying the second width and the screen resolution, the width display of the first picture can be obtained. The width display formula of the first picture is expressed in the symbols of picture address / picture request address: w_{widthStr*k}, where w is the target width of the first picture, _ is the assignment symbol, $ is the reference symbol, widthStr is the symbol of the second width of the first picture, k is the symbol of the screen resolution, and * is the multiplication sign; therefore, the width display formula is to multiply the second width and the screen resolution and then assign it to the target width.

[0072] S302: Obtain a height display format of the first picture according to the second height in the attribute value and the screen resolution.

[0073] By multiplying the second height and the screen resolution, we can get the height display of the first picture. The height display formula of the first picture is expressed in the symbolic form of picture address / picture request address as: h_${heightStr*k}, where h is the target width of the first picture and heightStr is the second height of the first picture. Therefore, the width display formula is to multiply the second height and the screen resolution and assign it to the target height.

[0074] S303: Call the picture address, and concatenate the width display formula and the height display formula with the picture address according to the size assignment format of the first picture to obtain the picture request address.

[0075] The image address is called using the reference symbol, and the symbolic expression of the image address / image request address is: $imageUrl; based on the size assignment format of the first image, the width display formula and the height display formula are constructed in the size assignment format; based on the size assignment format, the target size of the first image is calculated using the symbolic expression of the image address / image request address as:

[0076] resize=p_0,w_{widthStr*k},h_${heightStr*k}

[0077] The symbolic expression of the concatenated image request address (String url) is:

[0078] String url=$imageUrl? resize=p_0,w_{widthStr*k},h_${heightStr*k}

[0079] Among them, ? is the URL address format symbol, resize is the target size symbol, = is the assignment symbol, p_0 means that the initial size is assigned to 0, and the English comma in the image request address is a separator symbol.

[0080] After splicing out the image request address:

[0081] For example, the size assignment format includes a target size, an assignment symbol, a width display format, and a height display format, so that the server processes the first image according to the image request address to obtain a second image of the target size, including:

[0082] So that the server obtains the first picture according to the picture address in the picture request address, calculates the target width according to the width display formula, calculates the target height according to the height display formula, assigns the target width and the target height to the target size through the assignment symbol, adjusts the first picture with the target size, and obtains a second picture of the target size.

[0083] The size assignment format includes the target size resize, the assignment symbol $, the width display type w_{widthStr*k}, and the height display type h_${heightStr*k}. After the image request address is spliced ​​according to the size assignment format, the server can recognize these symbols and their values. The first image can be obtained from the server according to the image address, and the target width and height are calculated according to the width display type and the height display type in the image request address. Finally, the target width and target height are assigned to the target size through the assignment symbol, so that the first image is pulled to the target size based on the initial size assignment of 0.

[0084] Since the server has stored the symbols that constitute the image address / image request address in advance, the server can calculate based on the symbols in the image request address:

[0085] For example, the server stores multiple parameter keywords and value ranges of the second height and the second width, wherein the parameter keywords describe the second width, the second height, the screen resolution, the target size, the assignment symbol, the width display formula, the height display formula, and the image address in the form of symbols and / or symbol groups; the width display formula is a symbol group, including the symbol of the second width, the symbol of the screen resolution, and mathematical symbols; the height display formula is a symbol group, including the symbol of the second height, the symbol of the screen resolution, and mathematical symbols.

[0086] Parameter keywords include various types of symbols, such as English letters, English words, mathematical symbols, special characters, etc.; parameter keywords, such as: first-level parameter: resize (target size symbol), etc.; the spacing symbol used to space the first-level parameters: &; the assignment symbol used to assign the first-level parameters: =; second-level parameters: p, w, h (initial size assignment symbol, second width symbol, second height symbol), etc.; the spacing symbol used to space the second-level parameters: English comma; the assignment symbol used to assign the second-level parameters: _; mathematical symbol: * (multiplication sign).

[0087] In the embodiment of the present application, the image request address is spliced ​​in a preset format, so that the server processes the first image according to the image request address, obtains the second image of the target size, and feeds it back to the terminal software for display, thereby speeding up the image loading speed. After the second image is displayed on the terminal software, it can also be selected whether to cache it according to user needs.

[0088] Figure 4 A terminal image processing device diagram provided by an embodiment of the present invention, such as Figure 4 As shown, the device includes: an acquisition module 401, a determination module 402, a generation module 403, and a processing module 404;

[0089] The acquisition module 401 is used to acquire a picture address and acquire a property value of the first picture from the picture address.

[0090] The determination module 402 is used to obtain the screen resolution of the terminal and confirm whether the first width and the first height of the display control of the terminal are fixed values.

[0091] The generating module 403 is configured to determine, if the first width and the first height are fixed values, to generate a picture request address according to the attribute value and the screen resolution.

[0092] The generating module 403 is further configured to obtain a width display formula of the first picture according to the second width and the screen resolution;

[0093] According to the second height and the screen resolution, obtaining a height display format of the first picture;

[0094] The picture address is called, and according to the size assignment format of the first picture, the width display formula and the height display formula are concatenated with the picture address to obtain the picture request address.

[0095] The generating module 403 is further configured to: if the first width and the first height are empty, the method further includes:

[0096] Confirm that the display control does not exist or that an abnormality exists in the display control, and terminate the current process.

[0097] The processing module 404 is used to send the picture request address to the server, so that the server processes the first picture according to the picture request address to obtain a second picture of a target size, receive the second picture and display it.

[0098] The processing module 404 is further used for the size assignment format to include a target size, an assignment symbol, a width display format, and a height display format, so that the server processes the first image according to the image request address to obtain a second image of the target size, including:

[0099] So that the server obtains the first picture according to the picture address in the picture request address, calculates the target width according to the width display formula, calculates the target height according to the height display formula, assigns the target width and the target height to the target size through the assignment symbol, adjusts the first picture with the target size, and obtains a second picture of the target size.

[0100] The processing module 404 is further used to receive the second image processed by the server when connecting to the network, and display the second image in the display control.

[0101] The present application also provides a terminal image processing device, comprising: at least one processor and a memory;

[0102] The memory stores computer-executable instructions;

[0103] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the terminal image processing method.

[0104] Figure 5 The hardware diagram of the terminal image processing device provided by the embodiment of the present invention is shown in FIG. Figure 5 As shown, the terminal image processing device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. The device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.

[0105] In a specific implementation process, at least one processor 501 executes the computer execution instructions stored in the memory 502, so that at least one processor 501 executes the above terminal image processing method.

[0106] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0107] In the above Figure 5 In the illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0108] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0109] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0110] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method described above is implemented.

[0111] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0112] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0113] The division of the units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.

[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0115] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0116] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variation, use or adaptation of the present invention, which follows the general principles of the present invention and includes common knowledge or conventional techniques in the art not disclosed by the present invention, is not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof.

Claims

1. A terminal image processing method, characterized in that: include: Obtaining a picture address, and obtaining an attribute value of the first picture from the picture address; Obtaining a screen resolution of a terminal, and confirming whether a first width and a first height of a display control of the terminal are fixed values; If the first width and the first height are fixed values, confirming to generate a picture request address according to the attribute value and the screen resolution; The image request address is sent to a server, so that the server processes the first image according to the image request address, obtains a second image of a target size, receives the second image and displays it.

2. The terminal image processing method according to claim 1, characterized in that: The confirming generating a picture request address according to the attribute value and the screen resolution includes: According to the second width in the attribute value and the screen resolution, obtaining a width display formula of the first picture; According to the second height in the attribute value and the screen resolution, obtaining a height display formula of the first picture; The picture address is called, and according to the size assignment format of the first picture, the width display formula and the height display formula are concatenated with the picture address to obtain the picture request address.

3. The terminal image processing method according to claim 2, characterized in that: The size assignment format includes a target size, an assignment symbol, a width display format, and a height display format, so that the server processes the first image according to the image request address to obtain a second image of the target size, including: So that the server obtains the first picture according to the picture address in the picture request address, calculates the target width according to the width display formula, calculates the target height according to the height display formula, assigns the target width and the target height to the target size through the assignment symbol, adjusts the first picture with the target size, and obtains a second picture of the target size.

4. The terminal image processing method according to claim 3, characterized in that: The server stores a plurality of parameter keywords and a value range of the second height and the second width, wherein the parameter keywords describe the second width, the second height, the screen resolution, the target size, the assignment symbol, the width display formula, the height display formula, and the image address in the form of symbols and / or symbol groups; the width display formula is a symbol group including a symbol for the second width, a symbol for the screen resolution, and mathematical symbols; the height display formula is a symbol group including a symbol for the second height, a symbol for the screen resolution, and mathematical symbols.

5. The terminal image processing method according to claim 1, characterized in that: The receiving and displaying the second picture includes: When connecting to the network, the second image processed by the server is received, and the second image is displayed in the display control.

6. The terminal image processing method according to claim 1, characterized in that: If the first width and the first height are empty, the method further includes: Confirm that the display control does not exist or that an abnormality exists in the display control, and terminate the current process.

7. A terminal image processing device, characterized in that: include: An acquisition module is used to acquire a picture address and obtain a property value of the first picture from the picture address; A determination module, used to obtain a screen resolution of a terminal and confirm whether a first width and a first height of a display control of the terminal are fixed values; A generating module, configured to, if the first width and the first height are fixed values, determine to generate a picture request address according to the attribute value and the screen resolution; The processing module is used to send the image request address to the server, so that the server processes the first image according to the image request address, obtains a second image of a target size, receives the second image and displays it.

8. A terminal image processing device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the terminal image processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the terminal image processing method as described in any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product includes instructions, and when the instructions are executed on an electronic device, the electronic device implements the terminal image processing method according to any one of claims 1 to 6.