We're updating the issue view to help you get more done. 

CFIMAGE results in out of bands with PNG files

Description

As in Railo 4.2.1 already as bug called, CFIMAGE Fails with PNG files to convert.
The PNG file was created with Windows Snipping Tool.
This was a blocking Point because our CMS is no longer able to save Images from PNG source and customers use it.

Metadata components != number of destination bands

Lucee 4.5.1.000 Error (javax.imageio.IIOException)
Message Metadata components != number of destination bands
Cause javax.imageio.IIOException
Stacktrace The Error Occurred in
C:\programme_custom\lucee-4.5.1.000-express\webapps\testalex\index.cfm: line 1
1: <cfimage action="convert" destination="test123.jpg" source="test.PNG" overwrite="yes">

Java Stacktrace Metadata components != number of destination bands
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.checkSOFBands(JPEGImageWriter.java:1352):1352
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:720):720
at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:365):365
at lucee.runtime.img.Image._writeOut(Unknown Source):-1
at lucee.runtime.img.Image._writeOut(Unknown Source):-1
at lucee.runtime.img.Image.writeOut(Unknown Source):-1
at lucee.runtime.img.Image.writeOut(Unknown Source):-1
at lucee.runtime.tag.Image.doActionWrite(Unknown Source):-1
at lucee.runtime.tag.Image.write(Unknown Source):-1
at lucee.runtime.tag.Image.doActionConvert(Unknown Source):-1
at lucee.runtime.tag.Image.doStartTag(Unknown Source):-1
at index_cfm$cf.call(C:\programme_custom\lucee-4.5.1.000-express\webapps\testalex\index.cfm:1):1
at lucee.runtime.PageContextImpl.doInclude(Unknown Source):-1
at lucee.runtime.listener.ClassicAppListener._onRequest(Unknown Source):-1
at lucee.runtime.listener.MixedAppListener.onRequest(Unknown Source):-1
at lucee.runtime.PageContextImpl.execute(Unknown Source):-1
at lucee.runtime.PageContextImpl.execute(Unknown Source):-1
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(Unknown Source):-1
at lucee.loader.servlet.CFMLServlet.service(Unknown Source):-1
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725):725
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291):291
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52):52
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239):239
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206):206
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219):219
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106):106
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501):501
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142):142
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79):79
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610):610
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88):88
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537):537
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1085):1085
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658):658
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222):222
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1556):1556
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1513):1513
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142):1142
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617):617
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61):61
at java.lang.Thread.run(Thread.java:745):745

Timestamp 6/12/15 5:58:03 PM CEST

Environment

Windows 8 x64, Lucee 4.5.1.000 express called with Port 8888

Status

Assignee

Michael Offner

Reporter

adiedler@tecracer.de

Labels

Sprint

None

Fix versions

Affects versions

4.5.1.000
5.0.0.98

Priority

Critical