CN113382180B - Picture processing method, computing device and readable storage medium - Google Patents

Picture processing method, computing device and readable storage medium Download PDF

Info

Publication number
CN113382180B
CN113382180B CN202110610820.2A CN202110610820A CN113382180B CN 113382180 B CN113382180 B CN 113382180B CN 202110610820 A CN202110610820 A CN 202110610820A CN 113382180 B CN113382180 B CN 113382180B
Authority
CN
China
Prior art keywords
picture
url
cropping
format
compression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110610820.2A
Other languages
Chinese (zh)
Other versions
CN113382180A (en
Inventor
马兴国
马耀辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan Chezhiyi Communication Information Technology Co ltd
Original Assignee
Hainan Chezhiyi Communication Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hainan Chezhiyi Communication Information Technology Co ltd filed Critical Hainan Chezhiyi Communication Information Technology Co ltd
Priority to CN202110610820.2A priority Critical patent/CN113382180B/en
Publication of CN113382180A publication Critical patent/CN113382180A/en
Application granted granted Critical
Publication of CN113382180B publication Critical patent/CN113382180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a picture processing method, wherein a computing device is in communication connection with a picture processing server, the picture processing server is in communication connection with a picture storage server, and the method comprises the following steps: receiving a network request for accessing pictures sent by a client; determining a conversion format of the picture and a device type identifier of the client based on at least a request header of the network request; determining cropping compression parameters of the picture from the first URL based on the device type identification; rewriting the first URL into a second URL pointing to the picture processing server, wherein the second URL comprises the determined picture conversion format and the cutting compression parameter; generating a second network request for accessing the picture based on the second URL to instruct the picture processing server to perform format conversion and crop compression processing on the requested picture; and receiving the processed picture sent by the picture processing server, and returning the processed picture to the client. The invention also discloses a corresponding picture processing system, a computing device and a readable storage medium.

Description

Picture processing method, computing device and readable storage medium
Technical Field
The present invention relates to the field of computer and internet technologies, and in particular, to a picture processing method, a computing device, and a readable storage medium.
Background
When a user accesses a content providing site, the loading speed of content is very important for the user experience, and many content pages often use a large amount of picture materials, which poses a challenge on the loading speed of content. WebP is a picture file format which provides lossy compression and lossless compression at the same time, has a better picture data compression algorithm, and can realize the picture quality with smaller size and no difference through naked eye recognition.
In the current scheme, converting the original format of the picture of the content providing site into the WebP format requires a website maintenance worker to cut the size of the picture, compress the picture by using a picture compression tool, and generate the picture in the WebP format by using a WebP format conversion tool. When a user accesses a website, the page judges whether the browser supports the WebP format or not through the JavaScript script, and if so, the user refers to the picture in the WebP format. The image processing of this scheme needs a large amount of human costs, and is inefficient, and every page needs used repeatedly script, produces a large amount of redundancies, and maintainability is poor and be unfavorable for unified management.
Therefore, a more efficient picture processing method is needed to increase the loading speed of the content.
Disclosure of Invention
To this end, the present invention provides a method of picture processing, a computing device and a storable medium in an attempt to solve or at least alleviate the problems identified above.
According to an aspect of the present invention, there is provided a method of picture processing adapted to be executed in a computing device, the computing device being communicatively connected to a picture processing server, the picture processing server being communicatively connected to a picture storage server, the method comprising the steps of: receiving a network request for accessing the picture sent by a client, wherein the network request comprises a first URL pointing to a picture storage server; determining a conversion format of the picture and a device type identifier of the client based on at least a request header of the network request; determining cropping compression parameters of the picture from the first URL based on the device type identifier; rewriting the first URL into a second URL pointing to the picture processing server, wherein the second URL comprises the determined picture conversion format and the cutting compression parameter; generating a second network request for accessing the picture based on the second URL to instruct the picture processing server to perform format conversion and cropping compression processing on the requested picture; and receiving the processed picture sent by the picture processing server, and returning the processed picture to the client.
Optionally, the network request header includes an Accept request header, wherein the step of determining the conversion format of the picture based on the request header of the network request includes: and judging whether the parameter of the Accept request header contains a first field, if so, determining that the conversion format of the picture is a WebP format, and if not, keeping the original format of the picture.
Optionally, the first field is image/webp.
Optionally, before the step of determining whether the parameter of the Accept request header includes the first field, the method further includes: and if the first URL contains a second field, determining that the conversion format of the picture is the original format of the picture, wherein the second field represents an identification field which does not carry out format conversion.
Optionally, the second field is format = default.
Optionally, the step of determining cropping compression parameters of the picture from the first URL based on the device type identifier comprises: if the first URL comprises the corresponding relation between the equipment type identification and the first cropping compression parameter, determining the cropping compression parameter of the picture as the first cropping compression parameter; if the first URL does not contain the corresponding relation between the equipment type identification and the first cropping compression parameter but contains a second cropping compression parameter, determining the cropping compression parameter of the picture as the second cropping compression parameter; and if the first URL does not contain the corresponding relation between the equipment type identifier and the first cropping compression parameter and does not contain the second cropping compression parameter, not setting the cropping compression parameter of the picture.
Optionally, the first cropping compression parameter and the second cropping compression parameter include a cropping size and/or a compression rate of the picture, and the cropping size includes a width and a height of the picture.
Optionally, the method further comprises: and if the parameter of the Accept request header contains a first field and the first URL does not contain a second field, adding a webp identifier into the second URL.
Optionally, the network request is an HTTP request.
Optionally, the step of receiving a network request for accessing the picture sent by the client includes: and receiving a network request for accessing the picture sent by the client through the content distribution network.
Optionally, the computing device is a Nginx server.
According to an aspect of the present invention, there is provided a picture processing system including: a proxy server adapted to perform the above picture processing method, thereby converting a first URL pointing to the picture storage server into a second URL pointing to the picture processing server, generating a second network request for accessing the picture based on the second URL, transmitting the second network request to the picture processing server, and transmitting the picture processed by the picture processing server to the client; the image processing server is suitable for requesting an image from the image storage server according to the received second network request, and performing format conversion and cutting compression processing on the requested image; and the picture storage server is suitable for sending the requested picture to the picture processing server according to the request sent by the picture processing server.
According to an aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any of the methods as above.
According to an aspect of the invention, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any of the above methods.
According to the technical scheme of the invention, when the client accesses the information provider with the picture, the picture with the optimal size suitable for the client can be automatically obtained aiming at different clients, the picture in the WebP format can be automatically obtained, the bandwidth and the flow cost are greatly saved, and the loading speed of the page is effectively improved. Furthermore, for the website which is operated on line, the client accesses the picture resource without modifying the original URL, so that automatic WebP format conversion and conversion of the picture size and compression ratio can be realized, a user can access better picture resource without any additional operation, the access speed is increased, and the user experience is improved; in addition, because a large number of pictures do not need to be replaced manually and the original URL of the pictures does not need to be modified, the cost of research and development and website maintenance is greatly saved, and the website operation efficiency is improved. The picture processing method of the technical scheme of the invention can be compatible with all devices, provides the best picture display effect, and can automatically acquire pictures with different sizes and compression ratios for different devices of the client. On the other hand, the technical scheme not only can automatically acquire the picture resource in the format after the device supports the WebP format, but also provides the function of closing automatic picture optimization, thereby improving the flexibility of picture processing.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a picture processing system 100 according to one embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to one embodiment of the invention;
FIG. 3 illustrates a flow diagram of a wafer processing method 300 according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a schematic diagram of a picture processing system 100 according to one embodiment of the invention. As shown in fig. 1, the picture processing system 100 includes a client 110, a proxy server 120, a picture processing server 130, and a picture storage server 140.
The client 110 is a terminal device used by a user, and may specifically be a personal computer such as a desktop computer and a notebook computer, or may also be a mobile phone, a tablet computer, a multimedia device, an intelligent wearable device, and the like, but is not limited thereto. The proxy server 120 receives a network request for accessing pictures, which may be an HTTP request, sent by the client 110, and may be implemented as an Nginx server.
The picture processing server 130 may be implemented as a server having a picture processing function for providing a picture processing service. The picture processing function may be implemented as a program and built in the server, and the program may exist in a separate server, or may exist in a proxy server or a picture storage server. And the picture processing server is suitable for requesting a picture from the picture storage server according to the received second network request, and performing format conversion and cutting compression processing on the requested picture.
In an embodiment of the present invention, the proxy server 120 is adapted to execute the picture processing method 300, thereby converting a first URL pointing to the picture storage server into a second URL pointing to the picture processing server, generating a second network request for accessing the picture based on the second URL, sending the second network request to the picture processing server, and sending the picture processed by the picture processing server to the client. The image processing method 300 of the present invention will be described in detail below.
One or more clients 110 are communicatively coupled to a proxy server 120 on the picture processing system, such as by a wired or wireless network connection. The proxy server receives a network request for accessing the picture sent by the client, determines the equipment type identifier and the conversion format of the picture according to the information contained in the request header of the request, rewrites the first URL, and generates a second URL. Proxy server 120 is also communicatively coupled to picture processing server 130, and sends a second URL to picture processing server 130. The image processing server 130 is in communication connection with the image storage server 140, and when the image processing server 130 receives the second URL of the image sent by the proxy server 120, the image processing server requests the image storage server 140 for the image resource corresponding to the URL. Then, the picture is subjected to format, size and compression ratio conversion processing according to the picture cropping compression parameters and the picture conversion format contained in the second URL of the picture, and the processed picture is returned to the proxy server 120. The proxy server then returns the processed picture to the client 110.
The picture storage server 140 is adapted to send the requested picture to the picture processing server according to the request sent by the picture processing server. The picture storage server may be implemented as a relational database, such as MySQL, ACCESS, or the like, or may be a non-relational database, such as NoSQL or the like; the image storage server 140 may be a local database residing in the image processing server 130, or may be a distributed database, such as HBase, disposed at a plurality of geographic locations, in short, the image storage server 140 is used for storing data, and the present invention does not limit the specific deployment and configuration of the data storage device 140. The picture processing server 130 may be communicatively connected to the picture storage server 140 and obtain data stored in the picture storage server 140. For example, the picture processing server 130 may directly read the picture resources in the picture storage server 140 (when the picture storage server 140 is a local database of the picture processing server 130), or may access the internet in a wired or wireless manner, and obtain the data in the picture storage server 140 through the data interface.
In one embodiment, picture processing system 100 also includes a content distribution network 112. And the proxy server receives a network request for accessing the picture, which is sent by the client, through the content distribution network. The content delivery network may be configured to determine a device type of a client sending a network request to access the picture and pass through a request header of the network request, where the request header may be an HTTP request header. The content distribution network 112 may be implemented as an AWS CloudFront. According to the embodiment of the present invention, after the content distribution network 112 receives the web request from the client 110, the request header of the web request is configured, and when the request header of the web request is an Accept request header, the request header and the parameters corresponding to the request header are transmitted to the proxy server 120, where the parameters of the Accept request header can be used to determine whether the client 110 supports the WebP format. When the content distribution network determines that the client device sending the network request Is the Desktop device, the parameter corresponding to the CloudFront-Is-Desktop-Viewer request header Is set to true, which indicates that the device Is the Desktop device, and the request header and the corresponding parameter are transmitted to the proxy server 120. Similarly, when the content distribution network determines that the client device sending the network request Is a desktop Mobile device, setting a parameter corresponding to a CloudFront-Is-Mobile-Viewer request header as true; when the content distribution network determines that the client device sending the network request Is a Tablet computer, setting the parameter corresponding to the CloudFront-Is-Tablet-Viewer request header as true. After the configuration is completed, the request header of the network request and the corresponding parameters are transmitted to the proxy server 120, and the proxy server 120 may obtain the request header and the corresponding parameters at the gateway layer. The content distribution network 112 depends on edge servers deployed in various regions, and through functional modules of load balancing, content distribution, scheduling and the like of the central platform, a user can obtain required content nearby, network congestion is reduced, and the access response speed and hit rate of the user are improved, so that the picture processing system 100 adopting the content distribution network 112 can further improve the access speed of picture resources, and the loading speed of network resources except the picture resources by using the content distribution network is also improved.
In one embodiment, the picture processing system 100 also includes a DNS server (not shown). The client sends a network request for accessing the picture based on the URL, and after the client 110 sends the network request based on the URL, the DNS server resolves the domain name in the URL and resolves the domain name in the URL into the IP address of the proxy server 120. Thus, the proxy server 120 receives the network request sent by the client 110, and processes the URL and the picture according to the network request. When the content distribution network 112 is included in the picture processing system 100, the DNS server resolves the domain name in the URL, and resolves the domain name in the URL to an IP address assigned by the content distribution network 112 nearby.
FIG. 2 is a block diagram of a computing device 200, according to one embodiment of the invention. The picture processing method of the present invention may be performed in the computing device 200.
As shown in FIG. 2, in a basic configuration 202, computing device 200 typically includes system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a Digital Signal Processor (DSP), or any combination thereof. The processor 204 may include one or more levels of cache, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. Example processor cores 214 may include Arithmetic Logic Units (ALUs), floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory including, but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 220, one or more applications 222, and program data 224. The application 222 is actually a plurality of program instructions that direct the processor 204 to perform corresponding operations. In some embodiments, application 222 may be arranged to cause processor 204 to operate with program data 224 on an operating system.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices such as a display or speakers via one or more a/V ports 252. Example peripheral interfaces 244 can include a serial interface controller 254 and a parallel interface controller 256, which can be configured to facilitate communications with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 258. An example communication device 246 may include a network controller 260, which may be arranged to facilitate communications with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, in a modulated data signal, such as a carrier wave or other transport mechanism, and may include any information delivery media. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, radio Frequency (RF), microwave, infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In a computing device 200 according to the present invention, the application 222 includes a plurality of program instructions that execute the picture processing method 300, which may instruct the processor 104 to perform the picture processing method 300 of the present invention such that the computing device 200 effects an automatic format size compression conversion of a picture by executing the picture processing method 300 of the present invention.
Computing device 200 may be implemented as a server, such as a file server, a database server, an application server, a WEB server, etc., or as part of a small-form factor portable (or mobile) electronic device, such as a cellular telephone, a Personal Digital Assistant (PDA), a personal media player device, a wireless WEB-browsing device, a personal headset device, an application-specific device, or a hybrid device that include any of the above functions. Computing device 200 may also be implemented as a personal computer including both desktop and notebook computer configurations. In some embodiments, the computing device 200 is configured to perform the picture processing method 300.
FIG. 3 illustrates a flow diagram of a wafer processing method 300 according to one embodiment of the invention. The method 300 is suitable for execution in a computing device, such as the computing device 200 described above. Optionally, the computing device is a Nginx server. As shown in fig. 3, the picture processing method 300 starts at step S310.
In step S310, a network request for accessing the picture sent by the client is received, where the network request includes a first URL pointing to the picture storage server. Wherein the network request is an HTTP request.
Specifically, a first URL included in a network request for accessing a picture sent by a client is directed to a picture storage server, and the first URL is an original URL of a picture resource to be accessed by a user.
Subsequently, in step S320, the conversion format of the picture and the device type identifier of the client are determined based on at least the request header of the network request. Wherein the network request header comprises an Accept request header.
In an embodiment, the conversion format of the picture is judged according to the parameters in the Accept request header so as to judge whether the client supports the WebP format. Judging whether the Accept request header contains a first field or not at a gateway layer of the Nginx server, if the parameter of the Accept request header contains the first field (optionally, the first field is image/WebP), determining that the conversion format of the picture is the WebP format, and if the parameter of the Accept request header does not contain the first field, keeping the original format of the picture. That is, if the original format of the picture is jpg, the converted format of the picture is still in the jpg format, and the picture format remains unchanged.
According to another embodiment, whether the first URL includes the second field is judged first, and if the first URL includes the second field, it is determined that the converted format of the picture is the original format of the picture, and the second field indicates the identification field that does not perform format conversion. And then, judging whether the parameter of the Accept request header contains a first field, if so, determining that the conversion format of the picture is a WebP format, and if not, keeping the original format of the picture. Optionally, the second field is format = default. The second field may also be set to other characters, which is not limited by the present solution. If the client sending the network request or the browser thereof does not support the WebP format, the first URL comprises a second field which indicates that the format of the picture is not converted.
The client may also use the second field to be included in the first URL, and may close the automatic picture format optimization. Alternatively, the function of automatic picture format optimization (i.e., automatically converting a received picture into a more optimal WebP format) may be implemented as an option in the client browser, so that the user can select whether to perform picture format optimization, select automatic picture format optimization may implement automatic conversion of picture formats, and increase picture access speed. For example, if the client supports a WebP format picture and the user does not need automatic format optimization, the client may turn off the format optimization function of the picture by rewriting the URL to include the second field and sending a network request including the rewritten URL. The user only needs to turn on or off the picture format optimization, and the rewriting of the first URL can be performed by a program in the client browser.
In this embodiment, after the determination of whether the first URL includes the second field is completed, it is determined whether the parameter of the Accept request header includes the first field, if so (i.e., the first URL does not include the second field and the parameter of the Accept request header includes the first field), the conversion format of the picture is determined to be the WebP format, and if not (i.e., the first URL does not include the second field and the parameter of the Accept request header does not include the first field), the original format of the picture is maintained.
According to one embodiment, the client sends a network request and establishes a connection with the server via the URL. The conversion format of the picture may be determined according to the request header and the first URL of the network request. For example: the request header and first URL are curl-H 'Accept: image/webp' http:// localhost:6666/images/banners/1920x1080_q80_autohomecar _ _f2b5a405502e48a48bc888f9c6176068. Jpg? desktop \ 400x400\ tablet \ 200x200\ mobile \ 100x100\ is used for solving the problem of the prior art. It can be seen that if the first URL does not include the second field (format = default) and the parameter of the Accept request header includes the first field (image/WebP), it can be determined that the conversion format of the picture is the WebP format. In another example, the request header and the first URL are curl-H 'Accept: image/webp' http:// localhost:6666/images/banners/1920x1080_q80_autohomecar _ f2b5a405502e48a48bc888f9c6176068.Jpg _? desktop \ 400x400\ tablet \ 200x200\ mobile \ 100x100\ format = default. It can be seen that the first URL includes the second field, and the parameter of the Accept request header also includes the first field. Due to the fact that the second field is contained in the URL, the original format of the picture can be determined to be unchanged and still be kept in the jpg format.
In step S320, according to the parameters in the request header of the network request, the device type identifier of the client may also be determined.
Specifically, the network requests sent by different client devices include different request headers, and the device type identifier of the client can be determined according to the information included in the request headers. Types of client devices may be divided into desktop devices, mobile devices, and tablet devices, for example. In addition to the above examples, the client device type identifier may also distinguish the client device types in more detail, such as the model number of the device, the system version, the version of the browser, and the like, which is not limited by the present solution. According to one embodiment, the device type identifier of the client is obtained through a User-Agent request header.
According to another embodiment, the request header of the network request further comprises: cloudFront-Is-Desktop-Viewer, cloudFront-Is-Mobile-Viewer, cloudFront-Is-Tablet-Viewer. The picture processing system 200 according to the embodiment of the present invention may further include a content distribution network 112, where the selection of the content distribution network Is not limited by the present invention, and the following describes the embodiment by taking the content distribution network AWS CloudFront as an example, and when the content distribution network determines that the device sending the network request Is a Desktop device, the parameter of CloudFront-Is-Desktop-Viewer Is set to be true; when the content distribution network determines that the equipment sending the network request Is the Mobile equipment, setting the parameter of CloudFront-Is-Mobile-Viewer as true; when the content distribution network determines that the device sending the network request Is a Tablet computer, the parameter of CloudFront-Is-Tablet-Viewer Is set to true. Then, the content distribution network passes through the request header, the Accept request header, and the first URL to the proxy server 120. After the proxy server receives the network request, the proxy server can determine the device type identifier of the client for true by the parameter of any request header in the CloudFront-Is-Desktop-Viewer, cloudFront-Is-Mobile-Viewer and CloudFront-Is-Tablet-Viewer. For example: when the parameter of the CloudFront-Is-Desktop-Viewer Is true, the proxy server can determine that the type identifier of the client device Is Desktop equipment; when the parameter of the CloudFront-Is-Mobile-Viewer Is true, the proxy server can determine that the type identifier of the client device Is the Mobile device; when the parameter of the CloudFront-Is-Tablet-Viewer Is true, the proxy server can determine that the client device type Is identified as the Tablet. Optionally, in step S320, the identifier of the device may also be obtained based on the SNMP protocol.
Subsequently, in step S330, a cropping compression parameter of the picture is determined from the first URL based on the device type identification.
Specifically, based on the step S320, the proxy server determines the device type identifier of the client according to the received request header and the parameter of the request header, and determines the first cropping compression parameter of the picture from the first URL. The first cropping compression parameter is the cropping compression parameter corresponding to the determined equipment type identifier in the first URL, and the first URL comprises the corresponding relation between different equipment type identifiers and the first cropping compression parameter. Specifically, the cropping compression parameters include a cropping size of the picture (the cropping size includes the width and height of the picture) and/or a compression rate of the picture.
According to one embodiment, the first cropping compression parameter is represented in the URL as being wide x high, representing the crop size of the picture. For example: the first URL of the picture is http:// localhost: 6666/images/banners/1920x1080/q80/u autohomecar _ _f2b5a405502e48a48bc888f6176068. Jpg _? desktop \ 400x400\ tablet \ 200x200\ mobile \ 100x100\ format = default. The client-based device type identification may determine the clipping compression parameters corresponding to different device type identifications from the following portion of the first URL: \? desktop \ 400x400\ tablet \ 200x200\ mobile \ 100x100. If the request head Is CloudFront-Is-Desktop-Viewer: true, the proxy server may determine that the device type identifier is a desktop device (desktop), and thus may determine that the first cropping compression parameter corresponding to the desktop device is 400 × 400. If the request header Is CloudFront-Is-Mobile-Viewer: true, the device type is identified as a mobile device (mobile), and thus the first clipping compression parameter corresponding to the mobile may be determined to be 100x100. If the request header Is CloudFront-Is-Tablet-Viewer: true, the device type is identified as tablet, and thus the first cropping compression parameter corresponding to the tablet is determined to be 200 × 200.
In another embodiment, a device type identifier is determined from the User-Agent request header, and corresponding picture cropping compression parameters are derived from the first URL based on the device type identifier.
A second cropping compression parameter for the picture may then be determined from the first URL, the second cropping compression parameter being a common cropping compression parameter for the pictures contained in the first URL. Specifically, the second cropping compression parameter includes a size and a compression rate of the picture. According to an embodiment, the second cropping compression parameter is represented in the URL in the form of width x height _ q, where width x height represents the cropping size of the picture and q represents the compression rate of the picture. For example: the first URL of the picture is: http:// localhost:6666/images/banners/1920x1080_q80 _autohomemecar _ f2b5a405502e48bc888f9c6176068. Jpg _? desktop \ 400x400\ tablet \ 200x200\ mobile \ 100x100\ format = default. Here, the location of the second clipping compression parameter precedes the "_ autohomecar" field in the first URL, and the second clipping compression parameter may be determined from the first URL by means of string matching. In the example it can be seen that the part of the second cropping compression parameter preceding _ autohomecar, i.e. 1920xc1080_q80, where 1920 × 1080 represents the cropping size of the picture and q80 represents the compression rate of the picture as 80% according to the setting of the second picture cropping compression parameter rule.
According to the embodiment, rewriting of the first URL requires determining the cropping compression parameter of the picture, and according to different situations, determining the cropping compression parameter most suitable for the client. If the first URL comprises the corresponding relation between the equipment type identifier and the first cropping compression parameter, determining the cropping compression parameter of the picture as the first cropping compression parameter; if the first URL does not contain the corresponding relation between the equipment type identifier and the first cropping compression parameter but contains a second cropping compression parameter, determining the cropping compression parameter of the picture as the second cropping compression parameter; and if the first URL does not contain the corresponding relation between the equipment type identification and the first cropping compression parameter and does not contain the second cropping compression parameter, not setting the cropping compression parameter of the picture.
Subsequently, in step S340, the first URL is rewritten to a second URL pointing to the picture processing server, wherein the determined picture conversion format and the cropping compression parameter are included in the second URL.
Specifically, the first URL is rewritten to the second URL based on the picture conversion format and the cropping compression parameter determined at the foregoing step. In one embodiment, if the determined picture conversion format is WebP (when the parameter of the Accept request header includes the first field and the first URL does not include the second field), adding a WebP identifier to the second URL, so that the picture processing server identifies the rewriting information in the second URL, and converts the format of the obtained picture into the WebP format. And if the picture conversion format determined by the picture is the original picture format, keeping the identifier of the original picture format in the second URL without increasing the identifier.
Wherein the rewriting of the first URL may be done at a gateway layer of the Nginx server. The rewritten URL is a second URL, and the second URL comprises the determined picture conversion format and the cropping compression parameter.
In order to better understand the manner in which the first URL is rewritten to the second URL pointing to the picture processing server in the present invention, four specific examples will be described below.
And if the first URL comprises the corresponding relation between the equipment type identifier and the first cropping compression parameter, determining that the cropping compression parameter of the picture is the first cropping compression parameter, and generating a second URL based on the first cropping compression parameter. And if the first URL contains the second field, the picture conversion format is kept unchanged. For example: <xnotran> URL curl-H 'Accept: image/webp' -H 'CloudFront-Is-Desktop-Viewer: true' http:// localhost:6666/images/banners/1920x1080_q80_autohomecar __ f2b5a405502e48a48bc888f9c6176068.jpg \? </xnotran> desktop \ 400x400\ tablet \ 200x200\ mobile \ 100x100\ format = default. It can be seen that the converted format of the picture maintains the original picture format, and the first cropping compression parameter is 400 × 400 corresponding to the desktop device. The rewritten second URL contains the first cropping parameters and information of the conversion format of the picture, and the URL in the above example is rewritten to generate a second URL. The second URL is: http://127.0.0.1/images/banners/400x400 (u) autohomecar (u) _ f2b5a405502e48a48bc888f9c6176068.Jpg.
And if the first URL comprises the corresponding relation between the equipment type identifier and the first cropping compression parameter, determining that the cropping compression parameter of the picture is the first cropping compression parameter, and generating a second URL based on the first cropping compression parameter. And if the first URL does not include the second field and the parameter of the Accept request header includes the first field, it may be determined that the conversion format of the picture is the WebP format. For example: the request header and first URL are curl-H 'Accept: image/webp' -H 'CloudFront-Is-Desktop-Viewer: true' http:// localhost:6666/images/banners/autohomecar \\\ f2b5a405502e48bc888f9c6176068. Jpg \? desktop \ 400x400\ tablet \ 200x200\ mobile \ 100x100. It can be seen that the conversion format of the picture is the WebP format, and the first cropping compression parameter is 400 × 400 corresponding to the desktop device. At this time, the second URL includes the first cropping parameters and the converted format of the picture, and the URL in this example is rewritten to generate the second URL. The second URL is: http://127.0.0.1/images/banners/400x400 _autohomemecar _ f2b5a405502e48a48bc888f9c6176068.Jpg.webp. And a webp identifier is added in the second URL, so that the picture processing server converts the format of the picture according to the rewritten URL.
If the first URL does not contain the corresponding relation between the device type identifier and the first cropping compression parameter but contains a second cropping compression parameter, the cropping compression parameter of the picture can be determined to be the second cropping compression parameter, and a second URL is generated based on the first cropping compression parameter. Moreover, the first URL does not include the second field, and the parameter of the Accept request header includes the first field, so that the conversion format of the picture can be determined to be the WebP format. For example: the request header and the first URL are curl-H 'Accept: image/webp' -H 'CloudFront-Is-Desktop-Viewer: true' http:// localhost:6666/images/banners/1920x1080_q80_autohomecar _ f2b5a405502e48a48bc888f9c6176068.Jpg. It can be seen that the converted format of the picture is WebP format, and the second cropping compression parameter is 1920xt1080_q80. At this time, the second URL includes the second cropping parameter and information of the conversion format of the picture, and the URL in this example is rewritten to generate the second URL. The second URL is: http://127.0.0.1/images/banners/1920x1080_q80_autohomecar _ f2b5a405502e48a48bc888f9c6176068.Jpg.webp.
If the first URL does not contain the corresponding relation between the equipment type identification and the first cropping compression parameter and does not contain the second cropping compression parameter, the cropping compression parameter of the picture can be set. In addition, the first URL includes a second field, and the parameter of the Accept request header includes a first field, which can determine that the conversion format of the picture is the original format of the picture. For example: the first URL of the request header and picture Is curl-H 'Accept: image/webp' -H 'CloudFront-Is-Desktop-Viewer: true' http:// localhost:6666/images/banners/autohomecar _/f2b5a405502e48bc888f9c6176068. Jpg \ format = default. It can be seen that the converted format of the picture remains unchanged, and the cropping compression parameters of the picture are not included in the first URL. At this time, the second URL does not include the cropping compression parameter and the picture conversion format information of the picture, and the URL in this example is rewritten to generate the second URL. The second URL is: http://127.0.0.1/images/banners/autohomecar _ f2b5a405502e48a48bc888f9c6176068.Jpg.webp.
According to one embodiment, the second URL may be generated by:
Figure BDA0003095805240000141
Figure BDA0003095805240000151
Figure BDA0003095805240000161
Figure BDA0003095805240000171
subsequently, in step S350, a second network request for accessing the picture is generated based on the second URL to instruct the picture processing server to perform format conversion and crop compression processing on the requested picture.
Specifically, after the proxy server acquires the second URL, the corresponding picture is acquired from the picture storage server according to the picture information in the URL, and the picture is cut and compressed and converted in picture format in the picture processing server according to the cutting and compression parameters of the picture in the URL and the conversion format of the picture. For example: the second URL is: http://127.0.0.1/images/banners/1920x1080_q80_autohomecar _ f2b5a405502e48a48888f9c6176068. Jpg.webp. And calling a corresponding picture (f2b5a405502e48a48bc888f9c6176068. Jpg) from the picture storage server according to the picture information which can be acquired by the URL, and performing cropping compression and picture format conversion on the picture according to a cropping compression parameter (1920x1080_q80) of the picture in the URL and a conversion format (WebP) of the picture in the picture processing server.
Subsequently, in step S360, the processed picture sent by the picture processing server is received, and the processed picture is returned to the client.
According to the technical scheme of the invention, when the client accesses the picture resource, the proxy server determines the conversion format and the equipment type identifier of the picture according to the request header of the acquired network request and the original URL of the picture, and judges whether the client supports the WebP format so as to select the optimal picture conversion format for the client, and meanwhile, the user can also close the automatic picture format conversion. According to the scheme, the pictures with different sizes and picture quality are returned according to different equipment type identifications, and a user can automatically acquire the pictures in the WebP format after cutting and compression or other picture forms most suitable for the client equipment. By adopting the picture processing method of the scheme to automatically cut and compress the picture, the transmitted data volume can be reduced, the bandwidth and flow cost are greatly saved, and the loading speed of the picture material is effectively improved.
Further, according to the picture processing method of the scheme, the user can still access the original URL, and the URL is rewritten without being perceived by the user, so that the picture processing server processes the picture according to the rewritten URL. Aiming at the website which is operated on line, the client accesses the picture resource without modifying the original URL, so that automatic WebP format conversion and conversion of the picture size and the compression ratio can be realized, a user can access a better picture resource without any additional operation, the access speed is increased, and the user experience is improved; in addition, as the website side does not need to manually replace a large number of pictures and does not need to modify the original URL of the pictures, the automatic WebP format conversion can be realized, the cost of research and development and website maintenance is greatly saved, and the website operation efficiency is improved. The picture processing method of the technical scheme of the invention can be compatible with all devices, provides the best picture display effect, and can automatically acquire pictures with different sizes and compression ratios aiming at different device types of the client so as to keep the best user experience on different devices. On the other hand, the technical scheme not only can automatically acquire the picture resource in the format after the device supports the WebP format, but also provides the function of closing automatic picture optimization, thereby improving the flexibility of picture processing.
Generally speaking, by judging the client device type identifier sending the request and determining the cutting compression identifier, the rewriting of the URL is completed in the proxy server, so that the function of automatically identifying whether the device supports the WebP format or not by the proxy server is realized, the function of automatically closing the WebP is allowed under the scene without automatically converting the WebP format, the problem that the service needs to be judged by a JavaScript script is solved, the seamless WebP upgrading of the service is realized under the condition of not modifying the URL of the original request, the upgrading cost is greatly reduced, and the bandwidth and the flow cost are saved on the premise of not reducing the user experience by virtue of the high compression rate of the WebP format.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the visual user representation generation method of the present invention in accordance with instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed to reflect the intent: rather, the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore, may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Moreover, those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments, not others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the means for performing the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as disclosed herein. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed by way of illustration and not limitation with respect to the scope of the invention, which is defined by the appended claims.

Claims (13)

1. A method of picture processing adapted to be executed in a computing device communicatively coupled to a picture processing server communicatively coupled to a picture storage server, the method comprising the steps of:
receiving a network request for accessing a picture, wherein the network request comprises a first URL pointing to the picture storage server, and a request header of the network request comprises an Accept request header;
determining a conversion format of the picture and a device type identifier of the client based on at least a request header of the network request, including: judging whether the parameter of the Accept request header contains a first field, if so, determining that the conversion format of the picture is a WebP format, and if not, keeping the original format of the picture;
determining cropping compression parameters for a picture from the first URL based on the device type identification;
rewriting the first URL into a second URL pointing to the picture processing server, wherein the second URL comprises the determined picture conversion format and the cutting compression parameter;
generating a second network request for accessing the picture based on the second URL to instruct the picture processing server to perform format conversion and crop compression processing on the requested picture; and
and receiving the processed picture sent by the picture processing server, and returning the processed picture to the client.
2. The method of claim 1, wherein the first field is image/webp.
3. The method according to claim 1 or 2, before the step of determining whether the parameter of the Accept request header includes the first field, further comprising:
and if the first URL contains a second field, determining that the conversion format of the picture is the original format of the picture, wherein the second field represents an identification field which does not carry out format conversion.
4. The method of claim 3, wherein the second field is format = default.
5. The method of claim 1 or 2, wherein determining cropping compression parameters for a picture from the first URL based on the device type identifier comprises:
if the first URL comprises the corresponding relation between the equipment type identifier and a first cropping compression parameter, determining the cropping compression parameter of the picture as the first cropping compression parameter;
if the first URL does not contain the corresponding relation between the equipment type identification and the first cropping compression parameter but contains a second cropping compression parameter, determining the cropping compression parameter of the picture as the second cropping compression parameter;
and if the first URL does not contain the corresponding relation between the equipment type identification and the first cropping compression parameter and does not contain the second cropping compression parameter, not setting the cropping compression parameter of the picture.
6. The method of claim 5, wherein the first and second cropping compression parameters comprise a cropping size and/or a compression ratio of the picture, the cropping size comprising a width and a height of the picture.
7. The method of claim 1 or 2, further comprising:
and if the parameter of the Accept request header contains a first field and the first URL does not contain a second field, adding a webp identifier into a second URL.
8. The method of claim 1 or 2, wherein the network request is an HTTP request.
9. The method of claim 1 or 2, wherein the step of receiving a network request sent by a client to access a picture comprises:
and receiving a network request for accessing the picture sent by the client through the content distribution network.
10. The method of claim 1, wherein the computing device is an Nginx server.
11. A picture processing system comprising:
proxy server adapted to perform the picture processing method according to any of claims 1-10, thereby converting a first URL pointing to a picture storage server to a second URL pointing to a picture processing server, generating a second network request for accessing a picture based on the second URL, sending the second network request to the picture processing server, and sending the picture processed by the picture processing server to a client;
the picture processing server is suitable for requesting a picture from the picture storage server according to the received second network request, and performing format conversion and cutting compression processing on the requested picture;
and the picture storage server is suitable for sending the requested picture to the picture processing server according to the request sent by the picture processing server.
12. A computing device, comprising:
one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods of claims 1-10.
13. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any of the methods of claims 1-10.
CN202110610820.2A 2021-06-01 2021-06-01 Picture processing method, computing device and readable storage medium Active CN113382180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110610820.2A CN113382180B (en) 2021-06-01 2021-06-01 Picture processing method, computing device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110610820.2A CN113382180B (en) 2021-06-01 2021-06-01 Picture processing method, computing device and readable storage medium

Publications (2)

Publication Number Publication Date
CN113382180A CN113382180A (en) 2021-09-10
CN113382180B true CN113382180B (en) 2023-02-28

Family

ID=77575326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110610820.2A Active CN113382180B (en) 2021-06-01 2021-06-01 Picture processing method, computing device and readable storage medium

Country Status (1)

Country Link
CN (1) CN113382180B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946419A (en) * 2012-10-26 2013-02-27 北京奇虎科技有限公司 Picture server and picture data providing method
CN107911456A (en) * 2017-11-17 2018-04-13 深圳泉眼体育运营管理有限公司 Flow optimization method, device, terminal device and the storage medium of picture loading
CN108965430A (en) * 2018-07-16 2018-12-07 深圳鼎盛电脑科技有限公司 Image acquisition method, device, computer equipment and storage medium
CN109284428A (en) * 2018-08-13 2019-01-29 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN109918592A (en) * 2019-01-17 2019-06-21 平安城市建设科技(深圳)有限公司 Loading method, device, terminal and the computer readable storage medium of picture
CN109992406A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 The method and client that picture requesting method, response picture are requested
CN110311980A (en) * 2019-07-03 2019-10-08 阿里巴巴集团控股有限公司 A kind of data download method and device
CN110765396A (en) * 2019-09-28 2020-02-07 同程网络科技股份有限公司 Figure adapting system and figure adapting method based on same
CN112203158A (en) * 2020-09-27 2021-01-08 北京字节跳动网络技术有限公司 Image display method, device, system, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9674261B2 (en) * 2014-06-10 2017-06-06 Sap Portals Israel Ltd. ODBC access to external services
CN108153761A (en) * 2016-12-05 2018-06-12 阿里巴巴集团控股有限公司 Access the method, apparatus of network picture and response to network picture access
CN109684568A (en) * 2018-12-13 2019-04-26 珠海天燕科技有限公司 Image processing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946419A (en) * 2012-10-26 2013-02-27 北京奇虎科技有限公司 Picture server and picture data providing method
CN107911456A (en) * 2017-11-17 2018-04-13 深圳泉眼体育运营管理有限公司 Flow optimization method, device, terminal device and the storage medium of picture loading
CN109992406A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 The method and client that picture requesting method, response picture are requested
CN108965430A (en) * 2018-07-16 2018-12-07 深圳鼎盛电脑科技有限公司 Image acquisition method, device, computer equipment and storage medium
CN109284428A (en) * 2018-08-13 2019-01-29 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN109918592A (en) * 2019-01-17 2019-06-21 平安城市建设科技(深圳)有限公司 Loading method, device, terminal and the computer readable storage medium of picture
CN110311980A (en) * 2019-07-03 2019-10-08 阿里巴巴集团控股有限公司 A kind of data download method and device
CN110765396A (en) * 2019-09-28 2020-02-07 同程网络科技股份有限公司 Figure adapting system and figure adapting method based on same
CN112203158A (en) * 2020-09-27 2021-01-08 北京字节跳动网络技术有限公司 Image display method, device, system, equipment and medium

Also Published As

Publication number Publication date
CN113382180A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
US8813214B1 (en) Method and system for providing secure peer-to-peer file transfers
US11025747B1 (en) Content request pattern-based routing system
CN102469149A (en) Method and device for carrying out self-adaptive adjustment on images by agent
US20060047844A1 (en) One step approach to deliver multimedia from local PC to mobile devices
CN101067819A (en) Web page resource issuing method and issuing system
US20100281138A1 (en) Method and system for remote coprocessor
CN108932277B (en) Webpage loading method, webpage loading system and server
CN101662454A (en) Method, device and system for image processing in internet
US9807642B2 (en) Traffic distribution method, device, and system
CN111629030A (en) Communication processing method, device, medium and equipment based on edge computing platform
CN112615822A (en) Message processing method and device, computing equipment and readable storage medium
CN102404616B (en) Method and system for pushing data cloud based on digital television network
CN100377522C (en) OMA download realizing method in content distributing network
US20060143282A1 (en) Tailoring content for mobile electronic device based on network
CN113382180B (en) Picture processing method, computing device and readable storage medium
EP1892926B1 (en) Tailoring Content for Mobile Electronic Device Based on Network
US20190180489A1 (en) Systems and methods for digital content delivery over a network
CN103313285A (en) Network resource transmitting and processing device and network resource transmitting and processing method
CN107508705B (en) Resource tree construction method of HTTP element and computing equipment
CN113382050B (en) Message transmission method, system, computing device and storage medium
US11095748B1 (en) Network-based content rendering
US10878187B1 (en) Network-based content rendering
KR102193481B1 (en) Proxy server, method of reconfigurating of web page using the same
US11379653B2 (en) Rendering method for on-demand loading of PDF file on network
CN111711687B (en) File data transmission and storage method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant