Boomerang transformation effect for videos and GIFs!
You can apply it by adding e_boomerang
to the transformation URL as follows:
Ruby:
cl_image_tag("puppy_leash_xptkoj.gif", :resource_type=>"video", :transformation=>[
{:effect=>"boomerang"},
{:effect=>"loop"}
])
PHP v1:
cl_image_tag("puppy_leash_xptkoj.gif", array("resource_type"=>"video", "transformation"=>array(
array("effect"=>"boomerang"),
array("effect"=>"loop")
)))
PHP v2:
(new ImageTag('puppy_leash_xptkoj.gif'))
->effect(Effect::boomerang())
->effect(Effect::loop())
->assetType(AssetType::VIDEO);
Python:
CloudinaryVideo("puppy_leash_xptkoj.gif").image(transformation=[
{'effect': "boomerang"},
{'effect': "loop"}
])
Node.js:
cloudinary.image("puppy_leash_xptkoj.gif", {resource_type: "video", transformation: [
{effect: "boomerang"},
{effect: "loop"}
]})
Java:
cloudinary.url().transformation(new Transformation()
.effect("boomerang").chain()
.effect("loop")).resourceType("video").imageTag("puppy_leash_xptkoj.gif");
JS:
cloudinary.videoTag('puppy_leash_xptkoj.gif', {transformation: [
{effect: "boomerang"},
{effect: "loop"}
]}).toHtml();
jQuery:
$.cloudinary.image("puppy_leash_xptkoj.gif", {resource_type: "video", transformation: [
{effect: "boomerang"},
{effect: "loop"}
]})
React:
<Video publicId="puppy_leash_xptkoj.gif" resourceType="video">
<Transformation effect="boomerang" />
<Transformation effect="loop" />
</Video>
Vue.js:
<cld-video publicId="puppy_leash_xptkoj.gif" resourceType="video">
<cld-transformation effect="boomerang" />
<cld-transformation effect="loop" />
</cld-video>
Angular:
<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:
cloudinary.Api.UrlVideoUp.Transform(new Transformation()
.Effect("boomerang").Chain()
.Effect("loop")).BuildImageTag("puppy_leash_xptkoj.gif")
Android:
MediaManager.get().url().transformation(new Transformation()
.effect("boomerang").chain()
.effect("loop")).resourceType("video").generate("puppy_leash_xptkoj.gif");
iOS:
cloudinary.createUrl().setResourceType("video").setTransformation(CLDTransformation()
.setEffect("boomerang").chain()
.setEffect("loop")).generate("puppy_leash_xptkoj.gif")
Learn more about the boomerang effect here.