1# Image Processing 2 3### Introduction 4 5This sample demonstrates the image processing function. 6 7In this sample, [\<TextArea>](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-basic-components-textarea.md) is used to implement multi-line text input, [mediaLibrary](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-mediaquery.md) is used to obtain images from albums, [image](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-image.md) is used to generate pixel maps, and **scale()**, **crop()**, and **rotate()** of the **pixelMap** class are used to scale, crop, and rotate images. 8 9### Usage 10 111. Touch **Add image** on the offering review page. The page for selecting images is displayed. 12 132. Select the images to be displayed. You can select six images at most. 14 153. Select an image and touch **Next**. The image editing page is displayed. To scale an image, touch **scale** and then touch **narrow** or **amplification**. To crop the image, touch **crop** and select a crop ratio. To rotate the image, touch **rotate**. 16 174. After finishing editing the image, touch **OK**. The page for posting comments is displayed, with the images shown. You can touch **Add image** to add more images. 18 195. Touch the back button to exit the app. 20 21### Preview 22 23   24 25### Required Permissions 26 27[ohos.permission.READ_MEDIA](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md), which allows an app to read media files from the user's external storage. 28 29### Dependency 30 31N/A 32 33### Constraints 34 351. This sample can only be run on standard-system devices that use the Rockchip RK3568 chip. 36 372. This sample is based on the stage model, which is supported from API version 9 (SDK version: 3.2.6.5). 38 393. DevEco Studio 3.0 Beta4 (Build version: 3.0.0.992, built on July 14, 2022) must be used. 40