TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Image compositing language?

9 pointsby masonicb00mover 6 years ago
Is there a good language for compositing raster graphics? Putting different sub-images in different places, adding text, ... that sort of thing.

4 comments

gus_massaover 6 years ago
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>
rgovostesover 6 years ago
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.
bananicornover 6 years ago
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.
pzoneover 6 years ago
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 未加载