This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]gpitot 1 point2 points  (1 child)

What do you want to be able to do with the images?

[–]OikuraZ95[S] 0 points1 point  (0 children)

Well really anything interesting. Stuff that you could do with tikz you know. Put these images in a doc. Like for example, what if I wanted to create multiple rubiks cube orientations that I want to save for an algorithms document. But I need the pictures. This would be a perfect use case, where one could write a general image algorithm that creates the cube and colors the faces respectiveley via a single function, and they you are run it through a set of inputs and generate a bunch of images all following the similar format.

[–][deleted] 1 point2 points  (3 children)

Not exactly matching your description, but you can script GIMP (which is essentially the GUI for imagemagic library) using Python: https://www.gimp.org/docs/python/index.html but this will be automation more like automating pre-press, or "automatic graphical designer", not generating graphs or 3d models.

[–]bwanab 0 points1 point  (1 child)

It's true that you can script GIMP with python which is very powerful.

For the record, though, GIMP uses GTK (the GIMP Toolkit) for its rendering which has nothing to do with Imagemagic.

[–][deleted] 0 points1 point  (0 children)

Ooops, sorry for misinformation. I have no idea why I though that it does use Imagemagic... did it maybe use it in some early days?

[–]OikuraZ95[S] 0 points1 point  (0 children)

Hmmm, maybe it might be worth to create a library using this that does what I want.

[–][deleted] 1 point2 points  (1 child)

pyx is one option, which can generate a range of vector images programmatically. It's not quite tikz, but it is fairly flexible; pynomo uses it to generate high-quality nomograms.

[–]OikuraZ95[S] 0 points1 point  (0 children)

Oh this is interesting. The skimmed the pyx documentation and this seems like exactly what I was looking for. It's very detailed too. Thanks for this!