Package org.filestack.transforms
Class ImageTransform
java.lang.Object
org.filestack.transforms.Transform
org.filestack.transforms.ImageTransform
Transform
subclass for image transformations.-
Field Summary
Fields inherited from class org.filestack.transforms.Transform
cdnService, config, isExternal, source, tasks
-
Constructor Summary
ConstructorDescriptionImageTransform
(Config config, CdnService cdnService, String source, boolean isExternal) -
Method Summary
Modifier and TypeMethodDescriptionaddTask
(ImageTransformTask task) Add a new transformation to the chain.com.google.gson.JsonObject
debug()
Debugs the transformation as built so far, returning explanations of any issues.io.reactivex.Single
<com.google.gson.JsonObject> Async, observable version ofdebug()
.store()
Stores the result of a transformation into a new file.store
(StorageOptions storageOptions) Stores the result of a transformation into a new file.io.reactivex.Single
<FileLink> Async, observable version ofstore()
.io.reactivex.Single
<FileLink> storeAsync
(StorageOptions storageOptions) Async, observable version ofstore(StorageOptions)
.Methods inherited from class org.filestack.transforms.Transform
getContent, getContentAsync, getContentJson, getContentJsonAsync, url
-
Constructor Details
-
ImageTransform
-
-
Method Details
-
debug
Debugs the transformation as built so far, returning explanations of any issues.- Returns:
JSON
report for transformation- Throws:
HttpException
- on error response fro\m backendIOException
- on network failure- See Also:
-
store
Stores the result of a transformation into a new file. Uses default storage options.- Returns:
- new
FileLink
pointing to the file - Throws:
HttpException
- on error response from backendIOException
- on network failure- See Also:
-
store
Stores the result of a transformation into a new file.- Parameters:
storageOptions
- configure where and how your file is stored- Returns:
- new
FileLink
pointing to the file - Throws:
HttpException
- on error response from backendIOException
- on network failure- See Also:
-
addTask
Add a new transformation to the chain. Tasks are executed in the order they are added.- Parameters:
task
- any of the availableImageTransformTask
subclasses
-
debugAsync
public io.reactivex.Single<com.google.gson.JsonObject> debugAsync()Async, observable version ofdebug()
. Same exceptions are passed through observable. -
storeAsync
Async, observable version ofstore()
. Same exceptions are passed through observable. -
storeAsync
Async, observable version ofstore(StorageOptions)
. Same exceptions are passed through observable.
-