public class ScaleSvgOperation extends AbstractScaleImageOperation
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
ScaleSvgOperation(ScalingParameters parameters) |
Modifier and Type | Method and Description |
---|---|
void |
execute(InputStream data,
ImageReader reader,
ImageWriter writer)
Executes a concrete image operation.
|
ImageOperationResult |
run(InputStream data,
String mimeType)
Runs an image operation and returns the result.
|
calculateResizeRatio, calculateResizeRatio, getCompressionQuality, getParameters, getScaledData, getScaledHeight, getScaledWidth
execute, getResult, setResult
public ScaleSvgOperation(ScalingParameters parameters)
public ImageOperationResult run(InputStream data, String mimeType) throws GalleryException
ImageOperation
run
in interface ImageOperation
run
in class AbstractImageOperation
data
- the image data. The stream is closed by this method.mimeType
- MIME type of the imageGalleryException
- when the image operation failspublic void execute(InputStream data, ImageReader reader, ImageWriter writer) throws IOException
AbstractImageOperation
execute
in class AbstractImageOperation
data
- the image data. Closing the stream is the responsibility of the caller (i.e. this class).reader
- reader for the image datawriter
- writer for the image dataIOException
- when the image operation failsCopyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.