Platform Explorer / Nuxeo Platform 6.0

Operation Picture.Resize

Resize a picture

Description

Use conversion service to resize a picture contained in a Document or a Blob
Operation id Picture.Resize
AliasesPicture.resize
Category Conversion
Label Resize a picture
Requires
Since

Parameters

Name Description Type Required Default value
maxHeight int yes  
maxWidth int yes  

Signature

Inputs blob, document
Outputs blob, blob

Implementation information

Implementation class org.nuxeo.ecm.platform.picture.operation.PictureResize
Contributing component org.nuxeo.ecm.platform.picture.operation

JSON definition

{
  "id" : "Picture.Resize",
  "aliases" : [ "Picture.resize" ],
  "label" : "Resize a picture",
  "category" : "Conversion",
  "requires" : null,
  "description" : "Use conversion service to resize a picture contained in a Document or a Blob",
  "url" : "Picture.Resize",
  "signature" : [ "blob", "blob", "document", "blob" ],
  "params" : [ {
    "name" : "maxHeight",
    "description" : "",
    "type" : "int",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "maxWidth",
    "description" : "",
    "type" : "int",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}