classic-o / nova-media-library

Media Library for admin panel "Laravel Nova"
MIT License
157 stars 66 forks source link

Resize images #60

Closed mohamedary closed 3 years ago

mohamedary commented 3 years ago

It would be super if you implement resizing feature to the images.

classic-o commented 3 years ago

What do you mean? we have this function

mohamedary commented 3 years ago

Nevermind, I realized I could have several preview options to view the image in that size.

        # Crop additional image variations [ width, height, upSize, upWH ]
        'sizes' => [
            'thumb' => [ 200, 200, true, false ],
            'medium' => [ 800, null, true, false ],
            'mini' => [64, 64, true, false],
            'brand' => [58, 58, true, false],
            'slider' => [750, 549, true, false],
            'logo_header' => [140, 50, true, false],
            'logo_footer' => [246, 88, true, false],
            'favicon' => [16, 16, true, false],
            'slider_ad' => [120, 600, true, false],
            'bottom_ad' => [1140, 141, true, false]
        ],