• image (.jpg .png) preview not working

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #18472  by boris
 
the image preview is not working ("there was a problem with conversion generation ...")
all other previews do work (pdf, office..)

i've tested some .jpg files locally (convert.exe test.jpg test.pdf) and everything works fine. On OpenKM however, there is an error:
Code: Select all
2012-09-18 13:21:37,781 WARN  [com.openkm.util.ExecutionUtils] Abnormal program termination: 128
2012-09-18 13:21:37,781 WARN  [com.openkm.util.ExecutionUtils] CommandLine: [c:\data\openkm\tools\convert.exe, C:\DOCUME~1\ADMINI~1.DST\LOCALS~1\Temp\okm1597501931189726556.JPG[0], C:\data\openkm\jboss-4.2.3.GA\cache\pdf\d91dbcba-50a2-40d0-82b8-6843bc777dc4.pdf]
2012-09-18 13:21:37,781 WARN  [com.openkm.util.ExecutionUtils] STDERR: 
2012-09-18 13:21:37,781 ERROR [com.openkm.servlet.frontend.ConverterServlet] 
com.openkm.core.ConversionException: 
	at com.openkm.util.DocConverter.img2pdf(DocConverter.java:409)
	at com.openkm.servlet.frontend.ConverterServlet.toPDF(ConverterServlet.java:186)
	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:225)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:106)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:619)
i'm using the latest openkm community edition
 #18479  by jllort
 
About which openkm version are we talking, which OS and which are your parameters in administration configuration.
 #18481  by boris
 
openkm version: 5.1.10 running on a windows server
Code: Select all
system.imagemagick.convert	String	 c:\data\openkm\tools\convert.exe
system.openoffice.path	String	 C:\Program Files\OpenOffice.org 3
system.swftools.pdf2swf	String	 c:\data\openkm\tools\pdf2swf.exe ${fileIn} ${fileOut}
i think those are the relevant parameters? As i said, openoffice is working, as is pdf2swf
 #18497  by boris
 
okmuser wrote:Did you try to convert (imagemagick covert.exe) an image file to pdf on command prompt and see what happens?

Cheers,
I was able to convert the image to .pdf using command line, it was the first thing i tried :)
jllort wrote:psd2swf is not correctly take a look here http://wiki.openkm.com/index.php/Migrat ... 8_to_5.1.9
I think you mean pdf2swf? I changed to configuration, but no result.
 #18510  by jllort
 
this is imagemagick path c:\data\openkm\tools\ or you move convert.exe there ? With the trace log seems the error is on pdf2swf conversion toSWF(ConverterServlet.java:225) try the converted pdf, convert to swf from terminal ( but the same you converted with convert.exe ), sometimes should be added some extra parameters in swf converter
 #18593  by boris
 
jllort wrote:this is imagemagick path c:\data\openkm\tools\ or you move convert.exe there ? With the trace log seems the error is on pdf2swf conversion toSWF(ConverterServlet.java:225) try the converted pdf, convert to swf from terminal ( but the same you converted with convert.exe ), sometimes should be added some extra parameters in swf converter
I moved convert.exe to that folder, as I did with pdf2swf.exe.
At first I thought it was because convert.exe (of pdf2swf.exe) needed some other executable that I forgot to copy, but I am able to convert the image to pdf and the pdf to swf using the executables in my "tools" folder, so it's not that.

What extra parameters should be added?
 #18601  by jllort
 
Which openkm version do you have ? is latest at administration there's an icon to evaluate if preview configuration external application parameters are right
 #18702  by jllort
 
If you can convert image to pdf, then you should take a look to convert this pdf to swf using terminal command ( could be some error there )

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.