Am 15.04.2010 19:41, schrieb John McAllister:
["file.jpg",720,560], ...

How can I convert folder listings (Win) into a suitable, specifiable text 
representation?

use imagemagick and a shell script.
identify -format "[\"%f\",%w,%h]\n" *.jpg
should give you the JS arrays, one per line. You can pipe this into a text file using f.e.
identify -format "[\"%f\",%w,%h];\n" *.jpg > arrays.js

See http://www.imagemagick.org/script/escape.php for details on the parameter syntax.

Depending on your windows version shell uses ANSI character set and javascript will assume Unicode. So special characters like german umlauts will be changed. If this happens you might want to read http://ss64.com/nt/cmd.html

--
Erik Krause
http://www.erik-krause.de

--
You received this message because you are subscribed to the Google Groups "hugin and 
other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

To unsubscribe, reply using "remove me" as the subject.

Reply via email to