Class SnpSaveAsJPEG
Object
|
+--SnpSaveAsJPEG
- class
SnpSaveAsJPEG
Shows how to save multiple files as JPEG images using BitmapData.
Usage
- Open the snippet in the ExtendScript Toolkit (see Readme.txt), setting Bridge CS5 as the target application.
- In Bridge, select at least one thumbnail representing an image file, and run the snippet.
- Once you have executed the snippet, you should find JPEG images created from each thumbnail you selected.
Description
Shows how to save files as JPEG images, using the BitmapData
object and the ExtendScript File object for a thumbnail.
You can select one or multiple thumbnails for the image files to save.
The script ignores any selected folders, and overwrites any
existing files.
Defined in SnpSaveAsJPEG.jsx
Field Summary |
String |
requiredContext
The context in which this snippet can run. |
Method Summary |
boolean
|
canRun()
Determines whether snippet can be run given current context.
|
Boolean
|
run()
Functional part of this snippet.
|
requiredContext
String requiredContext
The context in which this snippet can run.
SnpSaveAsJPEG
SnpSaveAsJPEG()
canRun
boolean canRun()
Determines whether snippet can be run given current context. The snippet will
fail if these preconditions are not met:
- Must in Bridge
- At least one file must be selected in Bridge
Returns:
True if this snippet can run, false otherwise
run
Boolean run()
Functional part of this snippet.
Gets a File object for each selected thumbnail, and uses it to
create a BitmapData object. Uses the BitmapData object to export
to the JPEG format.
Returns:
True if the snippet ran as expected, false if no files are selected in Bridge
http://www.adobe.com/devnet/bridge
Documentation generated by
JSDoc on Tue Apr 27 10:21:34 2010