Hello Hemant, I have no idea how to use ImageMagic compiled from the sources Maybe you should ask their communication channels?
On Tue, 19 Nov 2019 at 23:46, Alvaro <[email protected]> wrote: > Could you please look if is: > > sudo nano /etc/ImageMagick-6/policy.xml > > <policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" /> > > ...to > > <!-- <policy domain="coder" rights="none" > pattern="{PS,PS2,PS3,EPS,PDF,XPS}" /> --> > > > ...or > > > <policy domain="coder" rights="write" pattern="PS" /> > <policy domain="coder" rights="write" pattern="PDF" /> > > ...to: > > <!-- <policy domain="coder" rights="write" pattern="PS" /> --> > <!-- <policy domain="coder" rights="write" pattern="PDF" /> --> > > > ---------------------------------------------------- > > El mar, 19-11-2019 a las 21:48 +0530, Coscend@OM escribió: > > Dear Maxim, > > Thank you for your pointer. Here are two cases and results: > > > · Yum install ImageMagick-6.9.10-75 > File upload SUCCESS. > > > · Compile from source ImageMagick-6.9.10-75: > file upload FAIL. > > Both cases create the same binaries (convert, etc.). So, our file upload > error > is due to a missing configure options we are using during compilation. > > ----------- > > Out of curiosity, would you happen to know any library we might be > missing in our source compilation that might be causing our source > compiled ImageMagick to not upload files? > > /etc/*.xml files are not created in our compilation from source. > > Our compile options include: > > hdri > > modules > > perl > > static > > gnu-ld > > quantum-depth=16 > > bzlib > > autotrace > > djvu > > dps > > fpx > > fontconfig > > freetype > > gslib > > gvc > > jpeg > > jp2 > > lcms > > lqr > > openexr > > png > > tiff > > rsvg > > wmf > > x > > xml > > zlib > > Thank you. > > Sincerely, > > Hemant K. Sabat > > *www.Coscend.com* <http://www.coscend.com/> > > ------------------------------------------------------------------ > > *Real-time, Interactive Video Collaboration, Tele-healthcare, > Tele-education, Telepresence Services, on the fly…* > > ------------------------------------------------------------------ > > CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail > Messages from Coscend Communications Solutions' posted at: > *http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html* > <http://www.coscend.com/Anchor/Common/Terms_and_Conditions.html> > > -----Original Message----- > From: Maxim Solodovnik [mailto:[email protected] <[email protected]> > ] > Sent: Tuesday, November 19, 2019 9:32 AM > To: Openmeetings user-list <[email protected]>; > [email protected] > Subject: Re: OM5: File Upload Error > > Hello Hemant, > > Everything works for me as expected on Ubuntu 19.10 (latest) And this most > recent Ubuntu still have ImageMagick 6.9.10-23 > > Can you set up ImageMagick 6 instead of 7? > > On Mon, 18 Nov 2019 at 04:34, Coscend@OM <[email protected]> wrote: > > > > > > Dear OM Community, > > > > > > > > > > > > May we seek your guidance on the following “File upload error” we are > facing with OM5.0.0-M2? > > > > > > · JPEG, PDF, MS Office documents: gives DELETED image > > > > > > · JPG upload is successful, but has errors in logs > > > > > > · PNG file upload is successful. > > > > > > > > > > > > Does this suggest that conversion is not successful? For convert > command, we have added a symlink to magick binary in ImageMagick-7.0.9. > There is no convert in ImageMagick 7. There is no policy.conf in > ImageMagick-7. OpenOffice-4.1.7/program/soffice.bin exists. > > > > > > > > > > > > > > > > > > Environment: > > > > > > CentOS 8 > > > > > > ImageMagick 7.0.9 > > > > > > Ghostscript 9.50 > > > > > > OpenOffice -4.1.7 > > > > > > MariaDB 10.3.18 > > > > > > > > > > > > Below are the logs during upload of: > > > > > > PNG > > > > > > JPG > > > > > > Other files > > > > > > --------------------- > > > > > > > > > > > > DEBUG 11-17 11:24:00.053 o.a.o.c.d.f.FileProcessor:72 [Thread-3120] - > > > file extension: png > > > > > > DEBUG 11-17 11:24:00.061 o.a.o.c.d.f.FileProcessor:76 [Thread-3120] - > > > isAsIs: true > > > > > > DEBUG 11-17 11:24:00.061 o.a.o.c.d.f.FileProcessor:106 [Thread-3120] - > > > writing file to: > > > ~openmeetings/data/upload/files/d76db28c-1016-426f-a503-281f95b3018a/d > > > 76db28c-1016-426f-a503-281f95b3018a.png > > > > > > DEBUG 11-17 11:24:00.061 o.a.o.c.d.f.FileProcessor:123 [Thread-3120] - > ##### convert it to PNG: > > > > > > INFO 11-17 11:24:00.122 o.a.o.d.d.r.RoomDao:83 [Thread-3120] - [get]: > > > No room id given > > > > > > DEBUG 11-17 11:24:00.134 o.a.o.c.d.f.FileProcessor:136 [Thread-3120] - > > > fileId: 13 > > > > > > DEBUG 11-17 11:24:00.134 o.a.o.c.d.f.FileProcessor:97 [Thread-3120] - > > > Clean up was successful ? true > > > > > > DEBUG 11-17 11:24:01.089 o.a.o.d.d.f.FileItemDao:55 [nio-5080-exec-6] > > > - getByOwner() started > > > > > > DEBUG 11-17 11:24:01.091 o.a.o.d.d.f.FileItemDao:50 [nio-5080-exec-6] > > > - getByRoom roomId :: 5 > > > > > > DEBUG 11-17 11:24:01.095 o.a.o.d.d.f.FileItemDao:55 [nio-5080-exec-6] > > > - getByOwner() started > > > > > > > > > > > > > > > > > > JPG > > > > > > > > > > > > DEBUG 11-17 11:25:40.519 o.a.o.c.d.f.FileProcessor:72 [Thread-3129] - > > > file extension: jpg > > > > > > DEBUG 11-17 11:25:40.524 o.a.o.c.d.f.FileProcessor:76 [Thread-3129] - > > > isAsIs: false > > > > > > DEBUG 11-17 11:25:40.524 o.a.o.c.d.f.FileProcessor:106 [Thread-3129] - > > > writing file to: > > > ~openmeetings/data/upload/files/37551965-7f7b-49ab-bdb5-3391085e6fe1/3 > > > 7551965-7f7b-49ab-bdb5-3391085e6fe1.jpg > > > > > > DEBUG 11-17 11:25:40.524 o.a.o.c.d.f.FileProcessor:123 [Thread-3129] - > ##### convert it to PNG: > > > > > > DEBUG 11-17 11:25:40.530 o.a.o.c.c.ImageConverter:78 [Thread-3129] - > > > ##### convertImage destinationFile: > > > ~openmeetings/data/upload/files/37551965-7f7b-49ab-bdb5-3391085e6fe1/3 > > > 7551965-7f7b-49ab-bdb5-3391085e6fe1.png > > > > > > DEBUG 11-17 11:25:40.532 o.a.o.u.p.ProcessHelper:85 [Thread-3129] - > > > START convertSinglePng ################# > > > > > > DEBUG 11-17 11:25:40.532 o.a.o.u.p.ProcessHelper:86 [Thread-3129] - > > > <path_to_imagemagick-7.0.9-2>/bin/convert > > > ~openmeetings/data/upload/files/37551965-7f7b-49ab-bdb5-3391085e6fe1/3 > > > 7551965-7f7b-49ab-bdb5-3391085e6fe1.jpg > > > ~openmeetings/data/upload/files/37551965-7f7b-49ab-bdb5-3391085e6fe1/3 > > > 7551965-7f7b-49ab-bdb5-3391085e6fe1.png > > > > > > DEBUG 11-17 11:25:40.539 o.a.o.u.p.ProcessHelper:92 [Thread-3129] - > > > END convertSinglePng ################# > > > > > > ERROR 11-17 11:25:40.540 o.a.o.c.c.ImageConverter:141 [Thread-3129] - > > > Error while getting dimensions > > > > > > java.io.FileNotFoundException: > > > ~openmeetings/data/upload/files/37551965-7f7b-49ab-bdb5-3391085e6fe1/3 > > > 7551965-7f7b-49ab-bdb5-3391085e6fe1.png (No such file or directory) > > > > > > at java.base/java.io.FileInputStream.open0(Native Method) > > > > > > at > > > java.base/java.io.FileInputStream.open(FileInputStream.java:219) > > > > > > at > > > java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) > > > > > > at > > > org.apache.openmeetings.core.converter.ImageConverter.initSize(ImageCo > > > nverter.java:133) > > > > > > at > > > org.apache.openmeetings.core.converter.ImageConverter.convertImage(Ima > > > geConverter.java:84) > > > > > > at > > > org.apache.openmeetings.core.converter.ImageConverter.convertImage(Ima > > > geConverter.java:70) > > > > > > at > > > org.apache.openmeetings.core.data.file.FileProcessor.processFile(FileP > > > rocessor.java:125) > > > > > > at > > > org.apache.openmeetings.core.data.file.FileProcessor.processFile(FileP > > > rocessor.java:91) > > > > > > at > > > org.apache.openmeetings.core.data.file.Wicket_Proxy_FileProcessor$$Fas > > > tClassByCGLIB$$6d986e8f.invoke(<generated>) > > > > > > at > > > net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > > > > > > at > > > org.apache.wicket.proxy.LazyInitProxyFactory$AbstractCGLibInterceptor. > > > intercept(LazyInitProxyFactory.java:364) > > > > > > at > > > org.apache.openmeetings.core.data.file.Wicket_Proxy_FileProcessor$$Enh > > > ancerByCGLIB$$3309365d.processFile(<generated>) > > > > > > at > > > org.apache.openmeetings.web.room.sidebar.UploadDialog.convertAll(Uploa > > > dDialog.java:295) > > > > > > at > > > org.apache.openmeetings.web.room.sidebar.UploadDialog.lambda$onSubmit$ > > > 0(UploadDialog.java:259) > > > > > > at java.base/java.lang.Thread.run(Thread.java:834) > > > > > > INFO 11-17 11:25:40.540 o.a.o.d.d.r.RoomDao:83 [Thread-3129] - [get]: > > > No room id given > > > > > > DEBUG 11-17 11:25:40.549 o.a.o.c.d.f.FileProcessor:136 [Thread-3129] - > > > fileId: 14 > > > > > > DEBUG 11-17 11:25:40.550 o.a.o.c.d.f.FileProcessor:97 [Thread-3129] - > > > Clean up was successful ? true > > > > > > DEBUG 11-17 11:25:41.392 o.a.o.d.d.f.FileItemDao:55 [nio-5080-exec-7] > > > - getByOwner() started > > > > > > DEBUG 11-17 11:25:41.395 o.a.o.d.d.f.FileItemDao:50 [nio-5080-exec-7] > > > - getByRoom roomId :: 5 > > > > > > > > > > > > > > > > > > > > > > > > JPEG > > > > > > > > > > > > DEBUG 11-17 11:27:11.002 o.a.o.c.d.f.FileProcessor:72 [Thread-3140] - > > > file extension: jpeg > > > > > > DEBUG 11-17 11:27:11.008 o.a.o.c.d.f.FileProcessor:76 [Thread-3140] - > > > isAsIs: false > > > > > > DEBUG 11-17 11:27:11.008 o.a.o.c.d.f.FileProcessor:106 [Thread-3140] - > > > writing file to: > > > ~openmeetings/data/upload/files/3b09a41b-a0c7-41a0-80f2-ab768be821a4/3 > > > b09a41b-a0c7-41a0-80f2-ab768be821a4.jpeg > > > > > > DEBUG 11-17 11:27:11.008 o.a.o.c.d.f.FileProcessor:123 [Thread-3140] - > ##### convert it to PNG: > > > > > > DEBUG 11-17 11:27:11.009 o.a.o.c.c.ImageConverter:78 [Thread-3140] - > > > ##### convertImage destinationFile: > > > ~openmeetings/data/upload/files/3b09a41b-a0c7-41a0-80f2-ab768be821a4/3 > > > b09a41b-a0c7-41a0-80f2-ab768be821a4.png > > > > > > DEBUG 11-17 11:27:11.013 o.a.o.u.p.ProcessHelper:85 [Thread-3140] - > > > START convertSinglePng ################# > > > > > > DEBUG 11-17 11:27:11.013 o.a.o.u.p.ProcessHelper:86 [Thread-3140] - > > > <path_to_imagemagick-7.0.9-2>/bin/convert > > > ~openmeetings/data/upload/files/3b09a41b-a0c7-41a0-80f2-ab768be821a4/3 > > > b09a41b-a0c7-41a0-80f2-ab768be821a4.jpeg > > > ~openmeetings/data/upload/files/3b09a41b-a0c7-41a0-80f2-ab768be821a4/3 > > > b09a41b-a0c7-41a0-80f2-ab768be821a4.png > > > > > > DEBUG 11-17 11:27:11.020 o.a.o.u.p.ProcessHelper:92 [Thread-3140] - > > > END convertSinglePng ################# > > > > > > ERROR 11-17 11:27:11.020 o.a.o.c.c.ImageConverter:141 [Thread-3140] - > > > Error while getting dimensions > > > > > > java.io.FileNotFoundException: > > > ~openmeetings/data/upload/files/3b09a41b-a0c7-41a0-80f2-ab768be821a4/3 > > > b09a41b-a0c7-41a0-80f2-ab768be821a4.png (No such file or directory) > > > > > > at java.base/java.io.FileInputStream.open0(Native Method) > > > > > > at > > > java.base/java.io.FileInputStream.open(FileInputStream.java:219) > > > > > > at > > > java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) > > > > > > at > > > org.apache.openmeetings.core.converter.ImageConverter.initSize(ImageCo > > > nverter.java:133) > > > > > > at > > > org.apache.openmeetings.core.converter.ImageConverter.convertImage(Ima > > > geConverter.java:84) > > > > > > at > > > org.apache.openmeetings.core.converter.ImageConverter.convertImage(Ima > > > geConverter.java:70) > > > > > > at > > > org.apache.openmeetings.core.data.file.FileProcessor.processFile(FileP > > > rocessor.java:125) > > > > > > at > > > org.apache.openmeetings.core.data.file.FileProcessor.processFile(FileP > > > rocessor.java:91) > > > > > > at > > > org.apache.openmeetings.core.data.file.Wicket_Proxy_FileProcessor$$Fas > > > tClassByCGLIB$$6d986e8f.invoke(<generated>) > > > > > > at > > > net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > > > > > > at > > > org.apache.wicket.proxy.LazyInitProxyFactory$AbstractCGLibInterceptor. > > > intercept(LazyInitProxyFactory.java:364) > > > > > > at > > > org.apache.openmeetings.core.data.file.Wicket_Proxy_FileProcessor$$Enh > > > ancerByCGLIB$$3309365d.processFile(<generated>) > > > > > > at > > > org.apache.openmeetings.web.room.sidebar.UploadDialog.convertAll(Uploa > > > dDialog.java:295) > > > > > > at > > > org.apache.openmeetings.web.room.sidebar.UploadDialog.lambda$onSubmit$ > > > 0(UploadDialog.java:259) > > > > > > at java.base/java.lang.Thread.run(Thread.java:834) > > > > > > INFO 11-17 11:27:11.020 o.a.o.d.d.r.RoomDao:83 [Thread-3140] - [get]: > > > No room id given > > > > > > DEBUG 11-17 11:27:11.030 o.a.o.c.d.f.FileProcessor:136 [Thread-3140] - > > > fileId: 15 > > > > > > DEBUG 11-17 11:27:11.030 o.a.o.c.d.f.FileProcessor:97 [Thread-3140] - > > > Clean up was successful ? true > > > > > > DEBUG 11-17 11:27:12.041 o.a.o.d.d.f.FileItemDao:55 [nio-5080-exec-4] > > > - getByOwner() started > > > > > > DEBUG 11-17 11:27:12.044 o.a.o.d.d.f.FileItemDao:50 [nio-5080-exec-4] > > > - getByRoom roomId :: 5 > > > > > > DEBUG 11-17 11:27:12.047 o.a.o.d.d.f.FileItemDao:55 [nio-5080-exec-4] > > > - getByOwner() started > > > > > > DEBUG 11-17 11:27:16.678 o.a.o.c.u.WebSocketHelper:205 > > > [nio-5080-exec-9] - Sending json WebSocket message to room: > > > {"type":"wb"} > > > > > > DEBUG 11-17 11:27:16.679 o.a.o.c.u.WebSocketHelper:205 > > > [nio-5080-exec-9] - Sending json WebSocket message to room: > > > {"type":"wb"} > > > > > > DEBUG 11-17 11:27:16.686 o.a.o.c.u.WebSocketHelper:205 > > > [nio-5080-exec-8] - Sending json WebSocket message to room: > > > {"type":"wb"} > > > > > > > > > > > > PDF > > > > > > > > > > > > DEBUG 11-17 11:28:39.612 o.a.o.c.d.f.FileProcessor:72 [Thread-3151] - > > > file extension: pdf > > > > > > DEBUG 11-17 11:28:39.613 o.a.o.c.d.f.FileProcessor:76 [Thread-3151] - > > > isAsIs: false > > > > > > DEBUG 11-17 11:28:39.613 o.a.o.c.d.f.FileProcessor:106 [Thread-3151] - > > > writing file to: > > > ~openmeetings/data/upload/files/dfd50878-a8a5-48b1-80b2-ebda212cd748/d > > > fd50878-a8a5-48b1-80b2-ebda212cd748.pdf > > > > > > DEBUG 11-17 11:28:39.614 o.a.o.c.d.f.FileProcessor:113 [Thread-3151] - > > > Office document: > > > ~openmeetings/data/upload/files/dfd50878-a8a5-48b1-80b2-ebda212cd748/d > > > fd50878-a8a5-48b1-80b2-ebda212cd748.pdf > > > > > > DEBUG 11-17 11:28:39.615 o.a.o.c.c.DocumentConverter:63 [Thread-3151] > > > - fullProcessing: false > > > > > > DEBUG 11-17 11:28:39.615 o.a.o.c.c.DocumentConverter:72 [Thread-3151] > > > - -- generate page images -- > > > > > > DEBUG 11-17 11:28:39.615 o.a.o.c.c.ImageConverter:180 [Thread-3151] - > > > convertDocument > > > > > > DEBUG 11-17 11:28:39.620 o.a.o.u.p.ProcessHelper:85 [Thread-3151] - > > > START convert PDF to images ################# > > > > > > DEBUG 11-17 11:28:39.620 o.a.o.u.p.ProcessHelper:86 [Thread-3151] - > > > <path_to_imagemagick-7.0.9-2>/bin/convert -density 150 > > > ~openmeetings/data/upload/files/dfd50878-a8a5-48b1-80b2-ebda212cd748/d > > > fd50878-a8a5-48b1-80b2-ebda212cd748.pdf -quality 90 > > > ~openmeetings/data/upload/files/dfd50878-a8a5-48b1-80b2-ebda212cd748/p > > > age-%04d.png > > > > > > DEBUG 11-17 11:28:39.626 o.a.o.u.p.ProcessHelper:92 [Thread-3151] - > > > END convert PDF to images ################# > > > > > > INFO 11-17 11:28:39.627 o.a.o.d.d.r.RoomDao:83 [Thread-3151] - [get]: > > > No room id given > > > > > > DEBUG 11-17 11:28:39.638 o.a.o.c.d.f.FileProcessor:136 [Thread-3151] - > > > fileId: 16 > > > > > > DEBUG 11-17 11:28:39.638 o.a.o.c.d.f.FileProcessor:97 [Thread-3151] - > > > Clean up was successful ? true > > > > > > DEBUG 11-17 11:28:40.647 o.a.o.d.d.f.FileItemDao:55 [io-5080-exec-10] > > > - getByOwner() started > > > > > > DEBUG 11-17 11:28:40.650 o.a.o.d.d.f.FileItemDao:50 [io-5080-exec-10] > > > - getByRoom roomId :: 5 > > > > > > DEBUG 11-17 11:28:40.654 o.a.o.d.d.f.FileItemDao:55 [io-5080-exec-10] > > > - getByOwner() started > > > > > > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > Sincerely, > > > > > > > > > > > > Hemant K. Sabat > > > > > > www.Coscend.com > > > > > > ------------------------------------------------------------------ > > > > > > Real-time, Interactive Video Collaboration, Tele-healthcare, > > > Tele-education, Telepresence Services, on the fly… > > > > > > ------------------------------------------------------------------ > > > > > > CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail > > > Messages from Coscend Communications Solutions' posted at: > > > http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html > > > > > > > > > > > > > > > -- > > WBR > > Maxim aka solomax > > -- WBR Maxim aka solomax
