Scaled Images
Table of contents
Description
This source service is able to enrich information objects with scaled versions of their images.
Responsible Person
Status
Status | Ready for Use |
---|
Possible Values: Ready for Use, In Development, Plannend, Broken
Aggregation Features
Fill | No |
---|---|
Update | No |
Enrich | Yes |
Source Code
Project: https://github.com/soziotech/CommunityMashup/tree/master/sources/ScaledImagesSourceService
Tracking
Planned Todos
Bugs
Feature Request
Used Service
No external service is used.
Used Libraries
Name | Version | License | Usage | Link |
---|---|---|---|---|
imgscalr | 4.2 | Apache 2.0 | Compiled | http://www.thebuzzmedia.com/software/imgscalr-java-image-scaling-library/ |
Possible Usage Values: Compiled, Source, Extended Source, Modified Source
Configuration
Key | Description | Possible Values | Default | Required (Yes/No) |
---|---|---|---|---|
enrichContent | Whether to enrich content images or not. | True/False | True | No |
enrichPerson | Whether to enrich person images or not. | True/False | True | No |
enrichOrganisation | Whether to enrich organisation images or not. | True/False | True | No |
neededIOMetaTag | Specific meta tag that is needed for a information object to be processed. | Text | None | No |
neededImageMetaTag | Specific meta tag that is needed for a image to be processed. | Text | None | No |
writeDimension | Switch to turn on writing of dimensions to original images. | True/False | False | No |
imageWidth | Width to scale images to. | Positive Number | 50 | No |
imageHeight | Height to scale images to. | Positive Number | 50 | No |
scaleMode | Mode of scaling according to Scalr.Mode. | AUTOMATIC, FIT_EXACT, FIT_TO_HEIGHT, FIT_TO_WIDTH | AUTOMATIC | No |
scaleMethod | Method of scaling according to Scalr.Method. | AUTOMATIC, BALANCED, QUALITY, SPEED, ULTRA_QUALITY | AUTOMATIC | No |
createScaledImages | Switch to turn off creation of scaled images. E. g. to write only dimensions | True/False | True | No |
imageType | Type of the resulting scaled image. | jpg, png or gif according javax.imageio.ImageIO | png | No |
Example:
<sources name="Small images"bundleId="org.sociotech.communitymashup.source.ScaledImagesSourceService" > <configuration> <properties Key="imageWidth" Value="25"/> <properties Key="scaleMode" Value="FIT_TO_WIDTH"/> <properties Key="scaleMethod" Value="QUALITY"/> </configuration> </sources>
Description | Creates 25px width versions of all images attached to information objects. |
---|
Meta-Informations
Type | Description | Value | Items |
---|---|---|---|
MetaTag | MetaTag attached to every created scaled image. | scaled_image | Images |
Transformation
External | CommunityMashup |
---|---|