# \cge_image

A simple class for utilities related to manipulating images.

## Summary

Methods
Properties
Constants
resize()
transform_image()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

File
  lib/class.cge_image.php
Class hierarchy
  \cge_image

## Tags

deprecated | Do not use
ignore |
todo |

## Methods

### resize()

    resize(string $srcSpec, string $destSpec, int $new_w, int $new_h)

Resize an image to the specified width and height.

This method makes no checks for upscaling, downscaling, or if image aspect ratio is maintained.

#### Parameters

string | $srcSpec | The complete path to the input file.
string | $destSpec | The complete path to the output file.
int | $new_w | The destination width (in pixels).
int | $new_h | The destination height (in pixels).

#

static

## Tags

todo |

### transform_image()

    transform_image(string $srcSpec, string $destSpec, int $size)

Resize an image to have the specifified number of pixels in the logest dimension while retaining aspect ratio.

#### Parameters

string | $srcSpec | The complete path to the input file.
string | $destSpec | The complete path to the output file.
int | $size | The maximum size of the longest dimension of the image (in pixels).

#

static

## Tags

todo |

### class.cge_image.php