which open source software options exist for generating terminal graphics? I mean, there is for instance the nice matplotlib, which can generate beautiful plots from data, in PNG or similar formats. But there are similar alternatives for generating just kind of ascii graphics?
Thanks
AAlib and libcaca can both be used to render images in character cells.
Related
i searched all around the web and could not find a way to export a CPN (Colored Petri Nets) model in cpntools to a jpg or png image.
here is a fuzzy article but not so informative and helpful.
is there any idea?
You can use the "Print net" tool to export your Petri net as an EPS file, then use an image conversion program to convert that to jpg or png.
More information can be found here:
http://cpntools.org/documentation/gui/palettes/net_tools/print_net
Note that I have had issues loading the exported EPS format in some editors (e.g. GIMP), but online conversion tools usually manage to convert them to other formats fine.
I need to convert a grayscale heightmap I created into a RAW file to use in Unity. I have searched Google for a way to do this for a couple of hours, to no avail. Is there a way to do this without Photoshop? My file was saved as a JPG, but I could convert to a BMP if necessary.
Hi there are plenty of tools which work with the RAW format other than photoshop. Try using http://www.darktable.org/
Also for Unity it's just a matrix of 16 bit integers so fairly sure you could hack something up in octave or matlab pretty quickly to do the job.
How do I convert an svg file to an image using Go ?
I found the amazing svgo library and would like to use it to generate a custom set of playing cards. The idea is to store the text and layout of a card in a text file and then read and process it with go. This would be a huge improvement of my current workflow where I use gimp to edit each individual card. The problem is that I need to have an image of the card for printing. Preferably png since the printing script so far only works with that format. But I could easily adapt it to accept jpeg, too.
Unfortunately svgo doesn't seem to offer export functionality. Can you recommend a go library to convert svg to png ?
One possible strategy is to write your SVG to files and invoke an external tool to convert them. For example, ImageMagick and its related GraphicsMagick will both convert SVG to PNG via command-line options. You would need to use the convert verb, possibly within their batch support if you're converting lots of images at once.
GraphicsMagick has bindings for C and Go and other languages that you could use directly from your Go scripts, although I've not tried this myself.
I can't find a native Go library to do it, but there seems to be a way to convert an HTML canvas element to PNG quite simply in Javascript.
You can therefore output SVG to an HTML canvas element, and then use JS to export to SVG.
See this answer for details.
This is not technically a programming question, but I believe its still relevant to software developers.
My question is: What image editors are there that are targeted at programmers. Specifically editors with the features that the older generation of image editors had. Modern image editors (such as The Gimp) seem to abstract away the vagaries of each image format.
A programmers editor would let one:
Set the index of the transparent color when working with formats like GIF.
View and edit the color table for palletized formats.
(obviously) load and save a wide variety of formats (gif, png, tiff, pcx, bmp, jpeg, ico etc.) without loosing any metadata relevant to the format.
view and edit of said metadata.
work with multiframe (animated gif) or multi image (ico) formats.
edit the alpha channel for image formats with alpha.
Do such beasts no longer exist?
I use Gimp for such purposes...
The only trouble with it - it is uncomfortable with ico files.
If you are comfortable with a command-line interface, I think you can do all the above with ImageMagick or GraphicsMagick.
Paint.Net for Windows or Pinta for most platforms, not as complicated as Gimp or Photoshiop but with enough features.
i've got a hundred pages long high quality PDF (66MB) that needs to be converted to TIFF format (300 dpi, as high quality as possible :P).
I've tried Imagemagick/ghostscript, jpedal, Poppler, XPDF but they all produce different results due to the strange gradient of the PDF itself (blame the designers) and some actually take forever....
Does any one know any alternatives that i can try?
Thanks in advance,
M.
The GIMP does a pretty good job reading PDF files. Here's a Windows installer.
The GIMP will load each page of the PDF into its own layer, so you'll have to export each one as a TIFF. Luckily, this can be automated. I have no experience with the linked script, but if it doesn't suit your needs then it shouldn't be hard to modify it or write a quick script of your own to export each layer as a TIFF image.
Try using the Adobe Reader to flatten your PDF to PostScript (newer versions do that from the command line, but since it's just one file, you can print to a PS file) before going through Ghostscript. That might remove some weird PDF issues.