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

add jpeg quality option #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

lexxpavlov
Copy link
Contributor

I set jpeg_quality to global config (config.yml), and optional param to cropConfig of field definition and to searate cropConfig.thumbs items

add jpegQuality option to cropConfig (default for all thumbs) and to cropConfig.thumbs items (personal quality for separate thumb)
@@ -154,7 +155,8 @@ public function cropImageAction(Request $request

}

$this->resizeCropImage($destSrc,$src,0,0,$x,$y,$destW,$destH,$w,$h);
$jpegQuality = isset($config['cropConfig']['jpeg_quality']) ? $config['cropConfig']['jpeg_quality'] : $defaultJpegQuality;
Copy link
Owner

Choose a reason for hiding this comment

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

Hi,

i think it should be $default_jpeg_quality and not $defaultJpegQuality.

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

2 participants