← Back to team overview

hugin-devs team mailing list archive

[Bug 1039222] Re: Feature request: nona take script from stdin

 

The workaround seems to work. The format of the script is wrong. Hugin does not support environment variables in pto file. The filename is relative to the working dir or absolute.
Check first with a working pto file. When it works here you can go further and experiment.
I'm not sure if the option with the dash works, because after the project filename you can specify further images (using the project file as template).

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/1039222

Title:
  Feature request: nona take script from stdin

Status in Hugin - Panorama Tools GUI:
  New

Bug description:
  It should be simple to optionally take script from stdin.

  Currently nona requires a pto file to be specified.

  Perhaps using a single dash could indicate stdin as is conventional
  among many programs.

  This is not a workaround:

  nona` -o TIFF_m /dev/stdin

  as demonstrated here:

  
  $ nona -o TIFF_m /dev/stdin <<END
  > v
  > p n"TIFF_m" v90 h1024 w1024
  > i n"~/beach.tif" f4 v360 y0   p0 h6203 w12406
  > END

  ContractViolation: 
  Precondition violation!
  Unable to open file '/dev/~/beach.tif'.
  (/Users/Shared/development/hugin_related/hugin-2011.4.0/mac/../src/foreign/vigra/vigra_impex/codecman:206)

  caught exception: 
  Precondition violation!
  Unable to open file '/dev/~/beach.tif'.
  (/Users/Shared/development/hugin_related/hugin-2011.4.0/mac/../src/foreign/vigra/vigra_impex/codecman:206)


  A good solution may be to use a dash to read from stdin like this:
  $ nona -o TIFF_m  -  <<END
  > v
  > p n"TIFF_m" v90 h1024 w1024
  > i n"~/beach.tif" f4 v360 y0   p0 h6203 w12406
  > END

To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/1039222/+subscriptions