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

Error with abstract methods #1

Open
IProSoft opened this issue Sep 8, 2015 · 2 comments
Open

Error with abstract methods #1

IProSoft opened this issue Sep 8, 2015 · 2 comments

Comments

@IProSoft
Copy link

IProSoft commented Sep 8, 2015

When I try to resize image:
Fatal error: Class Charcoal\Image\Imagemagick\Effect\ImagemagickResizeEffect contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Charcoal\Image\Effect\AbstractResizeEffect::do_resize) in ....\Charcoal\Image\Imagemagick\Effect\ImagemagickResizeEffect.php on line 10

@mducharme
Copy link
Member

Can you show me the exact code that causes this behavior?

Please upgrade to 0.2 and let me know if you still have any issues.

@IProSoft
Copy link
Author

IProSoft commented Oct 2, 2015

require_once( dirname(FILE) . '/Charcoal/autoload.php');

$img = new \Charcoal\Image\Imagemagick\ImagemagickImage();
use \Charcoal\Image\Imagemagick\ImagemagickImage as Image;

$img = new Image();

$img->set_data([
'source'=>'gif.gif',
'target'=>'gif2.gif',
'effects'=>[
[
'type'=>'resize',
'width'=>600
]
]
]);
$img->process();
$img->save();

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

No branches or pull requests

2 participants