Platform Explorer / Nuxeo Platform 9.2

Contribution org.nuxeo.ecm.user.center.profile.commandline--command

This contribution is part of XML component org.nuxeo.ecm.user.center.profile.commandline inside nuxeo-user-profile-9.2.jar /OSGI-INF/commandline-contrib.xml

Extension Point

Extension point command of component CommandLineExecutorComponent.

Contributed Items

  • <command enabled="true" name="resizeAvatar">
          <commandLine>convert</commandLine>
          <parameterString>-define registry:temporary-path=#{nuxeo.tmp.dir} -quiet #{sourceFilePath}[0] jpg:- | convert - -resize #{targetWidth}x#{targetHeight}&gt; #{targetFilePath}</parameterString>
          <winParameterString>-define registry:temporary-path=#{nuxeo.tmp.dir} -quiet #{sourceFilePath}[0] -resize #{targetWidth}x#{targetHeight}&gt; #{targetFilePath}</winParameterString>
          <installationDirective>You need to install ImageMagick.</installationDirective>
        </command>

XML Source

<extension point="command" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">

    <command enabled="true" name="resizeAvatar">
      <commandLine>convert</commandLine>
      <parameterString>-define registry:temporary-path=#{nuxeo.tmp.dir} -quiet #{sourceFilePath}[0] jpg:- | convert - -resize #{targetWidth}x#{targetHeight}&gt; #{targetFilePath}</parameterString>
      <winParameterString>-define registry:temporary-path=#{nuxeo.tmp.dir} -quiet #{sourceFilePath}[0] -resize #{targetWidth}x#{targetHeight}&gt; #{targetFilePath}</winParameterString>
      <installationDirective>You need to install ImageMagick.</installationDirective>
    </command>

  </extension>