Procedural File: image.cmd.php

Source Location: /CORE/system/command/image.cmd.php

Page Details

This Command is specialized for sending and manipulating images to clients.

It can create thumbnails on the fly, which will be cached for further use. To create resized Image versions, simply add one (or both) of the following Parameters to your request:

  • resizeWidth
  • resizeHeight
  • crop (boolean, default: false)
  • quality (default: 100)
If you submit only one value the other one will be automatically calculated from the original Image Dimensions.

If you use the deprecated Parameter "resize", it will be handled like "resizeWidth".

For example:

  • /bigace/image/10/image.jpg?resizeWidth=100
  • /bigace/image/10/image.jpg?resizeHeight=100
  • /bigace/image/10/image.jpg?resizeWidth=100&resizeHeight=200
For further information visit http://www.bigace.de.

Author:  Kevin Papst
Version:  $Id: image.cmd.php,v 1.16 2008/11/30 15:35:18 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License
Constants
_PARAM_IMAGE_NEW_HEIGHT  [line 67]

_PARAM_IMAGE_NEW_HEIGHT = 'resizeHeight'

Constant for the Height Parameter.


[ Top ]

_PARAM_IMAGE_NEW_WIDTH  [line 63]

_PARAM_IMAGE_NEW_WIDTH = 'resizeWidth'

Constant for the Width Parameter.


[ Top ]

_PARAM_IMAGE_OLD_WIDTH  [line 58]

_PARAM_IMAGE_OLD_WIDTH = 'resize'
API Tags:
Deprecated:  use _PARAM_IMAGE_NEW_WIDTH instead!


[ Top ]


Functions
open_image  [line 280]

void open_image( $mime_type, $src  )
Parameters:
   $mime_type: 
   $src: 


[ Top ]
show_image  [line 240]

void show_image( $cache_file, $mime_type  )
Parameters:
   $cache_file: 
   $mime_type: 


[ Top ]