Overview

Packages

  • Horde
    • Block
  • Klutz
  • None

Classes

  • Klutz
  • Klutz_Comic
  • Klutz_Comic_Bysize
  • Klutz_Comic_Direct
  • Klutz_Comic_Search
  • Klutz_Driver
  • Klutz_Driver_File
  • Klutz_Driver_Sql
  • Klutz_Image
  • Overview
  • Package
  • Class
  • Tree

Class Klutz_Image

Klutz Image Class

Package: Klutz
Author: Marcus I. Ryan marcus@riboflavin.net
Located at Image.php
Methods summary
public
# Klutz_Image( string $image, string $type = null, integer $height = null, integer $width = null )

Constructor - Based on the information passed, loads an image, determines the size and type, etc., and stores the information in the various public properties. Any optional parameters not passed in are calculated to the best of our ability.

Constructor - Based on the information passed, loads an image, determines the size and type, etc., and stores the information in the various public properties. Any optional parameters not passed in are calculated to the best of our ability.

Parameters

$image
Either raw image data or a filename
$type
Image MIME type (e.g. image/jpeg)
$height
Height of the image in pixels
$width
Width of the image in pixels
Properties summary
public string $file

The name of the file the image is stored in (if it's stored locally)

The name of the file the image is stored in (if it's stored locally)

# null
public string $data

The image data itself (binary)

The image data itself (binary)

# null
public integer $height

The height of the image in pixels

The height of the image in pixels

# null
public integer $width

The width of the image in pixels

The width of the image in pixels

# null
public string $type

The mime type of the image

The mime type of the image

# null
public string $size

The attributes to use in an tag to define the size (e.g. height="120" width="400")

The attributes to use in an tag to define the size (e.g. height="120" width="400")

# null
public integer $lastmodified

The last modified time of the file (only used if file is local).

The last modified time of the file (only used if file is local).

# 0
API documentation generated by ApiGen