Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Resizing images by default issue

Started by Memm 7 years ago · 2 replies · 585 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 Anna, 16 hours ago
1 46 9 hours ago
Support · by gtx, 1 week ago
4 227 2 days ago
Support · by Paul Hodges, 2 weeks ago
13 277 5 days ago
Support · by Anna, 3 weeks ago
9 334 1 week ago
Support · by TomW, 2 weeks ago
4 188 2 weeks ago