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

[4.x]: The upscaleImages config settings appears to be ignored #11398

Closed
angrybrad opened this issue Jun 7, 2022 · 0 comments
Closed

[4.x]: The upscaleImages config settings appears to be ignored #11398

angrybrad opened this issue Jun 7, 2022 · 0 comments

Comments

@angrybrad
Copy link
Member

What happened?

Steps to reproduce

  1. On a fresh Craft install, setup a local filesystem and volume.
  2. Upload an image. For example, 500x500 in dimensions.
  3. Create a transform that is 1000px wide.
  4. Set upscaleImages in config/general.php to false.
  5. Load that transform in a template:
    {% set image = craft.assets.id(4).one() %}

    <img src="{{ image.url('myTransform') }}" width="{{ image.width('myTransform') }}" height="{{ image.height('myTransform') }}">

Expected behavior

The transform should be 500px side.

Actual behavior

The generated transform is 1000px wide.

Craft CMS version

4.0.4

PHP version

8.0

Operating system and version

macOS

Database type and version

MariaDB 10.3.34

Image driver and version

Imagick 3.6.0

Installed plugins and versions

None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant