how to convert ai to cdr for linux - linux

I need ai or eps files to cdr file command line converter.

Imagemagick is very good. Specifically the convert program.
Just type:
convert myimage.ai myimage.cdr
convert myimage.eps myimage.cdr
to convert either an .eps or an .ai to a .cdr

Related

Converting *.eps file to *.dxf using pstoedit linux

I am doing a process of converting SVG to EPS file and EPS file to DXF file format using shell scripting. While converting EPS file to DXF file using the following command:
pstoedit -dt -f dxf:-polyaslines ${epsfile} ${dxffile}
I am facing an issue in converting the text. In the output DXF file, the text are created using polylines, So there is no text property when I open the file in DXF viewer. I need the text should be created as text in DXF file. I gone through the following link http://manpages.ubuntu.com/manpages/hardy/man1/pstoedit.1.html. But I didn't got the exact solution what I need. Can any one help me with this?

On Linux, how do I take the TIFF that SANE's scanimage outputs and convert it to a JPEG with a pipe character?

I was thinking of using Imagemagick's convert program, as my preferred program nconvert doesn't work on the ARM CPU of the Raspberry pi.
Looking at the convert documentation , you can use a tiff:- to represent a tiff file on the standard input or output stream. And scanimage docs say you need to give the format to get TIFF. Putting this together, you'd have:
scanimage --format=tiff | convert tiff:- scan.jpg
I don't have access to a machine where I can test this.
Specify - as the input file to convert – e.g.,
scanimage | convert - output.jpg

Display binary vtk file in ascii format

I have a program which writes the output as binary vtk file. Being a binary file, I am not able to understand it. However, I would like to read the contents of the file for my own understanding. Is there a way to view it in ascii format (so that I could understand the data better)?
A hex-editor or dumper will let you view the contents of the file, but it will likely still be unreadable. As a binary file, its contents are meant to be interpreted by your machine / vtk, and will be nonsensical without knowing the vtk format specifications.
Common hex dumpers include xxd, od, or hexdump.

converting images to dds on linux command line

I have a bunch of images in jpeg format and i would like to batch convert them to .dds (DirectDraw surface).
Does anyone know a command line tool to achieve such a conversion?

How to convert wmf files to svg files

How to convert WMF file to svg file? I have around 550 WMF files to be converted to SVG format.
For one file, I opened the WMF file in VISIO and saved it as SVG format, but to convert around 550 files is a tedious process.
Please help me
Actually, these WMF files are the converted files from the PDF document. So, any better way to convert the PDF image to an svg image ? Currently I converted the PDF schematic diagram into wmf and opened it with visio, so that I can select each circuit or connector by ungrouping and later saved it to SVG format. This svg format, I will import into another tool, where i can select each circuit and connector for further work.
Thanks
Ramm
I'll just add a link to the Free EMF/WMF to SVG File Convert Tool 2.0 for future reference.
http://visualstudiogallery.msdn.microsoft.com/dc4e0116-a730-45d2-ae9f-03be676817ea
and the WMF2SVG project over at Github:
https://github.com/hidekatsu-izuno/wmf2svg
For batch processing WMF to SVG you can use Inkscape. You must use the command line. Start it with inkscape --shell.
Then to convert automagically use:
inkscape yourfile.wmf --export-plain-svg=yourfile.svg.
To make your life easier, here is a BATCH skript. Create a text file, name it wmftosvg.bat and place it into the folder with all wmf files. The content of the file:
#ECHO OFF
echo.
echo.
echo. Enter graphic format (like wmf):
echo.
set /p Input1= Graphic file type:
echo.
echo.
FOR %%I IN (*."%Input1%") DO (
setlocal enabledelayedexpansion
C:\Portables\InkscapePortable\App\Inkscape\inkscape "%%~nI.!Input1!" --export-plain-svg="%%~nI".svg
)
With the script above you can convert arbitrary graphics to SVG. Just enter the graphic format (file extension).
If you are familiar with C#/.NET you can use WMF library from CodePlex to create a converter to SVG. Since WMF supports only basic shapes (line, rectangle, polygon, arc) and no layers nor element nesting it should be quite easy to convert as SVG supports all those features and more.
Also check out this question: WMF / EMF File Format conversion C#
I used the wmf2svg Java project to convert a load of old wmf files.
Wrote a little bash script to convert all the files in my folder to .svg
shopt -s nullglob
for file in *; do
fname="${file%.*}.svg"
java -jar wmf2svg-0.9.11.jar $file $fname
done
The WMF2SVG project was moved over to GitHub
https://github.com/hidekatsu-izuno/wmf2svg
It works fabulously on my MacBook OS X 10.10.2

Resources