# image 1.1.17

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




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'image:1.1.17'
```
Published: 2014-04-02T20:28:38.917520Z
Expected archive SHA-256: 8cf1ba071b0c0bd04bbe34eb5cfa3beac9a7466e0a5d202e0ae232d2a884f04c

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 to encode and decode various image formats.

The library has no reliance on `dart:io`, so it can be used for both server and
web applications. 

The image library currently supports decoding and encoding the following 
formats:

- PNG / Animated APNG
- JPG
- TGA
- GIF / Animated GIF

Decoding Only:

- WebP / Animated WebP
- TIFF
- PSD


##[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##

##Samples

Load a WebP image, resize it, and save it as a png:

    import 'dart:io' as Io;
    import 'package:image/image.dart';
    void main() {
      // Read a webp image from file.
      Image image = decodeWebP(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







 
