radarseven / craft-twig-imagebase64 Goto Github PK
View Code? Open in Web Editor NEWA simple Twig extension for Craft CMS to create base64-encoded images from Assets in your Twig templates.
A simple Twig extension for Craft CMS to create base64-encoded images from Assets in your Twig templates.
Since Craft only seems to fetch Image Transforms when getUrl()
, getWIdth()
, or getHeight()
are called, how can I pass a transformed image to this plugin?
Is there a way to apply the image transforms to your base64 conversion?
Any plans for a Craft 3 port of this?
I might be using this plugin wrong, but is this compatible with user images? I'm trying to base64 encode Craft CMS user photos for some staff pages I've set up and base64 encode them.
I'm grabbing the URL segment to get the username, so that I can get the photoUrl.
{% set staff = craft.users.username( craft.request.getSegment(2) ).first() %}
However, it returns only a value of NULL whenever I run either of these commands. Is there something I'm doing wrong?
{{ image64(staff.photoUrl) }}
{{ staff.photoUrl|image64 }}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.