itskodinger / midia

Simple Media manager for your Laravel project
MIT License
139 stars 35 forks source link

Can't create thumbnail of big images #20

Closed tpaksu closed 5 years ago

tpaksu commented 5 years ago

Hello,

I'm uploading images which have for example 1.5MB in size and 2560x1024 pixel dimensions. The script can't create thumbnails of it. Didn't check yet, but it works in smaller images. Did one of you experience and solve something about this issue?

tpaksu commented 5 years ago

It turns out that it isn't related with image size, but it's caused by the missing mime types on the list:

    // Resize
    $is_image = [
        'image/jpg',
        'image/jpeg',
        'image/pjpeg',
        'image/png',
        'image/x-png',
        'image/gif',
        'image/webp',
        'image/x-webp'
    ];

I'll create a pull request with this.

tpaksu commented 5 years ago

Pushed this in #21

nauvalazhar commented 5 years ago

Thank you!