phpDocumentor NetPbm
Classes
[ class tree: NetPbm ] [ index: NetPbm ] [ all elements ]

Class: NetPbmToolkit

Source Location: /modules/netpbm/classes/NetPbmToolkit.class

Class NetPbmToolkit

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GalleryToolkit

GalleryToolkit::applyTransform()
Apply the transform operation to the set of target operations. The transform operation
GalleryToolkit::estimateDimensions()
Estimate the dimensions of a GalleryDerivativeImage from its operations and its source.
GalleryToolkit::getProperty()
Get a certain property of a file
GalleryToolkit::mergeOperations()
Merge two operations together in an intelligent way. The end result of
GalleryToolkit::performOperation()
Perform a certain operation

[ Top ]
Method Summary
void   getProperty()  
void   performOperation()  
array   _convertFromPnmCmd()   Generate the correct command to convert an image type from PNM.
array   _convertToPnmCmd()   Generate the correct command to convert an image type to PNM.
void   _deleteTempFiles()   Delete temp files used by composite operation
array   _exec()   Execute the command. Flatten the command array first.
array   _extractCommands()   Extract a single array of commands from a multilevel array of commands
void   _getImageDimensions()  
void   _pnmCmd()   Return the full path to the NetPBM command
GalleryStatus   _transformImage()   Do the given transform on the source image

[ Top ]
Methods
getProperty  [line 40]

  void getProperty( $mimeType, $propertyName, $sourceFilename  )

Parameters:
   $mimeType: 
   $propertyName: 
   $sourceFilename: 

API Tags:
See:  GalleryToolkit::getProperty


Redefinition of:
GalleryToolkit::getProperty()
Get a certain property of a file

[ Top ]
performOperation  [line 62]

  void performOperation( $mimeType, $operationName, $sourceFilename, $destFilename, $parameters, [ $context = array()]  )

Parameters:
   $mimeType: 
   $operationName: 
   $sourceFilename: 
   $destFilename: 
   $parameters: 
   $context: 

API Tags:
See:  GalleryToolkit::performOperation


Redefinition of:
GalleryToolkit::performOperation()
Perform a certain operation

[ Top ]
_convertFromPnmCmd  [line 670]

  array _convertFromPnmCmd( string $mimeType, string $filename, [string $jpegQuality = null]  )

Generate the correct command to convert an image type from PNM.

Parameters:
string   $mimeType: 
string   $filename:  the path to an image file
string   $jpegQuality:  (optional) override module setting for jpeg quality

API Tags:
Return:  GalleryStatus a status code, array 1 or more string commands


[ Top ]
_convertToPnmCmd  [line 620]

  array _convertToPnmCmd( string $mimeType, string $filename  )

Generate the correct command to convert an image type to PNM.

Parameters:
string   $mimeType: 
string   $filename:  the path to an image file

API Tags:
Return:  GalleryStatus a status code, array 1 or more string commands


[ Top ]
_deleteTempFiles  [line 454]

  void _deleteTempFiles( &$context  )

Delete temp files used by composite operation

Parameters:
   &$context: 


[ Top ]
_exec  [line 736]

  array _exec( array $cmdArray  )

Execute the command. Flatten the command array first.

Parameters:
array   $cmdArray: 

API Tags:
Return:  GalleryStatus a status code string stdout output, string stderr output
Access:  private


[ Top ]
_extractCommands  [line 806]

  array _extractCommands( array $cmdArray, [int $level = 0]  )

Extract a single array of commands from a multilevel array of commands

The command array may wind up being multilevel, eg:

array( array('cmd', 'args'), array('cmd', 'args'), array( array('cmd', 'args'), array('cmd', 'args') ), )

Extract the commands as a single level array:

array( array('cmd', 'args'), array('cmd', 'args'), array('cmd', 'args'), array('cmd', 'args') )

While maintaining the order.

Parameters:
array   $cmdArray:  a multilevel set of commands
int   $level:  (unused?)

API Tags:
Return:  a single level set of commands


[ Top ]
_getImageDimensions  [line 470]

  void _getImageDimensions( $mimeType, $filename  )

Parameters:
   $mimeType: 
   $filename: 

API Tags:
See:  GalleryToolkit::getImageDimensions


[ Top ]
_pnmCmd  [line 756]

  void _pnmCmd( string $cmd  )

Return the full path to the NetPBM command

Parameters:
string   $cmd:  a netpbm command (eg. "giftopnm")

API Tags:
Access:  private


[ Top ]
_transformImage  [line 525]

  GalleryStatus _transformImage( string $mimeType, array $command, string $sourceFilename, string $destFilename, string $outputMimeType, [boolean $preserveMetaData = true], [string $jpegQuality = null]  )

Do the given transform on the source image

Parameters:
string   $mimeType:  a mime type
array   $command:  the command(s) to execute
string   $sourceFilename:  the path to a source file
string   $destFilename:  the path to a destination file
string   $outputMimeType: 
boolean   $preserveMetaData:  (optional) whether to use jhead to preserve exif data
string   $jpegQuality:  (optional) override module setting for jpeq quality

API Tags:
Return:  a status code


[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:41:16 -0700 by phpDocumentor 1.3.0RC6