TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Image compositing language?

9 点作者 masonicb00m超过 6 年前
Is there a good language for compositing raster graphics? Putting different sub-images in different places, adding text, ... that sort of thing.

4 条评论

gus_massa超过 6 年前
I&#x27;m not sure if this is what you are looking for, but ImageMagic can do a lot of things like that. See for example <a href="https:&#x2F;&#x2F;imagemagick.org&#x2F;Usage&#x2F;anim_basics&#x2F;" rel="nofollow">https:&#x2F;&#x2F;imagemagick.org&#x2F;Usage&#x2F;anim_basics&#x2F;</a><p>Also, you can use the image library of Racket. You can mix bitmaps and vectorial images. See for example the <a href="https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;quick&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;docs.racket-lang.org&#x2F;quick&#x2F;index.html</a>
rgovostes超过 6 年前
Processing -- <a href="https:&#x2F;&#x2F;processing.org" rel="nofollow">https:&#x2F;&#x2F;processing.org</a> -- is one of the easiest and most popular languages for doing 2D graphics (and some 3D stuff as well). It&#x27;s Java based, though there are ports to JavaScript such as p5.js that make it mostly seamless to export your code to the web.<p>The language and IDE are designed for beginners but it is not limited by it, and in fact many professional designers use it still. The documentation is great, with simple live examples of virtually every function. Here&#x27;s save() for writing out an image file: <a href="https:&#x2F;&#x2F;www.processing.org&#x2F;reference&#x2F;save_.html" rel="nofollow">https:&#x2F;&#x2F;www.processing.org&#x2F;reference&#x2F;save_.html</a><p>More recently, they&#x27;ve opened it up to make it easy to get third-party libraries for making web requests, running physics simulations, or augmenting the IDE itself.
bananicorn超过 6 年前
Well, SVG, while actually just being XML, supports embedded pngs&#x2F;jpegs and can be exported to most raster-graphics formats from the command line. Not sure if it&#x27;s what you&#x27;re looking for, but personally I love the possibility of being able to scale stuff as I see fit.
pzone超过 6 年前
Depends on your use case, but the more common paradigm for reusable and procedural image compositing is the idea of a node graph. Prople prefer to work this way for the interactive visualization. This kind of functionality is found in Natron and Blender (free software) as well as Nuke, Fusion and Houdini (paid.) All of these programs can be scripted with Python.<p>If you&#x27;re looking for something to run headless on a server, Imagemagick is a good choice.
评论 #18053719 未加载