Page 2 of 2

Re: Preview unavailable - jpg files

PostPosted:Wed Oct 20, 2010 11:12 am
by arekk
It worked. Powered preview image files, and doc. odt, xls. Does not work I have txt files. I use OpenKM 5.0 bulid 3361.

Re: Preview unavailable - jpg files

PostPosted:Wed Oct 20, 2010 11:39 am
by pavila
We expect a release candidate next week (May be the final relase).

Re: Preview unavailable - jpg files

PostPosted:Sat Nov 20, 2010 10:42 pm
by Rik van der Vaart
1. I tried to follow the suggestions but still no JPG or other format pics can be viewed. In the admin screen I see the "system.img2pdf" reference but cannot find a "img2pdf.exe" anywhere in the swftools folder. Only jpg, png and gif2pdf.exe. What should I do?
2. Docx formats are also not viewable.
3. Where is the /img folder located to change the logo pic?
4. I got my pop3 email routed to OpenKM but notice that it downloads the entire "inbox" every day. What can I do to have emails downloaded only once?

Version: openkm 5.0 rc1
Windows 7

current openkm.cfg:
Code: Select all
# Default configuration values
#repository.config=repository.xml
#repository.home=repository
#system.user=system
#default.admin.role=AdminRol
#principal.adapter=com.openkm.core.UsersRolesPrincipalAdapter
#max.file.size=5
#max.search.results=25
#system.demo=off
restrict.file.mime=off
restrict.file.extension=*~,*.bak,._*
#system.ocr=/usr/bin/tesseract
system.openoffice=C:/Program Files/OpenOffice
system.img2pdf=C:/Program Files/SwfTools/jpeg2swf.exe
system.pdf2swf=C:/Program Files/SwfTools/pdf2swf.exe
schedule.mail.importer=1
#hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=none
application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp
max.file.size=060520010
#principal.adapter=com.openkm.principal.DatabasePrincipalAdapter
#notify.twitter.user=openkm
#notify.twitter.password=****
#subscription.message.body=Prueba.vm
wizard.property.groups=okg:consulting,okg:technology
wizard.keywords=on
wizard.categories=on
logo.login=C:/jboss-4.2.3.GA/my_login.gif

Re: Preview unavailable - jpg files

PostPosted:Sat Nov 20, 2010 10:56 pm
by jllort
That's older property, now deprecated ( seems we've forgot deleting this older property )

To enable image preview, you need to install que ImageMagick convert utility and configure:
system.convert=/usr/bin/convert

Wiki information is always the most updated, refer there always.

Re: Preview unavailable - jpg files

PostPosted:Sun Nov 21, 2010 12:33 am
by Rik van der Vaart
Thanks jllort.
1. I downloaded the imagemagick conversion program from http://www.imagemagick.org/script/binary-releases.php and installed it.
2. Then I added the following line to my openkm.cfg file:
Code: Select all
system.img2pdf=C:/Program Files/ImageMagick-6.6.5-Q16/convert.exe
and restarted.
All image files are now previewed!

Still struggling with the openoffice docs. MS office pptx files do convert to pdf and display but older ppt do not.
Any suggestions are welcome.

Re: Preview unavailable - jpg files

PostPosted:Sun Nov 21, 2010 8:01 am
by jllort
Phase 1- Conversion button to pdf run right ?
Phase 2- Take a look at server.log, which message appears there when you're trying to preview the image ?