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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Resizing images by default issue

Started by Memm 7 years ago · 2 replies · 501 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 Thomas, 1 week ago
2 53 9 hours ago
Support · by Anna, 3 days ago
2 59 12 hours ago
Support · by Justin Young, 13 hours ago
1 30 13 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago