2009/5/21 Bruno Postle <[email protected]>
>
>
> (ps did you ever look at the sips command to replace ImageMagick for
> converting from TIFF to JPEG in erect2qtvr)
>
> --
> Bruno
>
Yes, today I did.
I get errors though. I tried in erect2qtvr:
# generate JPEG cubefaces
for my $index (0 .. 5)
{
if ($^O eq "darwin")
{
system ('sips', " -s format jpeg -s formatOptions $quality
$prefix-face000$index.tif --out $prefix-face000$index.jpg");
# system ('sips', "-s format jpeg -s formatOptions", $quality,
"$prefix-face000$index.tif", "--out", "$prefix-face000$index.jpg");
}
else
{
system ('convert', '-quality', $quality, "$prefix-face000$index.tif",
"$prefix-face000$index.jpg");
}
}
As you can see I tried two options for sips, also with single quotes
compared to double quotes. Nothing helps.
If I use the first option I get:
Warning: -s format jpeg -s formatOptions 70
/var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/Z9eWno4ZDk/cube-face0004.tif
--out
/var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/Z9eWno4ZDk/cube-face0004.jpg
not a valid file - skipping
Error 4: no file was specified
If I use the seond option (more like yours) I get:
Error 1: unknown function "-s format jpeg -s formatOptions"
Try 'sips --help' for help using this tool
So that's why I choose the first one. I'm affraid the temp folder causes
problems. The <.../-Tmp-/...> directory is always used. The "-T" in "-Tmp-"
is interpreted as a sips option.
I know that due to security issues and so on the temp dir is really variable
and disappearing asap, but can I set the tempdir manually to, at least,
check the proper functioning?
Harry
If I run the command by hand it works
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---