Title: Get the perfect image size at any given point in your theme!
Author: remoblaser
Published: <strong>23 Eanáir, 2017</strong>
Last modified: 23 Eanáir, 2017

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/flyimage.svg)

# Get the perfect image size at any given point in your theme!

 By [remoblaser](https://profiles.wordpress.org/remoblaser/)

[Download](https://downloads.wordpress.org/plugin/flyimage.zip)

 * [Details](https://ga.wordpress.org/plugins/flyimage/#description)
 * [Reviews](https://ga.wordpress.org/plugins/flyimage/#reviews)
 * [Development](https://ga.wordpress.org/plugins/flyimage/#developers)

 [Support](https://wordpress.org/support/plugin/flyimage/)

## Description

flyimage allows you to specify the image size you would like to receive in your 
Themes HTML!
 The file will automatically be created on a first visit. Further visits
will use the already created file. Cached images will be stored in your uploads 
Directory (usually wp-content/uploads/fly/)

### Single Image

**flyImage($attachmentId / $attachmentUrl, $width, $height)**

Example: Image with a width of 200px

    ```
    <img src="{{ flyImage(1, 200) }}" />
    ```

Example: Image width a width of 300px and a height of 200px (cropped)

    ```
    <img src="{{ flyImage(1, 300, 200) }}" />
    ```

Example: Image width a width of 300px and a height of 200px (uncropped)

    ```
    <img src="{{ flyImage(1, 300, 200, false) }}" /><h3>Get a full SourceSet</h3>
    ```

**flyImageSourceSet($attachmentId / $attachmentUrl, [$width1, $width2, …])**

Example: Sizes: 400px, 800px and 1200px (width):

    ```
    <img srcset="{{ flyImageSourceSet(1, [400, 800, 1200]) }}" />
    ```

## Reviews

![](https://secure.gravatar.com/avatar/8e611561b1bca356c70ebf4dd250c14dd0475f06472bdcdfccc6f10ad600a0a7?
s=60&d=retro&r=g)

### 󠀁[Does what it says](https://wordpress.org/support/topic/does-what-it-says-537/)󠁿

 [eastcoast67](https://profiles.wordpress.org/eastcoast67/) 24 Eanáir, 2017

Nice plugin which is very usefull in theme development. Work like a charm…

 [ Read all 1 review ](https://wordpress.org/support/plugin/flyimage/reviews/)

## Contributors & Developers

“Get the perfect image size at any given point in your theme!” is open source software.
The following people have contributed to this plugin.

Contributors

 *   [ remoblaser ](https://profiles.wordpress.org/remoblaser/)

[Translate “Get the perfect image size at any given point in your theme!” into your language.](https://translate.wordpress.org/projects/wp-plugins/flyimage)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/flyimage/), check out
the [SVN repository](https://plugins.svn.wordpress.org/flyimage/), or subscribe 
to the [development log](https://plugins.trac.wordpress.org/log/flyimage/) by [RSS](https://plugins.trac.wordpress.org/log/flyimage/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0**
 *  Last updated **9 mbliana ago**
 *  Active installations **Fewer than 10**
 *  Language
 * [English (US)](https://wordpress.org/plugins/flyimage/)
 *  [Advanced View](https://ga.wordpress.org/plugins/flyimage/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/flyimage/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/flyimage/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/flyimage/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/flyimage/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/flyimage/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/flyimage/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/flyimage/reviews/)

## Contributors

 *   [ remoblaser ](https://profiles.wordpress.org/remoblaser/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/flyimage/)