Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.

On this page

Introduction

Updated on 2023-07-07 GMT+08:00

The best practice for FunctionGraph guides you through image compressing based on a function.

Scenarios

  • Upload images to a specified Object Storage Service (OBS) bucket.
  • Compress each uploaded image.
  • Upload the processed images to another specified OBS bucket.
    NOTE:
    1. This tutorial uses two different OBS buckets.
    2. The function you create must be in the same region (default region) as the OBS buckets.

Procedure

  • Create two buckets on the OBS console.
  • Create a function with an OBS trigger.
  • Upload an image to one of the buckets.
  • The function is triggered to compress the image.
  • The function uploads the processed image to the other bucket.
    NOTE:

    After you complete this tutorial, your account will have the following resources:

    1. Two OBS buckets (respectively used for storing uploaded and processed images)
    2. A thumbnail image creation function (fss_examples_image_thumbnail)
    3. An OBS trigger used for associating the function with the OBS buckets
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback