• Preview unavailable - jpg files

  • 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.
 #6863  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.
 #7155  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
 #7156  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.
 #7157  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.
 #7162  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 ?

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.