使用Ruby或Python创建静态图形文件(png,gif,jpg) [英] Create static graphics files (png, gif, jpg) using Ruby or Python

查看:126
本文介绍了使用Ruby或Python创建静态图形文件(png,gif,jpg)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想根据用户输入即时创建图形图像,然后将该图像作为PNG文件呈现(如果需要,则为jpg或gif,但首选PNG)。



这实际上是一个占星术应用程序;我想要做的就是在PNG中生成显示图表。



Python或Ruby很好;实际上,可用的库可能会决定我使用的语言。



更新



下面是一个图像示例:< br>

nofollow noreferrer> Gruff 易于使用,当我在你的鞋子。
无耻的博客插件

I'd like to create a graphic image on the fly based on user input, and then present that image as a PNG file (or jpg or gif if necessary, but PNG is preferred).

This is actually for an astrology application; what I'd like to do is generate the chart in PNG for display.

Python or Ruby is fine; in fact, the library available may determine the language I use.

Update

Here's an example image:

解决方案

I found Gruff easy to use when I was in your shoes. Shameless blog plug.

这篇关于使用Ruby或Python创建静态图形文件(png,gif,jpg)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