-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Use Imagick
class
#6754
base: v5/develop
Are you sure you want to change the base?
Use Imagick
class
#6754
Conversation
I don't have any idea about IM. I've run unit tests. Getting following error for all provider for
|
$this->threads($image, $options); | ||
$image->stripImage(); | ||
$this->interlace($image, $options); | ||
|
||
$image = $this->coalesce($image); | ||
$this->grayscale($image, $options); | ||
$this->autoOrient($image); | ||
$this->resize($image, $options); | ||
$this->quality($image, $options); | ||
$image = $this->blur($image, $options); | ||
$image = $this->sharpen($image, $options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do some return void and some return object? Can't we all return void or object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some Imagick
methods return a new object, some alter it in place. I don't like it much either, but I didn't find methods that behave in one way or the other consistently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For ex: can't we do that? If we return itself, it doesn't work?
protected function grayscale(Imagick $image, array $options): Imagick
{
if ($options['grayscale'] === true) {
$image->setColorspace(Imagick::COLORSPACE_GRAY);
}
return $image;
}
9047372
to
1e35132
Compare
Description
Imagick
objectSummary of changes
Imagick
class forim
darkroom driverim-legacy
(LegacyImageMagick
class)@afbora Maybe you have some ideas here or could try to tackle some as well 🙏
Changelog
Fixes
Breaking changes
Docs
Ready?
For review team