Class ScaleSvgOperation
java.lang.Object
org.hippoecm.frontend.plugins.gallery.imageutil.AbstractImageOperation
org.hippoecm.frontend.plugins.gallery.imageutil.AbstractScaleImageOperation
org.hippoecm.frontend.plugins.gallery.imageutil.ScaleSvgOperation
- All Implemented Interfaces:
ImageOperation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(InputStream data, ImageReader reader, ImageWriter writer) Executes a concrete image operation.run
(InputStream data, String mimeType) Runs an image operation and returns the result.Methods inherited from class org.hippoecm.frontend.plugins.gallery.imageutil.AbstractScaleImageOperation
calculateResizeRatio, calculateResizeRatio, getCompressionQuality, getParameters, getScaledData, getScaledHeight, getScaledWidth
Methods inherited from class org.hippoecm.frontend.plugins.gallery.imageutil.AbstractImageOperation
execute, getResult, setResult
-
Field Details
-
log
public static final org.slf4j.Logger log
-
-
Constructor Details
-
ScaleSvgOperation
-
-
Method Details
-
run
Description copied from interface:ImageOperation
Runs an image operation and returns the result.- Specified by:
run
in interfaceImageOperation
- Overrides:
run
in classAbstractImageOperation
- Parameters:
data
- the image data. The stream is closed by this method.mimeType
- MIME type of the image- Throws:
GalleryException
- when the image operation fails
-
execute
Description copied from class:AbstractImageOperation
Executes a concrete image operation.- Specified by:
execute
in classAbstractImageOperation
- Parameters:
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 data- Throws:
IOException
- when the image operation fails
-