Page 1 of 1

not supported image type with cmsstatic image processing

Posted: Wed Apr 02, 2014 5:46 am
by mohitrathod
Hello

please find added image


image processing is not working for this image

http://localhost:8080/partner/cmsstatic ... anner.jpeg [working]

but

http://localhost:8080/partner/cmsstatic ... amount=134

gives

javax.imageio.IIOException: Unsupported Image Type
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1063)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1034)
at javax.imageio.ImageIO.read(ImageIO.java:1448)
at org.broadleafcommerce.openadmin.server.service.artifact.image.ImageArtifactProcessor.convert(ImageArtifactProcessor.java:96)
at org.broadleafcommerce.openadmin.server.service.artifact.ArtifactServiceImpl.convert(ArtifactServiceImpl.java:41)
at org.broadleafcommerce.cms.file.service.StaticAssetStorageServiceImpl.getCacheFileModel(StaticAssetStorageServiceImpl.java:230)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

Re: not supported image type with cmsstatic image processing

Posted: Wed Apr 02, 2014 9:16 am
by phillipuniverse
Could you open an issue at https://github.com/BroadleafCommerce/Br ... rce/issues? This looks like a bug. I think it might be because the file name ends in 'jpeg'? Not sure, but there should be more investigation.

Please also notate what version of Broadleaf you are using.

Re: not supported image type with cmsstatic image processing

Posted: Thu Apr 03, 2014 1:49 am
by mohitrathod
more information about image

http://regex.info/exif.cgi?imgurl=http% ... 3Fid%3D136

it have CMYK color encoding

Re: not supported image type with cmsstatic image processing

Posted: Thu Apr 03, 2014 2:54 am
by mohitrathod
added issue at GitHub

https://github.com/BroadleafCommerce/Br ... issues/798

our blc version is 3.0.5-GA