.cdr file !!

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: .cdr file !!

Post by dlemstra »

Does your %PATH% contain the directory where uniconvertor is installed?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Gaploid
Posts: 17
Joined: 2013-08-25T03:51:34-07:00
Authentication code: 6789

Re: .cdr file !!

Post 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: .cdr file !!

Post 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""/>
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Gaploid
Posts: 17
Joined: 2013-08-25T03:51:34-07:00
Authentication code: 6789

Re: .cdr file !!

Post 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.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: .cdr file !!

Post 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""/>
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Gaploid
Posts: 17
Joined: 2013-08-25T03:51:34-07:00
Authentication code: 6789

Re: .cdr file !!

Post 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>
Gaploid
Posts: 17
Joined: 2013-08-25T03:51:34-07:00
Authentication code: 6789

Re: .cdr file !!

Post 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
Gaploid
Posts: 17
Joined: 2013-08-25T03:51:34-07:00
Authentication code: 6789

Re: .cdr file !!

Post 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
Post Reply