Jump to content

Recommended Posts

Posted

Hi Community,

is there a way to set up the quality value when processwire inserts an image in ckeditor (pwimage).

First i thought this will manipulate all the image-resize-renderings: 

$config->imageSizerOptions = array(
 'upscaling' => true,
 'cropping' => true,
 'quality' => 90,
 );

I want to reduce the quality (file size) of the cropped and directly used images.

I found nothing in Forum and in the Blogs. It is an important thing for Google PageSpeed Insights for example.

Can anyone take me to the right way?

 

  • 4 weeks later...
  • 2 months later...
Posted

Hi @Qualtext

You can try to use ImageInterceptor, but there are no quality options in this module, so you have to modify the source of the module here and here and add a quality parameter to size method.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...