Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Created June 11, 2014 22:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stevewithington/2a370e96a68b82cc0c5e to your computer and use it in GitHub Desktop.
Save stevewithington/2a370e96a68b82cc0c5e to your computer and use it in GitHub Desktop.
Mura CMS : Override CKFinder's default image compression settings to allow for hi-res images
<cfscript>
// drop this in your eventHandler.cfc
public void function onSiteCKFinderConfig($) {
var config = arguments.$.event('config');
// Override CKFinder's default image compression settings to allow for hi-res images
config.images.maxWidth = 0;
config.images.maxHeight = 0;
config.images.quality = 100;
arguments.$.event('config',config);
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment