I want to convert a .cgm file to an image file (.png) on windows.
Are there any freeware/opensource tools for this? I tried to ImageMagik but it does not support this operation. Commandline inteface will be an added advance if any of the tools provide it.
UniConvertor is open source, and the best choice in my opinion.
The windows binaries worked great for me, https://sk1project.net/uc2/download/
From a command line you'd simply type uniconvertor input.cgm output.png
You can try https://cortona3d.com/en/cortona2d-viewer-download. When installed it understand .cgm extension and directly opens in IE and you can view it/or take snapshot.
Other tool that you can try(but not free) is reaConverter(https://www.reaconverter.com/)
It has a nice command line interface that converts cgm to PNG directly
There is a free tool available XnView which is very handy when it comes to view, resize and edit your images. It supports more than 500 different formats. But you will have to download an additional plug-in https://www.cadsofttools.com/products/plugins-for-3d-party-programs/ It will enable your need to deal with CGM file formats.
Related
I am not sure it is the right place to ask such a question, sorry.
I have libre office, and a paper, which is written using a IEEE format.
Now when i try to export to PDF, and try to pass pdf-express it fails with error
Font Symbol is not embedded 10x
I do not know where is the problem, there is only 1 font: Times New Roman, of course different sizes.
I tried "Export as PDF..." and checked "Embed Fonts", but no chance so far.
A month ago, i tried the same paper with OpenOffice, and i do not remember such error, now i become to a situation that i have to change paper a bit, and try the same paper with LibreOffice i get this error. Is this error about LibreOffice?
Look at this answer, really simple!
How to repair a PDF file and embed missing fonts
Also, my comment as follows :)
On win32, if you have installed ghostScript, the command may look like:
gswin32c -sFONTPATH=C:\Windows\Fonts -o output-pdf-with-embedded-fonts.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress input-pdf-where-some-fonts-are-not-embedded.pdf
(find the exe file on your system, maybe add it to PATH -- the environment variable, if necessary)
Open this PDF file with Adobe acrobat, then choose file->print. Use adobe PDF as the printer to print the file and save it as pdf file. All fonts will be embedded.
I also faced the same problem and I think simply by creating the PDF file using PDF express using your source file is the simplest and easiest solution. If you are using latest then just zip or rar your source file (dvi file, eps etc.) and then just build the pdf file using PDF Express. This will solve your problem. I have found one article IEEE PDF Express Error Message – Font is not Embedded Solution which can help you in this regard.
Generate ps from pdf using pdftops, using Xpdf.
Use Ghostscript to embed fonts:
gsWin64 -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dPDFSETTINGS=/printer
-dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true
-dEmbedAllFonts=true -sOutputFile=d:\Output_filename.pdf Input_filename.ps
For iPhone programming, I need my application icon in many sizes.
Rather than have my designer export one by one, is there a way I can script photoshop, illustrator, or just use Python or something to convert a .PSD or .AI file into several different sizes of .PNG?
My best guess would be to create an action in Photosop (sort of making a Macro) and doing a batch in the File -> Automate -> Batch option.
Check this link out for more info (Mac based tutorial but i've done it in the PC version).
I want to let a user upload a PNG-file with alpha transparency and have it compiled by the server to a swf-file with jpeg compression on the embedded PNG-file.
How can I make this happen?
I thought first I'd just construct a class and compile it with Flex Framework, but Flex does not compress the embedded PNG-files. You who have tried have probably ended up making an assets.swf file compiled from within the Flash IDE.
Any thoughts appreciated.
Kind regards,
nitech
In the swftools package there is a command png2swf. Use the -j switch for jpeg compression.
Try ImageMagick, I recall seeing it used by a lot of shared-hosting web-servers. It can be executed on the command line or in scripts.
What I'd like to be able to do is download any web page, and be able to view it offline.
It seems like html WebKit views cannot be converted to PDFs (on the Mac, you could 'print' a PDF, but that isn't possible on iPhone?).
So, the only way is to save the actual resources - save the html, the step thru each image, css, js file and save it locally. Then maybe alter the urls within the code so they point to the right place...etc ...etc...
Is there a standard way to do this?
Or, is there an open source project (in any programming lang) which does this kind of thing?
There's an excellent webkit html to pdf converter appropriately called wkhtmltopdf. Given the reources available on the iphone and its toolkits, I think it'd be easy to compile a version for the i-Phone ('think' being the operative word). We've managed to use the tool in a Windows, Linux and Solaris environment with absolutely no bugs. Here's the link:
http://code.google.com/p/wkhtmltopdf/
I need to add text string to a TIFF image. I am planning to use libTIFF for editing the TIFF image. The plan is to convert text to image using freetype2 and then somehow render the text image on to TIFF. Is this the right approach?
Any pointers on how to convert text to image? I saw the sample code of ft2 - initialising the library, creating face and then setting character sizes. But not sure what to do next? any pointers appreaciated.
One way could be using ImageMagick. They have tools for image composition and text rendering. (and many more)
Although ImageMagick is primarily used from the command line (especially in web environments) several language interfaces are available, too. Java, C, C++, ...
ImgSource is a really nice library for C/C++ on Windows, and it can do this out of the box.
http://www.smalleranimals.com/isource.htm
It's not free, but it's pretty cheap ($59)
You don't tell us which language you need to use, should it be portable or for a given platform, etc.
Using a ready to use existing graphic library, like the (big!) ImageMagick or others like libGD or DevIL might be the easiest way, lot of them have binding for lot of languages.
if youre on windows and in c++ then it's pretty easy to use gdiplus for drawing fonts. you have access to any installed font and you can save the raster out as tiff or jpeg etc as well using the one api.
of course you could also use some combo of freetype and libtiff, but you'll have to build those libs for win32. not that its hard, just more fussing around you may not want to do.