### Full FilePond Svelte example with plugins
Source: https://pqina.nl/filepond/docs/getting-started/installation/svelte
A complete example showing plugin registration, component binding, event handling, and CSS imports. Requires installing filepond-plugin-image-preview and filepond-plugin-image-exif-orientation separately.
```svelte
```
--------------------------------
### Install with npm
Source: https://pqina.nl/filepond/docs/api/plugins/file-validate-type
Install the filepond-plugin-file-validate-type package using npm.
```bash
npm i filepond-plugin-file-validate-type --save
```
--------------------------------
### Install via npm
Source: https://pqina.nl/filepond/docs/api/plugins/image-exif-orientation
Install the plugin package using npm.
```bash
npm i filepond-plugin-image-exif-orientation --save
```
--------------------------------
### Install Image Preview plugin via npm
Source: https://pqina.nl/filepond/docs/api/plugins/image-preview
Install the plugin package using npm. Run this command in your project directory.
```bash
npm i filepond-plugin-image-preview --save
```
--------------------------------
### Install with npm and register FilePondPluginFileValidateSize
Source: https://pqina.nl/filepond/docs/api/plugins/file-validate-size
Install filepond-plugin-file-validate-size with npm, then import and register FilePondPluginFileValidateSize.
```bash
npm i filepond-plugin-file-validate-size --save
```
```js
// Import FilePond
import * as FilePond from 'filepond';
// Import the plugin code
import FilePondPluginFileValidateSize from 'filepond-plugin-file-validate-size';
// Register the plugin
FilePond.registerPlugin(FilePondPluginFileValidateSize);
```
--------------------------------
### Manual installation
Source: https://pqina.nl/filepond/docs/api/plugins/image-exif-orientation
Include the plugin and FilePond scripts manually and register the plugin.
```html
```
--------------------------------
### Manual installation of Image crop
Source: https://pqina.nl/filepond/docs/api/plugins/image-crop
Include the local plugin script and register it before initializing FilePond.
```html
```
--------------------------------
### Install Image crop via npm
Source: https://pqina.nl/filepond/docs/api/plugins/image-crop
Install the plugin package using npm.
```bash
npm i filepond-plugin-image-crop --save
```
--------------------------------
### Install FilePond for Vue via npm
Source: https://pqina.nl/filepond/docs/getting-started/installation/vue
Use npm to install the FilePond core library and the Vue adapter.
```bash
npm install vue-filepond filepond --save
```
--------------------------------
### Install filepond-plugin-image-filter with npm
Source: https://pqina.nl/filepond/docs/api/plugins/image-filter
Install the Image Filter plugin via npm.
```bash
npm i filepond-plugin-image-filter --save
```
--------------------------------
### Install via CDN
Source: https://pqina.nl/filepond/docs/api/plugins/image-exif-orientation
Include the plugin and FilePond scripts via CDN and register the plugin.
```html
```
--------------------------------
### Install filepond-plugin-file-encode via npm
Source: https://pqina.nl/filepond/docs/api/plugins/file-encode
Install the File Encode plugin via npm.
```bash
npm i filepond-plugin-file-encode --save
```
--------------------------------
### Install File Poster plugin via npm
Source: https://pqina.nl/filepond/docs/api/plugins/file-poster
Install the filepond-plugin-file-poster package using npm.
```bash
npm i filepond-plugin-file-poster --save
```
--------------------------------
### Manual installation of Image Resize plugin
Source: https://pqina.nl/filepond/docs/api/plugins/image-resize
Include the plugin and FilePond scripts locally, then register the plugin in a script tag.
```html
```
--------------------------------
### Install Image Resize plugin via npm
Source: https://pqina.nl/filepond/docs/api/plugins/image-resize
Install the filepond-plugin-image-resize package using npm.
```bash
npm i filepond-plugin-image-resize --save
```
--------------------------------
### Install FilePond via NPM
Source: https://pqina.nl/filepond/docs/getting-started/installation/javascript
Run this command in your project root to install the FilePond package.
```bash
npm i filepond --save
```
--------------------------------
### prepareFile(query)
Source: https://pqina.nl/filepond/docs/api/instance/methods
Starts preparing the file matching the given query. Returns a Promise that resolves with the file item and the output file `{ file, output }`.
```APIDOC
## prepareFile(query)
### Description
Starts preparing the file matching the given query. Returns a Promise that resolves with the file item and the output file `{ file, output }`.
### Method
prepareFile
### Parameters
- **query** (string|number|File) - Required - The query to identify the file to prepare.
### Response
Returns a Promise that resolves with an object containing `file` and `output`.
```
--------------------------------
### Install react-filepond and filepond with npm
Source: https://pqina.nl/filepond/docs/getting-started/installation/react
Install the FilePond React adapter and core FilePond package via npm. Use this before importing the component in your React project.
```bash
npm install react-filepond filepond --save
```
--------------------------------
### Install filepond-plugin-image-edit with npm
Source: https://pqina.nl/filepond/docs/api/plugins/image-edit
Install the Image Edit plugin via npm.
```bash
npm i filepond-plugin-image-edit --save
```
--------------------------------
### Install via CDN and register FilePondPluginFileValidateSize
Source: https://pqina.nl/filepond/docs/api/plugins/file-validate-size
Add the plugin script and FilePond from unpkg before