# image 1.1.20

Provides server and web apps the ability to load, manipulate, and save images with various image file formats including PNG, JPEG, GIF, WebP, TIFF, TGA, PSD, and OpenEXR.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'image:1.1.20'
```
Published: 2014-04-26T08:24:56.387530Z
Expected archive SHA-256: b3891f35c442470f96398dfbc708d461e5cfd1a6ccfd520949ea85b846df4858

Available in cache; verification: upstream_checksum
## Direct dependencies
- archive: >=1.0.16 <1.1.0
- xml: >=0.9.5 <1.0.0

## Package README (untrusted upstream documentation)
# image

[![Build Status](https://drone.io/github.com/brendan-duncan/image/status.png)](https://drone.io/github.com/brendan-duncan/image/latest)

##Overview

A Dart library providing the ability to load, save and manipulate images in a variety of different file formats.

The library has no reliance on `dart:io`, so it can be used for both server and
web applications. 

**Supported Image Formats:**

Read/Write:

- PNG / Animated APNG
- JPEG
- Targa
- GIF / Animated GIF

Read Only:

- WebP / Animated WebP
- TIFF
- Photoshop PSD
- OpenEXR


##[Documentation](https://github.com/brendan-duncan/image/wiki)

##[API](http://brendan-duncan.github.io/#image/image)

##[Examples](https://github.com/brendan-duncan/image/wiki/Examples)

##[Format Decoding Functions](https://github.com/brendan-duncan/image/wiki#format-decoding-functions)

##Samples

Load an image, resize it, and save it as a png:

    import 'dart:io' as Io;
    import 'package:image/image.dart';
    void main() {
      // Read an image from file (webp in this case).
      // decodeImage will identify the format of the image and use the appropriate
      // decoder.
      Image image = decodeImage(new Io.File('test.webp').readAsBytesSync());

      // Resize the image to a 120x? thumbnail (maintaining the aspect ratio).
      Image thumbnail = copyResize(image, 120);
    
      // Save the thumbnail as a PNG.
      new Io.File('thumbnail.png')
            ..writeAsBytesSync(encodePng(thumbnail));
    }


## Changelog







 
