de.deepamehta.images
public class ImagePlugin extends de.deepamehta.core.osgi.PluginActivator implements ImageService
Modifier and Type | Field and Description |
---|---|
static String |
DM4_HOST_URL |
static String |
FILEREPO_BASE_URI_NAME |
static String |
FILEREPO_IMAGES_SUBFOLDER |
Constructor and Description |
---|
ImagePlugin() |
Modifier and Type | Method and Description |
---|---|
List<Image> |
browse()
Returns a set of all image source URLs.
|
de.deepamehta.core.Topic |
resizeImageFileTopic(long fileTopicId,
int maxSize,
String mode)
Resizes an existing image represented by a DeepaMehta 4 file topic.
|
de.deepamehta.core.Topic |
upload(de.deepamehta.files.UploadedFile image)
Standard image upload integration.
|
String |
uploadCKEditor(de.deepamehta.files.UploadedFile image,
Long func)
CKEditor image upload integration, see
CKEDITOR.config.filebrowserImageBrowseUrl
|
public static final String FILEREPO_BASE_URI_NAME
public static final String FILEREPO_IMAGES_SUBFOLDER
public static final String DM4_HOST_URL
public String uploadCKEditor(de.deepamehta.files.UploadedFile image, Long func)
image
- Uploaded file resource.func
- CKEDITOR function number to call.public de.deepamehta.core.Topic upload(de.deepamehta.files.UploadedFile image)
image
- Uploaded file resource.public de.deepamehta.core.Topic resizeImageFileTopic(long fileTopicId, int maxSize, String mode)
ImageService
resizeImageFileTopic
in interface ImageService
fileTopicId
- long An ID of a "File" topic.
maxSize int The maximum size of the larger side (Mode: "Auto") or the "fit to width" or "fit to height" value in pixel.
fitTo String Either "width", or "height", otherwise "auto" is used.Copyright © 2016. All Rights Reserved.