Updated: Fri Mar 12, 2010 (22:00), A PHP / MySQL professional (10 yrs.exp.) is seeking employment outside Ukraine, CV and contact pages available at this site.

Welcome!

Contains materials for dummies This blog is for Linux dummies as just I am.

This blog contains various solutions and how-toes on the current release of Fedora Linux distribution and several Linux articles and tutorials.

View a PHP / MySQL / AJAX / JAVASCRIPT Freelancer Programmer profile on LinkedIn Follow me on twitter

Fedora Availability

Historically Test and General Availability releases happen at 10:00am Eastern US Time...

Announcement

A php/mysql freelancer programmer since 2001 is looking for contract work. Please use contact form at this page.

The full resume with examples of PHP/MySQL/Javascript projects, working experience and recommendations is available online from this page.

Get ioncube encoder

Ioncube encoder is the best solution for php developers

Ioncube encoder is the best solution for a php developer

Path: Blog > Linux > Software > Uniconverter and sK1 to Read Corel Draw Format in Linux

Uniconverter and sK1 to Read Corel Draw Format in Linux

I had some situation when my designer sent me a pretty nice logo in a .cdr (Corel Draw) format which I wanted to use in my web site. Searching over the internet showed there is a vector graphics editor which can handle this format, sK1.

I was unlucky to make it work under Fedora 11 and I could not locate how to handle the error I was getting. Neither installing with yum, nor compiling worked out.  I was constantly getting the same error (lack of education in python is a heavy burden that does not allow me to sleep):

$ sk1
python: Objects/stringobject.c:115: PyString_FromString: Assertion `str != ((void *)0)' failed.
/usr/bin/sk1: line 23:  4906 Aborted                 python -c "import sk1" "$1"

As soon as my goal was not to edit these files under Linux but only to read and use as graphics artwork, I thought that simply converting them in command line should be pretty much enough. So, I installed a converter I found at sK1 project web site.

$ yum search uniconv
Loaded plugins: dellsysidplugin2, fastestmirror, refresh-packagekit
================== Matched: uniconv
UniConvertor.x86_64 : Universal vector graphics translator
uniconvertor.x86_64 : Universal vector graphics translator

Fedora 11 repos contain Uniconverter, but, remembering the sad experience I described above, I grabbed the source code from the sK1 web site and built my own rpm.

mkdir -p ~/software/ && cd ~/software/
wget http://sk1project.org/modules.php?name=Products&product=uniconvertor&op=download
tar xvfz uniconvertor-1.1.4.tar.gz
cd UniConvertor-1.1.4/
python setup.py bdist_rpm
sudo yum -y localinstall --nogpgcheck dist/UniConvertor-1.1.4-1.x86_64.rpm
uniconv

Quite nice, the help section says:

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

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: uniconv drawing.cdr drawing.svg

Converting between formats works out great.

Support this site:        

Leave a comment

You must be logged in to post a comment.

Get a Free Web Project Quote from a PHP Freelancer Consultant


 
 
 
 

Fight Spam!   Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory       Programming Blog Directory
Software   Top Blogs

blogarama - the blog directory