diff --git a/en/application-dev/media/image.md b/en/application-dev/media/image.md index 5be7a47cf20f0269c670593bf412bee5dd92162f..8e6eca83375ea64b2948325fc1f7bf7f28746767 100644 --- a/en/application-dev/media/image.md +++ b/en/application-dev/media/image.md @@ -115,6 +115,7 @@ pixelmap.release(()=>{ done(); }) +let path = '/data/local/tmp/test.jpg'; // Create an image source (uri). const imageSourceApi = image.createImageSource(path); // '/data/local/tmp/test.jpg' @@ -145,7 +146,7 @@ imagePackerApi.release(); ### Decoding Scenario ```js -/data/local/tmp/test.jpg // Set the path for creating an image source. +let path = '/data/local/tmp/test.jpg'; // Set the path for creating an image source. // Create an image source using a path. const imageSourceApi = image.createImageSource(path); // '/data/local/tmp/test.jpg' @@ -222,7 +223,7 @@ catch(error => { ### Encoding Scenario ```js -/data/local/tmp/test.png // Set the path for creating an image source. +let path = '/data/local/tmp/test.png' // Set the path for creating an image source. // Set the image source. const imageSourceApi = image.createImageSource(path); // '/data/local/tmp/test.png'