Skip to content

Conversation

@spacedmonkey
Copy link
Member

@spacedmonkey spacedmonkey commented Jun 29, 2022

Summary

wp_get_image_editor has a method to allow to check to see if method exists. Also editors to workout if mime type is supported.

Fixes #

Relevant technical choices

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

@spacedmonkey spacedmonkey self-assigned this Jun 29, 2022
@spacedmonkey spacedmonkey requested a review from pbearne as a code owner June 29, 2022 17:49
@spacedmonkey spacedmonkey added [Type] Enhancement A suggestion for improvement of an existing feature [Focus] Images [Plugin] Image Placeholders Issues for the Image Placeholders plugin (formerly Dominant Color Images) labels Jun 29, 2022
Copy link
Contributor

@pbearne pbearne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Copy link
Member

@adamsilverstein adamsilverstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@spacedmonkey spacedmonkey added this to the 1.3.0 milestone Jul 6, 2022
@spacedmonkey spacedmonkey merged commit 654157b into trunk Jul 6, 2022
@spacedmonkey spacedmonkey deleted the try/improve-params branch July 6, 2022 15:06
@felixarntz felixarntz changed the title Move check. Rely on wp_get_image_editor() methods argument to check whether it supports dominant color methods Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Image Placeholders Issues for the Image Placeholders plugin (formerly Dominant Color Images) [Type] Enhancement A suggestion for improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants