com.caucho.quercus.lib
Class ExifModule

java.lang.Object
  extended by com.caucho.quercus.module.AbstractQuercusModule
      extended by com.caucho.quercus.lib.ExifModule
All Implemented Interfaces:
QuercusModule

public class ExifModule
extends AbstractQuercusModule

PHP exif


Field Summary
 
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
 
Constructor Summary
ExifModule()
           
 
Method Summary
static Value exif_imagetype(Env env, Path file)
          Determine the type of an image
static Value exif_read_data(Env env, Path file, java.lang.String sections, boolean arrays, boolean thumbs)
          Reads the EXIF headers from JPEG or TIFF
static java.lang.String exif_tagname(java.lang.String index)
          Get the header name for an index
static Value exif_thumbnail(Env env, Path file, int width, int height, int imageType)
          Retrieve the embedded thumbnail of a TIFF or JPEG image
static Value read_exif_data(Env env, Path file, java.lang.String sections, boolean arrays, boolean thumbs)
          Alias of exif_read_data()
 
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExifModule

public ExifModule()
Method Detail

exif_read_data

public static Value exif_read_data(Env env,
                                   Path file,
                                   java.lang.String sections,
                                   boolean arrays,
                                   boolean thumbs)
Reads the EXIF headers from JPEG or TIFF


read_exif_data

public static Value read_exif_data(Env env,
                                   Path file,
                                   java.lang.String sections,
                                   boolean arrays,
                                   boolean thumbs)
Alias of exif_read_data()


exif_thumbnail

public static Value exif_thumbnail(Env env,
                                   Path file,
                                   int width,
                                   int height,
                                   int imageType)
Retrieve the embedded thumbnail of a TIFF or JPEG image

Parameters:
filename - the name of the image file being read.
width - the width of the returned thumbnail
height - the height of the returned thumbnail
imagetype - either TIFF or JPEG
Returns:
either the thumbnail or FALSE

exif_tagname

public static java.lang.String exif_tagname(java.lang.String index)
Get the header name for an index


exif_imagetype

public static Value exif_imagetype(Env env,
                                   Path file)
Determine the type of an image