Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for optimizing picture size based on container environment

A technology of image size and container, applied in the field of communication, can solve the problems of high cost, business intrusion, and high business intrusion, and achieve the effect of reducing cost, optimizing size, and saving network resources

Pending Publication Date: 2022-08-09
青岛大拇指供应链科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Today's Internet network environment is intricate and complex, and the quality of network links is uneven
Business overseas is facing huge network problems: high delay, slow transmission, high packet loss rate, and network link jitter have seriously affected the business experience
[0014] 1) There are certain limitations in generating images in Webp format through object storage, proprietary image processing platforms, or network acceleration platforms that provide image conversion APIs (Application Programming Interface). The location should be placed in the object storage, and it is highly intrusive to the business. It needs to adapt the platform interface and introduce the relevant SDK, and the object storage cannot use the HTTPS protocol for communication with the custom domain name, and it needs to be associated with the CDN forcibly; through Specialized image processing platforms also have the problem of high business intrusion; through dedicated network acceleration platforms (here refers to network service providers like Cloudflare, which also have CDN services, but platforms like Cloudflare use them platform services need to transfer the control of the domain name, that is, modify the NS (Name Server) record of the existing domain name to their NS record to access and use their services) to process, often need to transfer the DNS (Domain Name System, domain name System) server control rights, and has an adaptation impact on the original business access CDN, and there are also business intrusion problems, platform binding and other problems, which will bring higher adaptation costs to the later migration platform;
[0015] 2) Integrate the development language library corresponding to Webp through business applications, which requires too many changes for the business, resulting in relatively high development costs;
[0016] 3) The implementation of integrating Lua scripts through reverse proxy does not bring good support to containerized environments, often only for traditional virtual machine environments, and does not have good support for cloud-native architectures;
[0017] 4) The combination of CDN and function calculation does not support persistent storage well. Often, expired pictures cached on the CDN or newly uploaded pictures need to be regenerated, and function calculations are required for each generation, which is relatively expensive The cost is high and brings a lot of repetitive generation work
[0018] To sum up, existing Webp transformation solutions often require migration of back-end storage or a large number of adaptations to existing services; existing Webp transformation solutions have certain limitations in supporting container environments

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for optimizing picture size based on container environment
  • Method for optimizing picture size based on container environment
  • Method for optimizing picture size based on container environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] A method for optimizing image size in a container environment, the specific implementation steps are as follows:

[0067] S1 writes Dockerfile files to build image generation containers with image routing and interception capabilities and Webp processing capabilities;

[0068] Write a Dockerfile, the base image refers to the image provided by Ingress-nginx, the Webp generation tool uses cwebp officially provided by Google, install the basic dependencies and compile and install in the container.

[0069] The Ingress-nginx image does not have the ability to convert Webp images. The present invention encapsulates the official Webp processing tool cwebp provided by Google through Dockerfile, and builds it into a unified image processing base that can route and intercept business image traffic, interpret and execute Lua scripts, and convert Webp formats. mirror.

[0070] The image generation container Ingress-nginx is figure 2 Ingress-nginx pod in, figure 2 The relation...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for optimizing the size of a picture based on a container environment, which comprises the following steps that: a picture processing container Ingresses-nginx intercepts a picture matched with a route according to a Lua script compiled in a layout file, calls a cwebp command to convert an original picture format into a picture in a Webp format, and returns the picture in the Webp format to a user; according to the method and the device, generation of the Webp picture in the container environment is realized, the size of the picture is optimized, network resources are saved, and meanwhile, development, operation and maintenance costs are reduced.

Description

technical field [0001] The invention relates to the field of communication technologies, and in particular, to a method for optimizing the size of a picture in a container-based environment. Background technique [0002] Today's Internet network environment is complex and the quality of network links is uneven. Businesses going overseas are faced with huge network problems: high latency, slow transmission, high packet loss rate, and network link jitter have seriously affected the service experience. In the process of Internet information transmission, pictures are a very important information carrier. Therefore, ensuring the transmission and loading speed of pictures in a weak network environment is an important aspect of improving business experience. [0003] There are two ways to optimize the transmission of pictures: one is to start with the size of the picture itself, and to compress the picture to reduce the size of the picture to reduce the amount of network transmis...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/957G06F9/455H04L67/568H04L67/63
CPCG06F16/9574G06F9/45558
Inventor 杨林李文征
Owner 青岛大拇指供应链科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products