Page 2 of 2

Re: .cdr file !!

Posted: 2013-09-19T08:10:12-07:00
by dlemstra
Does your %PATH% contain the directory where uniconvertor is installed?

Re: .cdr file !!

Posted: 2013-09-19T10:33:18-07:00
by Gaploid
Yes i have:
C:\Program Files (x86)\sK1 Project\UniConvertor-1.1.5\;C:\Program Files (x86)\sK1 Project\UniConvertor-1.1.5\DLLs

But If Open cmd and try to start UniConvertor It said that can not recognize such command

Re: .cdr file !!

Posted: 2013-09-19T11:17:53-07:00
by dlemstra
I did not install uniconverter but in the old packages they use "uniconv.exe" instead of "uniconverter.exe". Can you try:

Code: Select all

<delegate decode="cdr" command=""uniconv" "%i" "%o.svg"; rename "%o.svg" "%o""/>

Re: .cdr file !!

Posted: 2013-09-19T13:27:18-07:00
by Gaploid
There is no such exe file. There are only:
1. uniconvertor.cmd (console converter)
2. uniconvw.vbs (GUI)

I`v tried to put manually link to uniconvertor.cmd in delegate.xml but it does not work too.

Re: .cdr file !!

Posted: 2013-09-19T13:36:32-07:00
by dlemstra
Could you try this:

Code: Select all

<delegate decode="cdr" command=""pyVM" -c "from uniconvertor import uniconv_run; uniconv_run();" "%i" "%o.svg"; rename "%o.svg" "%o""/>

Re: .cdr file !!

Posted: 2013-09-19T14:16:07-07:00
by Gaploid
Same error as I add full path to uniconvertor.cmd

Code: Select all

C:\Users\vkiselev\Desktop\ImageMagick-6.8.6-10>convert.exe -verbose C:\Users\vki
selev\Desktop\samples\template021-worldmaps3.cdr c:\temp\sdfdsfdsfdsfdsfsdf.jpeg

"pyVM" -c "from uniconvertor import uniconv_run; uniconv_run();" "C:/Users/vkise
lev/AppData/Local/Temp/magick-9320aUCEXnfICaej" "C:/Users/vkiselev/AppData/Local
/Temp/magick-9320Wk1p3sc-PUh5.svg"; rename "C:/Users/vkiselev/AppData/Local/Temp
/magick-9320Wk1p3sc-PUh5.svg" "C:/Users/vkiselev/AppData/Local/Temp/magick-9320W
k1p3sc-PUh5"

ERROR: C:/Users/vkiselev/AppData/Local/Temp/magick-9320Wk1p3sc-PUh5.svg file is
not found!

UniConvertor 1.1.5

USAGE: uniconvertor [OPTIONS] [INPUT FILE] [OUTPUT FILE]

Converts one vector graphics format to another using sK1 engine.
sK1 Team (http://sk1project.org), copyright (C) 2007-2009 by Igor E. Novikov

 Allowed input formats:
     AI  - Adobe Illustrator files (postscript based)
     CDR - CorelDRAW Graphics files (7-X3,X4 versions)
     CDT - CorelDRAW templates files (7-X3,X4 versions)
     CCX - Corel Compressed Exchange files
     CMX - Corel Presentation Exchange files (CMX1 format)
     SVG - Scalable Vector Graphics files
     FIG - XFig files
     CGM - Computer Graphics Metafile files
     AFF - Draw files
     WMF - Windows Metafile files
     SK  - Sketch/Skencil files
     SK1 - sK1 vector graphics files
     PLT - HPGL for cutting plotter files
     DXF - Autocad Drawing Exchange Format
     DST - Design format (Tajima)
     PES - Embroidery file format (Brother)
     EXP - Embroidery file format (Melco)
     PCS - Design format (Pfaff home)


 Allowed output formats:
     AI  - Adobe Illustrator files (postscript based)
     SVG - Scalable Vector Graphics files
     CGM - Computer Graphics Metafile files
     WMF - Windows Metafile files
     SK  - Sketch/Skencil files
     SK1 - sK1 vector graphics files
     PDF - Portable Document Format
     PS  - PostScript
     PLT - HPGL for cutting plotter files

Example: uniconvertor drawing.cdr drawing.svg



convert.exe: Delegate failed `"pyVM" -c "from uniconvertor import uniconv_run; u
niconv_run();" "%i" "%o.svg"; rename "%o.svg" "%o"' @ error/delegate.c/InvokeDel
egate/1065.
convert.exe: unable to open image `C:/Users/vkiselev/AppData/Local/Temp/magick-9
320kbn-JIZrEpxY': No such file or directory @ error/blob.c/OpenBlob/2643.
convert.exe: unable to open file `C:/Users/vkiselev/AppData/Local/Temp/magick-93
20kbn-JIZrEpxY': No such file or directory @ error/constitute.c/ReadImage/591.
convert.exe: no images defined `c:\temp\sdfdsfdsfdsfdsfsdf.jpeg' @ error/convert
.c/ConvertImageCommand/3127.

C:\Users\vkiselev\Desktop\ImageMagick-6.8.6-10>

Re: .cdr file !!

Posted: 2013-09-19T14:44:09-07:00
by Gaploid
Just found that

Code: Select all

<delegate decode="cdr" command=""uniconv" "%i" "%o.svg"; rename "%o.svg" "%o""/>
in windows command line you can not use ";" to separate commands. Instead of that I`v change it to &&

