Page 1 of 1
For images, can preview .jpg but cannot preview .tif or .eps
PostPosted:Sun Dec 02, 2012 9:06 pm
by nrdorf
my path for system.imagemagick.convert is /usr/bin/convert
can preview my jpeg photos just fine. However, for tif and eps the conversion is producing damaged PDF files. I cannot open those files even directly from the cache folder
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Tue Dec 04, 2012 10:54 am
by jllort
test conversion utility from your terminal to ensure you do not need extra libraries etc..
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Tue Dec 04, 2012 11:33 am
by shaardu
Yeah tif files are not working in community but online demo works, the solution what I did was to change through source code...In converterservlet, tiff2pdf function doesnt work, what you need to do is to change that to "img2pdf" and it ll work...I don know why tiff2pdf doesnt work!
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Wed Dec 05, 2012 5:33 pm
by nrdorf
from the command line, using sample file (named PO.tif), the expression:
convert PO.tif PO.pdf resulted in the creation of a perfectly readable pdf file. So /usr/bin/convert is indeed working from the command line.
Something bad is happening with the interface between convert and OpenKM
As for img2pdf, I have not found a debian package or any way to obtain this???
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Fri Dec 07, 2012 5:19 pm
by nrdorf
Has anyone else experienced the TIF preview issue on 6.2.1? If so, any other methods of addressing the problem without modifying source or deviating from the recommended configuration?
Weird, I can use the command line to convert the TIFF to a PDF, and then I can use the command line to read that very same PDF I created to make a SWF, which in turn I can see is viewable by opening in Firefox. But the end-to-end process, when triggered from within the OpenKM browser UI, fails.
Is this indeed a recognized bug that is being worked on for a future point release?
Otherwise, for anyone who has this working, I would be curious to know, what Linux distro / version, what OpenKM version, and any particular parameters added to /usr/bin/convert?
Thanks
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Sat Dec 08, 2012 6:36 pm
by jllort
.eps file extension is photoshop no ? imagemagick should convert it ( only a note for .ps extension (postscript) files should be configured ps2pdf ). Anyway could be implemented. Take in consideration test first in terminal ( for example with office files sometimes there're problem when ms office upgrades and then file format changes, could be similar problem but I doutb )
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Mon Dec 10, 2012 7:44 pm
by nrdorf
I am previewing both .ps and .eps files without issue, as well as .jpg
.tif continues to be a problem.
Any suggestions as to what libraries I should check for that might be absent?
Thanks
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Tue Dec 11, 2012 9:33 pm
by jllort
If you test tif converstion from terminal goes right ? there's the best place to see some error
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Tue Dec 11, 2012 11:14 pm
by nrdorf
from the command line:
test file PO.tif
output file okmPO.pdf
convert PO.tif okmPO.pdf
error message (warning):
Code: Select all/tmp/magick-03WWlbhZ: Warning, incorrect count for field "DateTime" (11, expecting 20); tag ignored.
/tmp/magick-AqG5PtNl: Warning, incorrect count for field "DateTime" (11, expecting 20); tag ignored.
ndorf@cray-A770M-A:~/Desktop$
The file okmPO.pdf was still created despite the warning. And, I can open that resulting pdf file with Acrobat Reader and view it just fine.
Perhaps the warning message, not providing a retcode of zero, is throwing OpenKM off?
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Fri Dec 14, 2012 5:51 pm
by jllort
This can be the cause because althought is shown as warning at the same time is shown error message (warning): it would be needed understanding if finish with some return error flag.
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Mon Dec 24, 2012 12:55 am
by rbahntje
Some problem with 6.2.1 community edition.
It seems that when I upload a TIFF file, the system act as if it is a PDF file, this is from catalina.log:
Code: Select all2012-12-23 21:48:49,761 [http-bio-0.0.0.0-8080-exec-19] WARN com.openkm.util.ExecutionUtils - Abnormal program termination: 1
2012-12-23 21:48:49,761 [http-bio-0.0.0.0-8080-exec-19] WARN com.openkm.util.ExecutionUtils - CommandLine: [/opt/tomcat-7.0.27/bin/pdf2swf, , /opt/tomcat-7.0.27/repository/cache/pdf/8fd5f2bc-229d-4fed-aed3-515dc608c47c[b].pdf[/b], -o, /opt/tomcat-7.0.27/repository/cache/swf/8fd5f2bc-229d-4fed-aed3-515dc608c47c.swf]
2012-12-23 21:48:49,761 [http-bio-0.0.0.0-8080-exec-19] WARN com.openkm.util.ExecutionUtils - STDERR: Error: Couldn't open file ''
2012-12-23 21:48:49,762 [http-bio-0.0.0.0-8080-exec-19] ERROR com.openkm.servlet.frontend.ConverterServlet - Error: Couldn't open file ''
com.openkm.core.ConversionException: Error: Couldn't open file ''
at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:467)
Re: For images, can preview .jpg but cannot preview .tif or
PostPosted:Mon Dec 24, 2012 5:19 pm
by jllort
do you got imagemagick installed and configured correctly ?