This package is meant to resize images of different formats. Currently, the supported formats are JPEG and PNG.
The package is based on factory design pattern. There is a ImageResize base class and subclasses for specific image file formats.The ImageResizeFactory class has a factory method which is used to determine which of the sub-classes specialized in each of the supported formats is to be instanciated. The choice of sub-class is made upon the determination of the input image file format from its file name extension. |