Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25550

Picture.Resize will always return null blob when used with a Document as input.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.1
    • Fix Version/s: 10.3
    • Component/s: Automation

      Description

      • Create an automation script that calls Picture.Resize, e.g.
        function run(input, params) {
        
          var blob = Picture.Resize(
            input, {
              /*required:true - type: int*/
              'maxHeight': 199,
              /*required:true - type: int*/
              'maxWidth': 378
            }
          );
        
          return blob;
        }
        
      • Associate an action button or an event handler that executes the automation script
      • Picture.Resize will always return null blob when used with a Document as input.

      Expected
      The operation fetches the binary of the blob holder to produce the resized pic.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: