프로퍼티 | 타입 | 설명 | |
---|---|---|---|
httpClient |
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
메소드 | 설명 | |
---|---|---|
CreateContent ( Stream source ) : |
||
CreateContent ( byte source ) : |
public Compress ( byte data ) : Task |
||
data | byte | Byte array of the data to compress |
리턴 | Task |
public Compress ( string pathToFile ) : Task |
||
pathToFile | string | Path to file on disk |
리턴 | Task |
public Download ( |
||
result | ||
리턴 | Task |
public Resize ( |
||
result | This is the previous result of running a compression |
|
resizeOperation | Supply a strongly typed Resize Operation. See |
|
리턴 | Task |
public Resize ( |
||
result | This is the previous result of running a compression |
|
width | int | |
height | int | |
resizeType | ResizeType | |
리턴 | 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 |
리턴 | 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 |
리턴 | Task |
public TinyPngClient ( string apiKey ) : System | ||
apiKey | string | Your tinypng.com API key, signup here: https://tinypng.com/developers |
리턴 | 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 | |
리턴 | System |