An image file needs to be scaled in order to fit within a canvas box with
Given size of 180x250 px. Implement an object oriented solution providing
Base scaling factor calculation for further scaling operations.

Programming language
PHP 5.3.x or higher


Requirements
1. The solution is an own implementation. Usage of functions from
Image processing libraries is not allowed.
2. Width and height of original picture are required input parameters
Of the class.
3. The output method should return a floating number scaling factor,
Which can be used to calculate the target picture's dimensions when
Multiplied with side length of the original picture.
4. The scaled picture must fit within the canvas box.
5. The aspect ratio of the picture must be kept. Cropping is not
Allowed.

The solution should contain at least one suitable programming pattern.

Благодарим Вас за внимание к проекту, но он уже завершен.

Формат: Периодическая занятость
Способы оплаты: Банковский перевод