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

use WP_Image_Editor() quality for letterbox quality #757

Merged
merged 1 commit into from
Nov 19, 2015

Conversation

t-wright
Copy link
Contributor

Get's the quality from WP_Image_Editor() and uses that in imagejpeg. Means quality can be controlled with jpeg_quality filter.

In response to #693.

@jarednova
Copy link
Member

Awesome, thanks @t-wright!

@t-wright
Copy link
Contributor Author

No worries! A tiny contribution...

Quality can then be set by the theme:

function my_jpeg_quality() {
    return 100;
}
add_filter( 'jpeg_quality', 'my_jpeg_quality');

@jarednova
Copy link
Member

awesome, thankya!

jarednova added a commit that referenced this pull request Nov 19, 2015
use WP_Image_Editor() quality for letterbox quality
@jarednova jarednova merged commit 9e80d8a into timber:master Nov 19, 2015
@t-wright t-wright deleted the twright-letterbox-quality branch November 19, 2015 23:15
@prisis
Copy link

prisis commented Nov 20, 2015

Can you add a small text to the wiki, about this?

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

Successfully merging this pull request may close these issues.

None yet

3 participants