sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
how to use uniconv?
Kirzz
#1 Print Post
Posted on 06-12-2009 09:51
Member

Posts: 2
Joined: 06.12.09

Dear,

I have hundreds of .CDR-Files Ver. 5 - 12 on Windows XP 32 SP 3

I have installed the latest Vers. of Python (2.6) and UniConvertor.
I have never worked with a command line tool, so I need your help.

My Situation:
My CDR-Files are in the Directory of C:\CDRFiles\
Directory CDRFiles has SubDirectorys
Ownclips <DIR>
PLOT <DIR>
Wappen <DIR>

There are approximately 850 CDR files in the folders and I want to convert it in one go in EPS or ai files. Is it possible to convert a complete folder?

Why?: Because I change from Win32 to Mac OS X and Illustrator CS4, for that I must convert the CDR, to the best file form for Illustrator, - probably EPS?

If Yes, I need help what I have to do?
 
igor
#2 Print Post
Posted on 06-12-2009 15:57
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

Hi,

Thank you for your interest to our software.

Please note that UniConvertor can translates CDR files from 7 up to X4 version. So files 5 and 6 versions will be unrecognized.

Concerning bulk operations unfortunately UniConvertor doesn't support such feature. But there is no problem to write small Python wrapper for this. I will try preparing such wrapper for you.
Regards,

Igor Novikov
sK1 Project
 
Kirzz
#3 Print Post
Posted on 08-12-2009 17:21
Member

Posts: 2
Joined: 06.12.09

Thanks!

I'm Looking forward for it!
I hope you find time for it Smile
 
m_ardito
#4 Print Post
Posted on 05-01-2010 09:07
Member

Posts: 4
Joined: 05.01.10

Hi!
i was just looking for infos to do exactly the same thing, i thought to learn some useful python to do it, but your version will be surely best than mine, and i could learn some good python from it!

i have the corel 7 clipart cd to convert (btw, more than 28.000 cdr files!), and it has a quite nested tree folder structure.
it would be nice to be able to convert the base folder and all the subfolders to another folder, in order to get a "replica" of the cdr folders in svg format.

by the way i would also like to get a sort of "preview" index, like an html thumbnail index to quickly explore all the files, as i did in the original paper printed index of the corel suite, now that wonderful book is broken and some sheets lost. it also had fonts, textures, it was quite useful as an "index with previews"...

let us know if/when you post that wwrapper somewhere, it would be very appreciated, as your kindness...Grin

Marco
 
m_ardito
#5 Print Post
Posted on 06-01-2010 11:19
Member

Posts: 4
Joined: 05.01.10

ok i just managed to use os.walk to get a list of all the cdr files, and i'm ready to pass each one to uniconvertor to make them svg, in another tree folder structure. i am struggling to understand how can i import uniconvert in my massconvert.py script?

looking at the __init__, uniconv() expects three command line parameters(options, inputfile, outputfile), how can i call a "massuniconv()" function getting the same parameters but called from the script? or should i invoke a "system" python call from the script from my massconvert.py script? i think that would be worse for performance reasons...? i know this is my poor python knowledge, but... anyone can help me? Thanks Smile
 
m_ardito
#6 Print Post
Posted on 06-01-2010 18:42
Member

Posts: 4
Joined: 05.01.10

well, i managed to convert all of the cdr (28771 out of 28778 files, it must have failed on 7....). i wrote a small script using a system call, instead of importing uniconvert modules, i gave up on that. the script took a few hours on my notebook (about 6-7 hours).

attached is my little script (python 2.6): as i said before it converts all of the files, no matter if nested in folders, and creates new svg files in an equivalent tree folder structure but named 'svg', in the same parent folder of the source one.

i hope this can be useful to others...

Marco
m_ardito attached the following file:
mass_uniconvert.zip
 
max
#7 Print Post
Posted on 06-01-2010 18:57
Administrator

Posts: 63
Joined: 09.05.09

http://maxedrom.b...chive.html

Hi m_ardito. I also dealt with this matter.
For reference there are a couple of scripts for Linux and Windows.
But they work only in the current directory.

Thank you.
Regards,

Maxim Barabash
sK1 Project
 
puszczyk
#8 Print Post
Posted on 08-02-2011 02:12
Member

Posts: 1
Joined: 08.02.11

Hello to all. I have the same problem - hundreds of cdrs and no Corel (I'm using Linux Mint). I'm not a programmer, nor even a scripter - just a regular guy who got fed up with MS, so I would be grateful for a simple how-to on batch cdr to svg conversion on linux. Thank you in advance.
 
max
#9 Print Post
Posted on 08-02-2011 12:26
Administrator

Posts: 63
Joined: 09.05.09

Hi puszczyk.
1. Download and install uniconvertor ver.1.1.5
2. start the console and go to the directory with the files cdr, by typing
Download source  Code
cd <directory name>



3. typing
Download source  Code
for i in `find . -print | grep -i '.cdr'`; do uniconvertor $i $i.svg; echo "converted" $i; done



4. waiting for the end of conversion.
max attached the following image:


[95.45Kb]
Regards,

Maxim Barabash
sK1 Project
Edited by max on 08-02-2011 12:29
 
Jump to Forum: