Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-13254

TransformationOptions Should Have Separate Source Options

    Details

    • Resolution Time Custom Field:
      193 weeks, 6 days, 16 hours, 6 minutes, 19 seconds

      Description

      TransformationOptions should have separate options which apply to the source and target of the transformation.

      For example, suppose a user needs to grab 1 frame of video 35 seconds into a clip and transform that into a 100x75 png image for a thumbnail.

      The final size of 100x75 only applies to the target of the transformation and would probably correspond to an already defined TransformationOptions in use for other types of source content, like the 'doclib' ThumbnailDefinition.

      The timecode offset of 35 seconds only applies to the source of the transformation and may need to be specified by the user differently for each source content node, certainly 35 seconds wouldn't work for all videos.

      Separating the source and target portions of the TransformationOptions would have several advantages.

      Options like the target 'doclib' definition could be reused in other beans which would make tasks like changing the output size of the 'doclib' definition much easier for admins as it would only need to be changed in one spot.

      Likewise options that only applied to the source of the transformation could be reused. For instance an admin could setup TransformationOptions that always pulled the 2nd page of a PDF document with multiple target output sizes and only have to specify the 'page' value of 2 in a single spot. This also allows for easier creation of things like actions that allow the user to specify a value for the page parameter.

      The suggested and implementation extends the TransformationOptions class to contain a TransformationTargetOptions object and a collection of TransformationSourceOptions objects. This allows transformation options to accommodate multiple source mimetypes in a single object, for example:

      SourceTargetTransformationOptions

      _ List< TransformationSourceOptions>
      _ TransformationSourceOptions (grab the 2nd page of PDFs)
      _ TransformationSourceOptions (grab 5 seconds into video clips)
      _ TransformationTargetOptions (output 100px png)

      Classes implementing the TransformationSourceOptions interface can define the relevant options: offset for video, page number for paged documents, etc.

      Some of the attached code is only necessary to be compatible with the current implementation and could be removed with a few changes to the existing Alfresco code it extends, which should be explained in the javadoc.

      I hope I've explained this sufficiently. If there are any questions please don't hesitate to contact me.

      Thanks.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                rgauss Ray Gauss II (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified