Watermarking Images
When an image is uploaded or updated to bucket bucket-input-fg, an event is generated to trigger the function. The function watermarks the image and stores the watermarked one into bucket bucket-output-fg.
Uploading an Image to Generate an Event
Log in to the OBS console, go to the object page of the bucket-input-fg bucket, and upload the image.jpg image, as shown in Figure 1.
Triggering the Function
After the image is uploaded to bucket bucket-input-fg, OBS generates an event to trigger the image watermarking function. The function watermarks the image and stores the watermarked one into bucket bucket-output-fg. You can view running logs of fss_examples_image_watermark on the Logs tab page.
The Objects page of the bucket bucket-output-fg displays the watermarked image image.jpg, as shown in Figure 2. In the Operation column, click Download to download the image and view the watermarking effect, as shown in Figure 3.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot