<?php

namespace Openguru\OpenCartFramework\ImageTool;

class ImageUtils
{
    private static array $aspectRatiosMap = [
        '1:1' => [400, 400],
        '4:5' => [400, 500],
        '3:4' => [400, 533],
        '2:3' => [400, 600],
    ];

    public static function aspectRatioToSize(string $aspectRatio, array $default = [400, 400]): array
    {
        return self::$aspectRatiosMap[$aspectRatio] ?? $default;
    }
}
