POV-Ray : Newsgroups : povray.general : Image resolution : Re: Image resolution Server Time
31 Jul 2024 20:19:17 EDT (-0400)
  Re: Image resolution  
From: Warp
Date: 15 Sep 2006 22:11:55
Message: <450b5d6b@news.povray.org>
Eero Ahonen <aer### [at] removethiszbxtnetinvalid> wrote:
> 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

  It would be easier to just use the command-line parameter:
Declare=input_image_width=`whatever`

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.