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

Ability to ignore image (e.g. SVG) #13

Open
2 tasks done
ldanielswakman opened this issue Nov 7, 2017 · 0 comments
Open
2 tasks done

Ability to ignore image (e.g. SVG) #13

ldanielswakman opened this issue Nov 7, 2017 · 0 comments

Comments

@ldanielswakman
Copy link

ldanielswakman commented Nov 7, 2017

@jancbeck Would be useful if the plugin has the ability to pass an ignore parameter to not apply the srcset/responsive images behaviour. This would be especially useful if you have SVG images (where srcset doesn't make much sense), or image instances that are always meant to be high/uncompressed quality.

This could be done in multiple ways:

  • Adding an responsive-ignore: true parameter to the kirbytag: (image: company-logo.svg srcset-ignore: true)
  • Adding a config rule to ignore certain filetypes: c::set('responsiveimages.ignore-ext', array('svg', 'gif'))

Suggested fix: #14

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

No branches or pull requests

1 participant