- Add to Content Model
- Browse and Select Assets
- Search for Assets
- Upload Assets
- Query an Asset
The app can be installed to your Contentful workspace via the marketplace.
If running locally, the app can be installed via npm:
Upon installation, configure the app using an API key generated via the imgix Dashboard. Ensure that the generated key has the following permissions:
Asset Manager Browse.
Following the instructions on the screen, enter in the API key and press
Verify. If the key is valid, you will receive a notification that the key has been successfully verified. If verification fails, you will need to ensure that the key was entered correctly.
This Contentful app is not compatible with Web Proxy Sources. Uploading functionality is not compatible with Web Folder sources. See the imgix documentation for a list of Sources that you can create in imgix.
Assign to Fields (Optional)
The configuration page surfaces the option for users to select pre-existing content fields that are compatible with the imgix app. Note that the app is configured to integrate with
JSON object fields only, therefore only fields of this type will be displayed. Users may prefer this method over selecting individual fields manually for each applicable content model.
Add to Content Model
Of the many content types that users can choose from, imgix specifically integrates with the
JSON object. Please note that if you are currently using a
Media content type for images, you will need to create a new field of type
JSON object to integrate the app with. Designate a field to use imgix on by navigating to that field’s Appearance tab and selecting the app. This step can be skipped if you already assigned the app directly to the desired field(s).
Browse and Select Assets
From any instance of a field using the imgix app, a modal can be opened to browse assets by imgix source. First, select a desired source to browse assets from. Using any of the pagination buttons, navigate each page of assets to choose from. After selecting an asset, it can be inserted to the field via the
Add asset button. Additionally, there are options to replace an asset, or clear a selection from the field altogether.
Search for Assets
The imgix app enables users to conduct a keyword search across assets in a source. Using the search box near the top of the modal will execute a search across multiple pre-determined fields: file origin path, asset tags, and categories. To learn more about these fields, see our Asset Manager documentation.
note: uploading to web folder sources is not supported at this time.
The imgix app enables users to upload assets to a source. Using the "Upload" button near the top of the modal, users can select an image to upload to their desired source. Users change the upload source destination, filepath, or filename. To learn more about uploading, see our Asset Manager documentation.
Query an Asset
Once the content is published, developers can query the
src of the selected asset, returned as a string, via the Contentful API. The example below demonstrates this using GraphQL, but this can be done independent of any specific tool.
returns something similar to:
Developers can leverage the power of imgix's rendering API downstream from where the asset was selected in Contentful. We recommend piping the value of the
src field of the asset through to one of imgix's SDKs. The example below builds on the previous one by passing the image
src through to @imgix/gatsby component:
Users may also access metadata associated with an asset via the
attributes field. Refer to the imgix documentation to learn more about the various types of metadata available on images and how to use them.
returns something similar to:
Note: Certain fields under
attributes are returned as strings to provide better resiliency when used with GraphQL. Therefore, these fields (
colors.dominant_colors) will need to be parsed back into JSON objects after being queried. The example below demonstrates how to do this:
- Craft Image OptimizeAutomatically create & optimize responsive image transforms, using either native Craft transforms or a service like imgix, with zero template changes.PHP 234 20 days ago
- FigmaBrowse, search, and insert image assets into your Figma designs quickly and easily via the imgix Asset Manager.Invalid date
- Imager X for CraftAn image manipulation plugin for the Craft CMS that supports imgix URLsPHP 23 a month ago
- Nuxt ImagePlug-and-play image optimization for Nuxt apps. Resize and transform your images in your code using your imgix images.TypeScript 957 < 1 day ago
- Statamic PluginAn add-on for integrating imgix into Statamic sitesPHP 17 2 years ago
- Superbig Craft PluginA plugin for the Craft CMS that adds full access to the imgix API for manipulating imagesPHP 13 7 months ago
- wp-imgixA WordPress plugin that connects to your storage (Amazon S3, Google Cloud, & others) and provides imgix URLs for your site's imagesPHP 9 4 months ago