public class TinifyTransformer extends Object implements ImageTransformer
| Constructor and Description |
|---|
TinifyTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
setApiKey(String apiKey) |
void |
transform(Path sourcePath,
Path targetPath,
Map<String,String> parameters)
Transforms the image at
sourcePath and saves it into targetPath. |
public void setApiKey(String apiKey)
public void transform(Path sourcePath, Path targetPath, Map<String,String> parameters) throws ImageTransformationException
ImageTransformersourcePath and saves it into targetPath.transform in interface ImageTransformersourcePath - the source image pathtargetPath - the target path where to put the transformed image.parameters - additional parameters needed by the transformerImageTransformationException - if an error occurredCopyright © 2022 CrafterCMS. All rights reserved.