| Ammon Johnson 2006-11-19, 8:49 pm |
| SuzShook wrote:
> If you run that step silently, it will save the file to the directory listed
> in the FileName parameter of the command. If you want that to be the same
> as the directory from which the file came, you can extract that information
> from the file itself using the ReturnImageInfo:
>
> ImageInfo = App.Do( Environment, 'ReturnImageInfo')
>
> # JPEG Optimizer
> App.Do( Environment, 'JPEGOptimizer', {
> 'Format': App.Constants.JpegFormat.Standard,
> 'Compression': 10,
> 'FileName': ImageInfo [ 'FileName' ],
> 'BackgroundColor': (255,255,255),
> 'ChromaSubSampling':
> App.Constants.ChromaSubSampling.YCC_2x2_1x1_1x1,
> 'SaveExifData': App.Constants.Boolean.false,
> 'GeneralSettings': {
> 'ExecutionMode': App.Constants.ExecutionMode.Silent,
> 'AutoActionMode': App.Constants.AutoActionMode.Match
> }
> })
>
> This would do it, Dave - however, I don't think it can be done if you want
> to run that step interactively. Suz
Suz, you rock! Thanks for this excellent little piece of example code!
Enjoy!!
~~Ammon ;~>
|