Revision: 3972 http://openutils.svn.sourceforge.net/openutils/?rev=3972&view=rev Author: fgiust Date: 2012-05-06 14:21:17 +0000 (Sun, 06 May 2012) Log Message: ----------- MEDIA-285 remove usage of com.sun.image.codec.jpeg.JPEGCodec Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/utils/JpegUtils.java Modified: magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/utils/JpegUtils.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/utils/JpegUtils.java 2012-05-06 14:13:55 UTC (rev 3971) +++ magnoliamodules/branches/magnolia44/openutils-mgnlmedia/src/main/java/net/sourceforge/openutils/mgnlmedia/media/utils/JpegUtils.java 2012-05-06 14:21:17 UTC (rev 3972) @@ -44,7 +44,6 @@ import com.drew.imaging.jpeg.JpegProcessingException; import com.drew.imaging.jpeg.JpegSegmentReader; -import com.sun.image.codec.jpeg.ImageFormatException; /** @@ -223,10 +222,9 @@ // see MEDIA-72, we need the sun codec to make this work properly return com.sun.image.codec.jpeg.JPEGCodec.createJPEGDecoder(is4).decodeAsBufferedImage(); } - catch (ImageFormatException ife) + catch (RuntimeException ife) { - // ImageFormatException: Can't construct a BufferedImage for given COLOR_ID - // try also with CMYK? + // Icom.sun.image.codec,jpeg.ImageFormatException: Can't construct a BufferedImage for given COLOR_ID try also with CMYK? return createJPEG4(raster, ycckProfile); } finally This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |