Skip to content

Commit

Permalink
Add image.strip
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Albert committed Feb 9, 2017
1 parent 7f3e2ac commit 3486b01
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 18 deletions.
7 changes: 7 additions & 0 deletions storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,10 @@ The following optional parameters are also accepted:
* **category_id** (integer) - Video category ID number.
* **privacy_status** (string) - Privacy status of the video. Accepted
values are "public", "private" and "unlisted" *(default: "public")*.

s3_signed
---------

Upload to S3 signed URLs. It requires the following parameters:

* **url** (string) - the S3 signed URL to upload to.
53 changes: 35 additions & 18 deletions tasks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,6 @@ html.scrape
:output page_title:
:output_type page_title: string

image.face
----------

.. dragon:task:: image.face
Return an array of positions of detected faces, with type and confidence.

:input url_callback: URL to callback when the task completes successfully. See :doc:`callbacks` for details.
:input_type url_callback: string
:input url_errback: URL to callback when the task fails. See :doc:`callbacks` for details.
:input_type url_errback: string
:input url: URL of the analyzed image.
:input_type url: string
:output faces: An array containing salient points coordinates.
:output_type faces: object

image.gif
---------

Expand Down Expand Up @@ -183,7 +167,7 @@ image.info
:output_type height: integer
:output alpha:
:output_type alpha: boolean
:output exif_orientation: The exif orientation that should be applied to the image to see it as it was shot, as "EXIF_ORIENTATION_x", where:
:output exif_orientation: The exif orientation that should be applied to the image to see it as it was shot, as an integer x, where:

* x=1: The 0th row is at the visual top of the image, and the 0th column is the visual left-hand side.

Expand All @@ -200,7 +184,7 @@ image.info
* x=7: The 0th row is the visual right-hand side of the image, and the 0th column is the visual bottom.

* x=8: The 0th row is the visual left-hand side of the image, and the 0th column is the visual bottom.
:output_type exif_orientation: string
:output_type exif_orientation: integer
:output rotation: The rotation that should be applied to the image to see it as it was shot, in degrees. (None if a flip is required or info is not present in exif)
:output_type rotation: float
:output date_time:
Expand All @@ -214,6 +198,39 @@ image.info
:output exposure_time:
:output_type exposure_time: float

image.strip
-----------

.. dragon:task:: image.strip
Create an image strip of custom dimensions by concatenating images.

:input url_callback: URL to callback when the task completes successfully. See :doc:`callbacks` for details.
:input_type url_callback: string
:input url_errback: URL to callback when the task fails. See :doc:`callbacks` for details.
:input_type url_errback: string
:input urls: Array of the source images URLs.
:input_type urls: MultiHttpFileField
:input width: Pixel width of each frame stitched into film strip.
:input_type width: integer
:input height: Pixel height of each frame stitched into film strip.
:input_type height: integer
:input crop: If false, video frames fit each strip section. If true, video frames fill each strip section, aligning centers. *(default:* ``False`` *)*
:input_type crop: boolean
:input wrap: Number of images that can be stitched horizontally before stitching starts onto a new line. Use it to create a two dimensional film strip, with count = int * wrap. If left unspecified, all frames are stitched on a single line.
:input_type wrap: integer
:input format: Output image file format *(choices:* ``'jpeg'``, ``'png'`` *)* *(default:* ``u'jpeg'`` *)*
:input_type format: string
:output count: Actual number of frames in the output.
:output_type count: integer
:output width: Width of the output image in pixels.
:output_type width: integer
:output height: Height of the output image in pixels.
:output_type height: integer
:output content_type: Mime-type of the output image.
:output_type content_type: string
:file output: URL of the output image.

image.thumb
-----------

Expand Down

0 comments on commit 3486b01

Please sign in to comment.