Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Resizing images by default issue

Started by Memm 7 years ago · 2 replies · 682 views
7 years ago

I'm trying to get all images to be filtered by default (such as resize), so I ran this experiment:

I have changed user/config/media.yaml to include

YAML
types:
  defaults:
    type: file
    thumb: media/thumb.png
    mime: application/octet-stream
    image:
      filters:
        default:
          - enableProgressive
          - [cropResize, 500, 500]

And set

YAML
images:
  cache_all: true

In user/config/system.yaml, but this seems to have zero effect on any images. I cleared cache, refreshed page, etc... the image caching is working, it's creating new images, but the [cropResize] filter (or any other filter) don't seem to be working at all.

Does anybody know how to get images to get filtered (especially resized) by default?

Thanks for any help.

👍 1
last edited 04/29/19 by Memm
5 years ago

I have the exact same issue. I want to resize all uploaded images.

However the cropResize defined in user/config/media.yaml doesn't have any effect - even if I re-upload my images. I also set cache_all to true and cleared the cache. I also made sure, the image tag doesn't contain any further image filters.

I searched for hours already and don't find any solution. Any help would be appreciated!

5 years ago

This would be a great feature, I too would like this working.

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 7 days ago
4 145 6 days ago
Support · by nwhitfield, 1 week ago
2 126 1 week ago
Support · by stell, 3 weeks ago
5 364 2 weeks ago
Support · by gravinator, 1 month ago
5 556 2 weeks ago
Support · by Gravver, 3 weeks ago
6 344 3 weeks ago