Funky Imgix
Grab your Imgix images quickly and easily.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/funkhaus/funky-imgix/archive/refs/heads/master.zipReadme
What is it?
Imgix is a service that lets you modify and deliver images.
funky-imgix is a Wordpress plugin that lets you grab your Imgix images quickly and easily.
How
- Imgix
- Wordpress
- Drop the contents of this repo in
wp-content/plugins/funky-imgixon your server. Activate the plugin through Wordpress. - Navigate to Settings->Imgix Settings and enter the
Imgix Domain(the value of the 'Domains' field from earlier) and theSecure URL Token.
- Drop the contents of this repo in
That's it! You can now use the new funky-imgix functions.
Functions
get_the_imgix_image( $parameters = '', $image_id = false, $image_size = 'thumbnail' )
Returns the URL for an image modified on Imgix.
$parameters(string or array, optional) - The modification parameters for your image. Either a query string ('?blur=90&bri=-25') or an array:
array(
'blur' => 90,
'bri' => -25
// etc ...
)
$image_id(int, optional) - The attachment ID or post ID. Passing a post ID will grab the featured image of that post. Defaultfalse, which grabs the featured image of the current post.$image_size(string, optional) - The size of the source image on Wordpress. Defaultthumbnail.
the_imgix_image( $parameters = '', $image_id = false, $image_size = 'thumbnail' )
Shortcut to echo the results of get_the_imgix_image. Same parameters and defaults.
Version 1.0