Media entity icon
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Media entity icon provides SVG sprites and SVG icons as assets via the Media entity module and can automate icons and thumbnails creation.
Synopsis
While icons and sprites are often proposed by themes in a defined context, they could also be assets provided to contributors. Font icons were proposed to the contributors via CSS classes but with the progressive drop of the older browsers SVG become the new standard (better consistency between browsers, more CSS control, ...).
Relying on Media entity allows to take advantage of its wide spread integration within fields or rich editors, makes the icons extendable with medatas and custom fields, and centralize them within a library.
Features
- SVG sprite and SVG icon media types
- Supports both local and CDN sprite sources
- Sprite administration page to see the available icons, the ones created and the obsolete ones (in case of a source change)
- Option to automatically create icons on a new sprite creation
- Option to automatically create missing icons on a sprite update
- Icon thumbnail can be generated as a PNG via SVG2PNG
- Theme to render SVG icons based on an inline call with a use tag
Dependencies
Recommended
- SVG2PNG for the thumbnail generation (RSVG and ImageMagick created sometimes faulty images, we could add their support if asked by the community)
Credits
Thank you to aheredia and joscartesar for their help on the development of the first POC of the project.
