Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing argument 1 for Multup\Resize::resize() #1

Closed
theninthnode opened this issue Dec 19, 2012 · 2 comments
Closed

Missing argument 1 for Multup\Resize::resize() #1

theninthnode opened this issue Dec 19, 2012 · 2 comments
Labels

Comments

@theninthnode
Copy link

I'm getting an error when I try to resize the images.

Missing argument 1 for Multup\Resize::resize(), called in C:\xampp\htdocs\laravel\bundles\multup\multup.php on line 190 and defined

I'm guessing it's because the class is called resize and that function is also called resize so it's treating it like a constructor?

Here's my code:

$sizes = array( 
    array(210 , 210 , 'crop', 'public/img/items/thumbnail/210/', 90 ), 
    array(90 , 300 , 'crop', 'public/img/items/thumbnail/90/', 90 ), 
);

$files = Multup::open('images', 'image|max:3000|mimes:jpg,gif,png', 'public/img/items/originals/')
    ->sizes( $sizes )
    ->set_length( 20 )
    ->upload();
@janhartigan
Copy link
Member

Hey @xuillo I just pushed a commit that should fix this issue. Please let me know if it's still happening!

@theninthnode
Copy link
Author

Great thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants