Product Updates

Boomerang Transformation Effect

Apr 09, 2018

Boomerang transformation effect for videos and GIFs!

You can apply it by adding e_boomerang to the transformation URL as follows:

Ruby:
Copy to clipboard
cl_image_tag("puppy_leash_xptkoj.gif", :resource_type=>"video", :transformation=>[
  {:effect=>"boomerang"},
  {:effect=>"loop"}
  ])
PHP v1:
Copy to clipboard
cl_image_tag("puppy_leash_xptkoj.gif", array("resource_type"=>"video", "transformation"=>array(
  array("effect"=>"boomerang"),
  array("effect"=>"loop")
  )))
PHP v2:
Copy to clipboard
(new ImageTag('puppy_leash_xptkoj.gif'))
  ->effect(Effect::boomerang())
  ->effect(Effect::loop())
  ->assetType(AssetType::VIDEO);
Python:
Copy to clipboard
CloudinaryVideo("puppy_leash_xptkoj.gif").image(transformation=[
  {'effect': "boomerang"},
  {'effect': "loop"}
  ])
Node.js:
Copy to clipboard
cloudinary.image("puppy_leash_xptkoj.gif", {resource_type: "video", transformation: [
  {effect: "boomerang"},
  {effect: "loop"}
  ]})
Java:
Copy to clipboard
cloudinary.url().transformation(new Transformation()
  .effect("boomerang").chain()
  .effect("loop")).resourceType("video").imageTag("puppy_leash_xptkoj.gif");
JS:
Copy to clipboard
cloudinary.videoTag('puppy_leash_xptkoj.gif', {transformation: [
  {effect: "boomerang"},
  {effect: "loop"}
  ]}).toHtml();
jQuery:
Copy to clipboard
$.cloudinary.image("puppy_leash_xptkoj.gif", {resource_type: "video", transformation: [
  {effect: "boomerang"},
  {effect: "loop"}
  ]})
React:
Copy to clipboard
<Video publicId="puppy_leash_xptkoj.gif" resourceType="video">
  <Transformation effect="boomerang" />
  <Transformation effect="loop" />
</Video>
Vue.js:
Copy to clipboard
<cld-video publicId="puppy_leash_xptkoj.gif" resourceType="video">
  <cld-transformation effect="boomerang" />
  <cld-transformation effect="loop" />
</cld-video>
Angular:
Copy to clipboard
<cl-video public-id="puppy_leash_xptkoj.gif" resource-type="video">
  <cl-transformation effect="boomerang">
  </cl-transformation>
  <cl-transformation effect="loop">
  </cl-transformation>
</cl-video>
.NET:
Copy to clipboard
cloudinary.Api.UrlVideoUp.Transform(new Transformation()
  .Effect("boomerang").Chain()
  .Effect("loop")).BuildImageTag("puppy_leash_xptkoj.gif")
Android:
Copy to clipboard
MediaManager.get().url().transformation(new Transformation()
  .effect("boomerang").chain()
  .effect("loop")).resourceType("video").generate("puppy_leash_xptkoj.gif");
iOS:
Copy to clipboard
cloudinary.createUrl().setResourceType("video").setTransformation(CLDTransformation()
  .setEffect("boomerang").chain()
  .setEffect("loop")).generate("puppy_leash_xptkoj.gif")
Boomerang effect

Learn more about the boomerang effect here.

← Back to all product updates