|
1 | | -# imagekit-contentful-app |
| 1 | +[<img width="250" alt="ImageKit.io" src="https://raw.githubusercontent.com/imagekit-developer/imagekit-javascript/master/assets/imagekit-light-logo.svg"/>](https://imagekit.io) |
| 2 | + |
| 3 | +[](https://opensource.org/licenses/MIT) |
| 4 | +[](https://www.typescriptlang.org/) |
| 5 | +[](https://reactjs.org/) |
| 6 | +[](https://www.contentful.com/) |
| 7 | + |
| 8 | +# ImageKit App for Contentful |
| 9 | + |
| 10 | +Seamlessly integrate ImageKit's powerful media management with your Contentful workflows. |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +## Table of Contents |
| 15 | + |
| 16 | +- [ImageKit App for Contentful](#imagekit-app-for-contentful) |
| 17 | + - [Table of Contents](#table-of-contents) |
| 18 | + - [Overview](#overview) |
| 19 | + - [Features](#features) |
| 20 | + - [🎯 Core Features](#-core-features) |
| 21 | + - [🔧 Advanced Features](#-advanced-features) |
| 22 | + - [Prerequisites](#prerequisites) |
| 23 | + - [Installation](#installation) |
| 24 | + - [Configuration](#configuration) |
| 25 | + - [Basic Setup](#basic-setup) |
| 26 | + - [Advanced Configuration](#advanced-configuration) |
| 27 | + - [Media Delivery Settings](#media-delivery-settings) |
| 28 | + - [Widget Settings](#widget-settings) |
| 29 | + - [Usage](#usage) |
| 30 | + - [Adding ImageKit Fields to Content Types](#adding-imagekit-fields-to-content-types) |
| 31 | + - [Selecting Assets](#selecting-assets) |
| 32 | + - [Support](#support) |
| 33 | + - [Official Support Channels](#official-support-channels) |
| 34 | + - [Community Support](#community-support) |
| 35 | + - [License](#license) |
| 36 | + |
| 37 | +## Overview |
| 38 | + |
| 39 | +The **ImageKit App** for Contentful enables content creators to seamlessly select, upload, and manage media assets from their ImageKit Media Library directly within Contentful's interface. This integration combines ImageKit's powerful image and video optimization capabilities with Contentful's flexible content management system. |
| 40 | + |
| 41 | +## Features |
| 42 | + |
| 43 | +### 🎯 Core Features |
| 44 | + |
| 45 | +- **Media Library Integration**: Browse and select assets from your ImageKit Media Library |
| 46 | +- **Direct Upload**: Upload new assets to ImageKit from within Contentful |
| 47 | +- **Real-time Transformations**: Apply transformations and quality settings automatically |
| 48 | +- **Drag & Drop Reordering**: Easily reorder selected assets |
| 49 | +- **Rich Metadata**: Access comprehensive asset information including dimensions, file size, tags, and more |
| 50 | +- **Preview Support**: View thumbnails and preview assets before selection |
| 51 | + |
| 52 | +### 🔧 Advanced Features |
| 53 | + |
| 54 | +- **Custom Transformations**: Apply default transformation strings to all selected assets |
| 55 | +- **Quality Control**: Set specific quality levels for optimized delivery |
| 56 | +- **Folder Navigation**: Start in specific folders within your media library |
| 57 | +- **Collection Support**: Filter by specific collections or view all collections |
| 58 | +- **File Type Filtering**: Show only specific file types (image, video, etc.) |
| 59 | +- **Search Integration**: Default search queries for faster asset discovery within the media library |
| 60 | +- **Multiple Selection**: Select multiple assets at once with configurable limits |
| 61 | + |
| 62 | +## Prerequisites |
| 63 | + |
| 64 | +Before installing this app, ensure you have: |
| 65 | + |
| 66 | +1. **Active ImageKit Account**: Sign up at [imagekit.io](https://imagekit.io) if you haven't already |
| 67 | +2. **Contentful Space**: Administrative access to a Contentful space where you want to install the app |
| 68 | +3. **Content Types**: At least one content type where you want to use the media field |
| 69 | + |
| 70 | +## Installation |
| 71 | + |
| 72 | +The easiest and the recommended way to install this app is from the Contentful official marketplace. |
| 73 | + |
| 74 | +1. Go to your Contentful space |
| 75 | +2. Navigate to **Apps** → **Marketplace** |
| 76 | +3. Search for "ImageKit App" |
| 77 | +4. Click **Install** and follow the setup wizard |
| 78 | + |
| 79 | +## Configuration |
| 80 | + |
| 81 | +### Basic Setup |
| 82 | + |
| 83 | +After installation, configure the app through Contentful's interface: |
| 84 | + |
| 85 | +1. **Navigate to App Configuration**: |
| 86 | + - Go to **App** → **Installed apps** |
| 87 | + - Find "ImageKit App" and click **Configure** |
| 88 | + |
| 89 | +2. **Complete the Setup Wizard**: |
| 90 | + - **Field Selection**: Choose which content types and fields will use ImageKit |
| 91 | + - **Basic Configuration**: This will be automatically set up during the configuration process |
| 92 | + |
| 93 | +### Advanced Configuration |
| 94 | + |
| 95 | +The app provides extensive configuration options to customize behavior: |
| 96 | + |
| 97 | +#### Media Delivery Settings |
| 98 | + |
| 99 | +Configure how selected media assets are delivered: |
| 100 | + |
| 101 | +| Setting | Description | Default | Example | |
| 102 | +|---------|-------------|---------|---------| |
| 103 | +| **Default Transformation** | Transformation string applied to all selected assets | None | `w-400,h-300,c-maintain_ratio` | |
| 104 | +| **Media Quality** | Quality level for image compression | `auto` | `80`, `auto` | |
| 105 | + |
| 106 | +#### Widget Settings |
| 107 | + |
| 108 | +Control the media library widget's initial state: |
| 109 | + |
| 110 | +| Setting | Description | Default | Example | |
| 111 | +|---------|-------------|---------|---------| |
| 112 | +| **Starting Folder** | Default folder path when widget opens | `/` | `/marketing/banners/` | |
| 113 | +| **Collection ID** | Specific collection to display | None | `col_123456` or `all` | |
| 114 | +| **File Type Filter** | Restrict to specific file types | None | `image`, `video`, `others` | |
| 115 | +| **Default Search** | Pre-filled search query | None | `name = "red-dress-summer.jpg"` | |
| 116 | +| **Multiple Selection** | Allow selecting multiple assets | `true` | `false` | |
| 117 | +| **Max Selections** | Maximum number of assets per selection | Unlimited | `5` | |
| 118 | + |
| 119 | +## Usage |
| 120 | + |
| 121 | +### Adding ImageKit Fields to Content Types |
| 122 | + |
| 123 | +1. **Open Content Type**: |
| 124 | + - Navigate to **Content model** → Select your content type |
| 125 | + - Click **Add field** |
| 126 | + |
| 127 | +2. **Select Field Type**: |
| 128 | + - Choose **JSON Object** |
| 129 | + - Set field name (e.g., "Hero Image", "Gallery Images") |
| 130 | + - Configure validation rules as needed |
| 131 | + |
| 132 | +3. **Configure Field**: |
| 133 | + - In the **Appearance** tab, select "ImageKit App" |
| 134 | + - The field will now use the ImageKit media library widget |
| 135 | + |
| 136 | +### Selecting Assets |
| 137 | + |
| 138 | +1. **Open Entry Editor**: |
| 139 | + - Navigate to **Content** → Select an entry |
| 140 | + - Find your ImageKit field |
| 141 | + |
| 142 | +2. **Select Assets**: |
| 143 | + - Click **"Select or upload an asset"** |
| 144 | + - Browse your ImageKit Media Library |
| 145 | + - Use search, filters, and folder navigation |
| 146 | + - Select desired assets and click **Insert** |
| 147 | + |
| 148 | +3. **Manage Selected Assets**: |
| 149 | + - **Reorder**: Drag and drop assets to reorder |
| 150 | + - **Preview**: Click on assets to see details and preview |
| 151 | + - **Remove**: Use the delete button to remove assets |
| 152 | + - **View on ImageKit**: Click to open the asset in ImageKit dashboard |
| 153 | + |
| 154 | +## Support |
| 155 | + |
| 156 | +### Official Support Channels |
| 157 | + |
| 158 | +- **ImageKit Support**: For ImageKit-specific issues, contact [ImageKit Support](https://imagekit.io/support) |
| 159 | +- **Contentful Support**: For Contentful platform issues, contact [Contentful Support](https://support.contentful.com) |
| 160 | + |
| 161 | +### Community Support |
| 162 | + |
| 163 | +- **GitHub Issues**: Report bugs or request features in our [GitHub repository](https://github.com/your-org/imagekit-contentful/issues) |
| 164 | +- **Documentation**: Check our comprehensive documentation above |
| 165 | +- **StackOverflow**: Tag questions with `imagekit` and `contentful` |
| 166 | + |
| 167 | +## License |
| 168 | + |
| 169 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
0 commit comments