public function calculateWatermarkResolution($width, $height, $watermark, $handle)
    {
        $width = (int) str_replace('%', '', $width) / 100;
        $height = (int) str_replace('%', '', $height) / 100;

        $width_px = (int) round($handle->width() * $width);
        $height_px = (int) round($handle->height() * $height);

        return (object) [
            'width'  => $width_px,
            'height' => $height_px,
        ];
    }