Can't read a .tif image

Since Version “Lucee” I have the problem that I can’t read out .tif files. PNG files work perfectly fine with the same code as the .tif image (and same path). Can somebody help?

<cfimage action="info" source="/web-data/" structname="t_bild">
<!---<cfimage action="info" source="/web-data/" structname="t_bild">--->
<cfdump var="#t_bild#">```

>Lucee Error (
>Message can not read in image
>Stacktrace The Error Occurred in
>**/web-data/ line 5**  
> 1: 
> 2: <cfscript>
> **3: img = ImageRead("/web-data/");**
> 4: //img = ImageRead("/web-data/");
> 5:
Java Stacktrace lucee.runtime.exp.NativeException: can not read in image
 at org.lucee.extension.image.Image.(
 at org.lucee.extension.image.Image.createImage(
 at org.lucee.extension.image.functions.ImageRead.invoke(
 at lucee.runtime.functions.FunctionHandlerPool.invoke(
 at bilder.test2_cfm$
 at lucee.runtime.PageContextImpl._doInclude(
 at lucee.runtime.PageContextImpl._doInclude(
 at lucee.runtime.listener.ClassicAppListener._onRequest(
 at lucee.runtime.listener.MixedAppListener.onRequest(
 at lucee.runtime.PageContextImpl.execute(
 at lucee.runtime.PageContextImpl._execute(
 at lucee.runtime.PageContextImpl.executeCFML(
 at lucee.runtime.engine.Request.exe(
 at lucee.runtime.engine.CFMLEngineImpl._service(
 at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(
 at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(
 at lucee.loader.servlet.CFMLServlet.service(
 at javax.servlet.http.HttpServlet.service(
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
 at org.apache.catalina.core.StandardWrapperValve.invoke(
 at org.apache.catalina.core.StandardContextValve.invoke(
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
 at org.apache.catalina.core.StandardHostValve.invoke(
 at org.apache.catalina.valves.ErrorReportValve.invoke(
 at org.apache.catalina.core.StandardEngineValve.invoke(
 at org.apache.catalina.valves.RemoteIpValve.invoke(
 at org.apache.catalina.connector.CoyoteAdapter.service(
 at org.apache.coyote.http11.Http11Processor.service(
 at org.apache.coyote.AbstractProcessorLight.process(
 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
 at java.util.concurrent.ThreadPoolExecutor.runWorker(
 at java.util.concurrent.ThreadPoolExecutor$
 at org.apache.tomcat.util.threads.TaskThread$
Caused by: can not read in image
 ... 41 more

That error is from Lucee trying to read that as a base64 image?

I even have an open PR to improve that error message to say just that!

I don’t quite understand how that helps me in any way, could you explain pls?

I’ve checked this with .tif file as per you said. But, I can’t able to reproduce the issue. In my test, it is working fine. so, could you please share a .tif file you used?

Ofc, but since I’m not allowed to upload attachments you’ll have to download it here:

If this is a linux box my suggestion is making sure Imagemagik is installed.

At the command line run
convert --version

You should get back something like.
Version: ImageMagick 6.9.X

It’s already installed

disable selinux temporarily and rerun the script
if you made any system updates lately you may need to restart Lucee / Apache as that has been known to cause issues in some environments as well.

Can you do a file read and dump the tiff contents, i think it might be a permissions problem

Lucee handles a range of input types for source, a url, a path, an image, a base64 string…

I think it’s failing to access the file via a path and is falling back on trying base64