aelvan / Imager-Craft

This plugin has been DEPRECATED. Check out Imager X instead.
MIT License
342 stars 69 forks source link

allowUpscale documentation #263

Closed darylknight closed 5 years ago

darylknight commented 5 years ago

In the docs, allowUpscale is listed under the global configuration settings here: https://github.com/aelvan/Imager-Craft#allowupscale-bool. However, setting this in imager.php under '*' doesn't seem to do anything. However, it does work if you create a transform and pass it as an option like this:

{% set imageSizes = [{ width: 530, allowUpscale: false }] %}.

Am I just misunderstanding the layout of the docs, or are they incorrect?

jan10 commented 5 years ago

You can adjust the settings like this:

<?php
/**
 * config/imager.php
 */

  return array(
    'allowUpscale' => false,
  );
darylknight commented 5 years ago

Ok, thank you.