COMMON: UTIL: Fixed exception for "numbers of source Raster bands and source color... 37/11837/6
authorchanghyun1.lee <changhyun1.lee@samsung.com>
Wed, 6 Nov 2013 06:46:00 +0000 (15:46 +0900)
committerchanghyun1.lee <changhyun1.lee@samsung.com>
Thu, 7 Nov 2013 07:16:42 +0000 (16:16 +0900)
commit4a2dd87d8b33d1379bce6b76d5ffa025032ce3b6
treef6a1ec91af3f9033a295c27230d9acfa7f5eb023
parent051e21e80eddf0774f03b742ea61b132c34172a0
COMMON: UTIL: Fixed exception for "numbers of source Raster bands and source color space components do not match"

 ImageIO.read() is not implementation for gray-scale of image.
 work around that retries the load as 'BufferedImage.TYPE_BYTE_GRAY' if it fails the main load.

Change-Id: I6e07087102cbc7821af7b9180c5e78d7039de902
Signed-off-by: changhyun1.lee <changhyun1.lee@samsung.com>
org.tizen.common/src/org/tizen/common/util/ImageUtil.java
org.tizen.common/test/src/org/tizen/common/util/ImageUtilTest.java
org.tizen.common/test/src/org/tizen/common/util/ImageUtilTest.jpg [new file with mode: 0644]