diff --git a/frameworks/kits/js/common/image_source_napi.cpp b/frameworks/kits/js/common/image_source_napi.cpp index 6ef11edf191a263b9b6257a5291a8f57a087bd97..6742eac2661adc4ac03f60b2d2ed3997fde848de 100644 --- a/frameworks/kits/js/common/image_source_napi.cpp +++ b/frameworks/kits/js/common/image_source_napi.cpp @@ -370,8 +370,8 @@ static bool ParseDecodeOptions(napi_env env, napi_value root, DecodeOptions* opt HiLog::Debug(LABEL, "no sampleSize"); } - if (!GET_UINT32_BY_NAME(root, "rotateDegrees", opts->rotateNewDegrees)) { - HiLog::Debug(LABEL, "no rotateDegrees"); + if (!GET_UINT32_BY_NAME(root, "rotate", opts->rotateNewDegrees)) { + HiLog::Debug(LABEL, "no rotate"); } if (!GET_BOOL_BY_NAME(root, "editable", opts->editable)) {