Page 1 of 1

image (.jpg .png) preview not working

PostPosted:Tue Sep 18, 2012 11:29 am
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

Re: image (.jpg .png) preview not working

PostPosted:Tue Sep 18, 2012 6:46 pm
by jllort
About which openkm version are we talking, which OS and which are your parameters in administration configuration.

Re: image (.jpg .png) preview not working

PostPosted:Wed Sep 19, 2012 8:54 am
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

Re: image (.jpg .png) preview not working

PostPosted:Thu Sep 20, 2012 12:39 am
by okmuser
Did you try to convert (imagemagick covert.exe) an image file to pdf on command prompt and see what happens?

Cheers,

Re: image (.jpg .png) preview not working

PostPosted:Thu Sep 20, 2012 6:43 am
by jllort
psd2swf is not correctly take a look here http://wiki.openkm.com/index.php/Migrat ... 8_to_5.1.9

Re: image (.jpg .png) preview not working

PostPosted:Fri Sep 21, 2012 8:53 am
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.

Re: image (.jpg .png) preview not working

PostPosted:Sat Sep 22, 2012 7:36 am
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

Re: image (.jpg .png) preview not working

PostPosted:Wed Oct 03, 2012 11:16 am
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?

Re: image (.jpg .png) preview not working

PostPosted:Wed Oct 03, 2012 10:05 pm
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

Re: image (.jpg .png) preview not working

PostPosted:Wed Oct 10, 2012 1:15 pm
by boris
openkm.png
openkm.png (39.87 KiB) Viewed 8468 times
appaerently the parameters are correct

Re: image (.jpg .png) preview not working

PostPosted:Fri Oct 12, 2012 4:10 pm
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 )