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

Image filter with media.yaml does not work #2313

Open
Rotzbua opened this issue Jan 1, 2019 · 0 comments
Open

Image filter with media.yaml does not work #2313

Rotzbua opened this issue Jan 1, 2019 · 0 comments

Comments

@Rotzbua
Copy link
Contributor

Rotzbua commented Jan 1, 2019

Environment

Grav: 1.5 and 1.6
php 7.1

Bug

Added grayscale filter to media.yaml.

Expected:
Grayscale pictures

Observed:
No change

Any image filter defined in media.yaml are not used.
Seems it is the old #984 .

Reproduce & test

Used: default media.yaml
Paths: system/config and user/config

Modified:

types:
  defaults:
    type: file
    thumb: media/thumb.png
    mime: application/octet-stream
    image:
      filters:
        default:
          - grayscale

Also changed:

  jpg:
    type: image
    thumb: media/thumb-jpg.png
    mime: image/jpeg
    filters:
      - grayscale
  jpe:
    type: image
    thumb: media/thumb-jpg.png
    mime: image/jpeg
    filters:
      - grayscale
  jpeg:
    type: image
    thumb: media/thumb-jpg.png
    mime: image/jpeg
    filters:
      - grayscale

Images do not change at all.

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

2 participants