百度智能云

All Product Document

          Object Storage

          Introduction to Data Processing

          Overview

          BOS photo processing is an photo application service based on the core storage business of BOS, which can provide flexible, diverse and real-time photo processing services. You only need to upload the original photo to BOS, and by adding processing metrics to the original photo request, you can get the processing result photo in real time. BOS photo processing services include photo thumbnail, cutting, format conversion, rotation, text/photo watermarking, etc. The processed result photo will be returned in real time.

          You can process photos stored in BOS through BOS console and API. Each Bucket you create in BOS has photo processing capabilities by default, and no additional activation is required.

          The process of photo processing service is shown in the figure below:

          BOS7.png

          • If the user sends the request processing flow for the first time:

            1. The user sends an photo processing request for the first time;
            2. If the CDN fails to be chosen for the first time, the request will be sent directly to the BOS source station for processing;
            3. Process the pictures in real time according to the processing parameters sent by users;
            4. The processed result graph will be cached on the CDN node;
            5. At the same time, the result graph will be returned to users.
          • If it is not the first time a user has access to the photo processing process:

            1. The user sends an photo processing request for the first time;
            2. If CDN is chosen, skip to step 5 directly; and if CDN is not chosen, skip to step 3;
            3. The request will be sent back to BOS, and the photo will be processed in real time according to the processing parameters sent by users;
            4. The processed result graph will be cached on the CDN node;
            5. Return the result photo to the client.

          In terms of access speed, the photo processing service integrates the feature of Baidu AI Cloud Content Delivery Network (CDN), which can use high-quality CDN nodes around the world to accelerate the delivery of photo content and effectively reduce the pressure on the origin server.

          Charging Mode

          Basic image processing, HEIC image compression and WebP-M6 image compression services in advanced image processing will be officially charged as of 0:00 on June 1, 2020. Currently, you can log in to the console-Finance to view usage data.

          Billing item Billing instructions
          Basic image processing costs Basic image processing costs refer to the costs incurred when performing basic image processing operations such as scaling, cutting, rotation, format conversion, progressive display, quality conversion, and watermarking of photos stored in BOS. BOS will charge based on the size of the photo before processing. BOS gives each user a free 10 TB of basic image processing ratio per month. When you process more than 10 TB of photos in a month, the excess part will be billed. This cost will be billed hourly, and, for the specific price, please refer to BOS Product Pricing
          HEIC image compression cost (below 800x600) It is the cost incurred by advanced image processing services. If you call the HEIC image compression service of BOS and the original image size is under 800x600, this cost will be incurred. This cost will be billed hourly, and, for the specific price, please refer to BOS Product Pricing
          HEIC image compression cost (800x600 and above) It is the cost incurred by advanced image processing services. If you call BOS's HEIC image compression service, and the processed original image size is above 800x600, this cost will be incurred. This cost will be billed hourly, and, for the specific price, please refer to BOS Product Pricing
          WebP-M6 image compression cost (below 800x600) It is the cost incurred by advanced image processing services. If you call BOS's WebP-M6 image compression service, and the processed original image size is below 800x600, this cost will be incurred. This cost will be billed hourly, and, for the specific price, please refer to BOS Product Pricing
          WebP-M6 image compression cost (800x600 and above) It is the cost incurred by advanced image processing services. If you call BOS's WebP-M6 image compression service, and the processed original image size is 800x600 and above, this cost will be incurred. This cost will be billed hourly, and, for the specific price, please refer to BOS Product Pricing

          Image Processing Protocol

          BOS image processing currently supports two versions of image processing protocol, i.e. V1.0 and V2.0. Among them, V2.0 version supports more abundant image processing items, and its command call is different from V1.0, so it is recommended that you use the V2.0 version for processing. As an old version, V1.0 will stop service in the future, but the current two versions can be used, and the system will automatically recognize and be compatible with the two protocol versions.

          After you log in to the BOS console, you can switch between the two versions in the image processing tab of Bucket.


          Previous
          Developer Guide
          Next
          Image Processing Noun Interpretation