iwyg / jitimage

Just In Time image manipulation (GD, Imagick, imagemagick) with integration for laravel 4
MIT License
95 stars 8 forks source link

FatalErrorException #52

Open tomc3 opened 9 years ago

tomc3 commented 9 years ago

I'm getting strange issue.

If use this

    echo JitImage::take('user.jpg', 'images')->resize(100,100);
    echo JitImage::take('user.jpg', 'images')->resize(100,100);

I get error

FatalErrorException in ImageResolver.php line 0:
Method Thapp\JitImage\FilterExpression::__toString() must not throw an exception

How ever if I use sing instance echo JitImage::take('user.jpg', 'images')->resize(100,100); there is no issue.

tomc3 commented 9 years ago

This only happens when you use take() method

    echo JitImage::take('user.jpg', 'images')->resize(100,100);
    echo JitImage::take('user.jpg', 'images')->resize(100,100);

However this works perfectly fine if you use make() method.

    echo   JitImage::make('thumbs', 'user.jpg', true);
    echo   JitImage::make('thumbs', 'user.jpg', true);
iwyg commented 9 years ago

Thanks, I'll have a look into that ASAP

iwyg commented 9 years ago

You are referring to the develop branch, right?

tomc3 commented 9 years ago

Yes, referring to developer branch.

iwyg commented 9 years ago

Hm, I can't replicate the issue atm.