ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Parsing image pixels with lua
@ 2011-08-02 15:59 Stefan Müller
  0 siblings, 0 replies; only message in thread
From: Stefan Müller @ 2011-08-02 15:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi list,

I'm trying to create a ConTeXt document that searches for image-files 
(png, jpg, any, whatever... that's not important) in the same directory 
and processes all found images in a certain way.  I'm pretty sure that 
parsing the directory should work with lua in ConTeXt, but I'm stuck at 
the part where I want lua to process the image.  Is it somehow possible 
to get the color of an arbitrary pixel in the image (file) given the 
vertical and horizontal position of the pixel?

I could process the images beforehand with another application (which 
does not yet exist) and write its output to ASCII files or something, 
but I rather avoid that.  If that's the only possibility, how would I 
call another application while processing a tex file with ConTeXt?

Thanks in advance for any hints,
Stefan
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-02 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-02 15:59 Parsing image pixels with lua Stefan Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).