Trevor G Quayle wrote:
> Does anyone know of a way to automatically detect the resolution of an input
> image in POV?
>
> -tgq
With external scripting:
sed -e 's/input_image_width/`imgsize input_image.jpg |cut -d "\"" -f
2`/g' -e 's/input_image_height/`imgsize input_image.jpg |cut -d "\"" -f
4`/g' file.pov >file2.pov && povray +Ifile2.pov
Requires imgsize to be installed - comes with dev-perl/ImageSize in case
of Gentoo.
--
Eero "Aero" Ahonen
http://www.zbxt.net
aer### [at] removethis zbxt net invalid
Post a reply to this message
|