diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..168279c1aaf17987c04ffa7909a062f569376912 --- /dev/null +++ b/README.en.md @@ -0,0 +1,45 @@ +# Image Compression + +### Overview +This sample uses the interfaces provided by @ohos.multimedia.image to compress images using the binary reduction method. + +### Preview + +| **Image compression** | +|:--------------------------------:| +| ![home](screenshots/main.en.png) | + +### How to Use + +1. Start the app. The home page is displayed properly. + +2. Enter the target size of the image and touch **Compress**. + +3. The compressed image is displayed, and the actual size of the image after compression is less than or equal to the input target size. + +### Project Directory + +``` +├──entry/src/main/ets/ +│ ├──common +│ │ └──Constants.ets // Common constants +│ ├──entryability +│ │ └──EntryAbility.ets // Entry ability +│ └──pages +│ └──Index.ets // Home page +└──entry/src/main/resources // Static resources +``` + +### Required Permissions + +N/A + +### Constraints + +1. The sample app is supported only on Huawei phones running the standard system. + +2. The HarmonyOS version must be HarmonyOS NEXT Developer Beta1 or later. + +3. The DevEco Studio version must be DevEco Studio NEXT Developer Beta1 or later. + +4. The HarmonyOS SDK version must be HarmonyOS NEXT Developer Beta1 or later. diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index d4a1e6e22b80c46ac332751573248021e60347cd..4d10a74b7edfde8c43f4b47d4c7978fc4c0eaa47 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -18,11 +18,11 @@ }, { "name": "image_compression", - "value": "Image Compression" + "value": "Compression" }, { "name": "max_compression_image_size", - "value": "Input image compression target size(kb):" + "value": "Target size (KB):" }, { "name": "image_size_before_compression", diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index 1b1fd0d9192624cfe994fe8d09dd99454780041f..019d4e26e8827ae8c2e821e9eaba3380e98bb046 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -18,19 +18,19 @@ }, { "name": "image_compression", - "value": "Image Compression" + "value": "Compression" }, { "name": "max_compression_image_size", - "value": "Input compression target size(kb):" + "value": "Target size (KB):" }, { "name": "image_size_before_compression", - "value": "Image size before compression(kb): " + "value": "Image size before compression (KB): " }, { "name": "image_size_after_compression", - "value": "Compressed image size(kb): " + "value": "Image size after compression (KB):" }, { "name": "prompt_enter_value_greater_than_0", diff --git a/screenshots/main.en.png b/screenshots/main.en.png new file mode 100644 index 0000000000000000000000000000000000000000..e32d15ea22f326beb0a63290b72d3ad65a04d505 Binary files /dev/null and b/screenshots/main.en.png differ