After that uniconvert successful convert .svg file to temp file but I`v got another error:

Code: Select all

C:\Users\vkiselev\Desktop\ImageMagick-6.8.6-10>convert.exe -verbose C:\Users\vki
selev\Desktop\samples\template021-worldmaps3.cdr c:\temp\sdfdsfdsfdsfdsfsdf.jpeg

"C:/Program Files (x86)/sK1 Project/UniConvertor-1.1.5/uniconvertor.cmd" "C:/Use
rs/vkiselev/AppData/Local/Temp/magick-5176S1KI8wrCw1Iq" "C:/Users/vkiselev/AppDa
ta/Local/Temp/magick-5176dHAvwmP-Haid.svg" && rename "C:/Users/vkiselev/AppData/
Local/Temp/magick-5176dHAvwmP-Haid.svg" "C:/Users/vkiselev/AppData/Local/Temp/ma
gick-5176dHAvwmP-Haid"
The system cannot find the path specified.
convert.exe: Delegate failed `"C:/Program Files (x86)/sK1 Project/UniConvertor-1
.1.5/uniconvertor.cmd" "%i" "%o.svg" && rename "%o.svg" "%o"' @ error/delegate.c
/InvokeDelegate/1065.
convert.exe: unable to open image `C:/Users/vkiselev/AppData/Local/Temp/magick-5
176-tYXIhtv--hm': No such file or directory @ error/blob.c/OpenBlob/2643.
convert.exe: unable to open file `C:/Users/vkiselev/AppData/Local/Temp/magick-51
76-tYXIhtv--hm': No such file or directory @ error/constitute.c/ReadImage/591.
convert.exe: no images defined `c:\temp\sdfdsfdsfdsfdsfsdf.jpeg' @ error/convert
.c/ConvertImageCommand/3127.
Looks like imagemagick trying to find another file name after uniconvert

Re: .cdr file !!

Posted: 2013-09-20T06:19:19-07:00
by Gaploid
Just found the problem. The right delegate lane should be like this:
<delegate decode="cdr" command=""uniconvertor.cmd" "%i" "%u.svg" && move /Y "%u.svg" "%o""/>

I`ve changed:
  • "&&" from ";"
  • change command "rename" to "move" cause rename does not accept path in second param
  • change uniconvertor to uniconvertor.cmd for 1.1.15 version uniconverter