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

Warning: imagecopyresampled() expects parameter 2 to be resource, string given #8028

Closed
dushyant-bhatt-if opened this issue Jun 2, 2015 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@dushyant-bhatt-if
Copy link

please help me to solve this error ..

@dushyant-bhatt-if
Copy link
Author

$a1= imagecreatetruecolor($new_width, $new_height);
$a2= imagecreatefromjpeg($temp_name);
imagecopyresampled($a1,$a2,0,0,0,0,$maxw,$newh,$width,$height)

finalyyy.. got it.

@tsteur tsteur closed this as completed Jun 2, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants