Property | Type | Description | |
---|---|---|---|
httpClient |
Method | Description | |
---|---|---|
Compress ( Stream data ) : Task |
Compress stream
|
|
Compress ( byte data ) : Task |
Compress byte array of image
|
|
Compress ( string pathToFile ) : Task |
Compress file
|
|
Dispose ( ) : void | ||
Download ( |
||
Resize ( |
Uses the TinyPng API to create a resized version of your uploaded image.
|
|
Resize ( |
Uses the TinyPng API to create a resized version of your uploaded image.
|
|
SaveCompressedImageToAmazonS3 ( |
Stores a previously compressed image directly into Amazon S3 storage
|
|
SaveCompressedImageToAmazonS3 ( |
Stores a previously compressed image directly into Amazon S3 storage
|
|
TinyPngClient ( string apiKey ) : System |
Wrapper for the tinypng.com API
|
|
TinyPngClient ( string apiKey, |
Wrapper for the tinypng.com API
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
CreateContent ( Stream source ) : |
||
CreateContent ( byte source ) : |
public Compress ( byte data ) : Task |
||
data | byte | Byte array of the data to compress |
return | Task |
public Compress ( string pathToFile ) : Task |
||
pathToFile | string | Path to file on disk |
return | Task |
public Download ( |
||
result | ||
return | Task |
public Resize ( |
||
result | This is the previous result of running a compression |
|
resizeOperation | Supply a strongly typed Resize Operation. See |
|
return | Task |
public Resize ( |
||
result | This is the previous result of running a compression |
|
width | int | |
height | int | |
resizeType | ResizeType | |
return | Task |
public SaveCompressedImageToAmazonS3 ( |
||
result | The previously compressed image | |
amazonSettings | The settings for the amazon connection | |
path | string | The path and bucket to store in: bucket/file.png format |
return | Task |
public SaveCompressedImageToAmazonS3 ( |
||
result | The previously compressed image | |
path | string | The path to storage the image as |
bucketOverride | string | Optional: To override the previously configured bucket |
regionOverride | string | Optional: To override the previously configured region |
return | Task |
public TinyPngClient ( string apiKey ) : System | ||
apiKey | string | Your tinypng.com API key, signup here: https://tinypng.com/developers |
return | System |
public TinyPngClient ( string apiKey, |
||
apiKey | string | Your tinypng.com API key, signup here: https://tinypng.com/developers |
amazonConfiguration | Configures defaults to use for storing images on Amazon S3 | |
return | System |