ਜਦੋਂ ਕਿ ਇੱਕ ਐਨੀਮੇਟਡ GIF ਦੇ ਮਾਪਾਂ ਨੂੰ ਬਿਲਕੁਲ GrabzIt ਵਿੱਚ ਨਿਰਦਿਸ਼ਟ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ, ਤੁਸੀਂ ਸਿਰਫ਼ ਇੱਕ ਮਾਪ ਨੂੰ -1 ਦੇ ਰੂਪ ਵਿੱਚ ਪਰਿਭਾਸ਼ਿਤ ਦੂਜੇ ਦੇ ਨਾਲ ਨਿਸ਼ਚਿਤ ਕਰ ਸਕਦੇ ਹੋ।
ਇਹ ਵਿਡੀਓ ਨੂੰ ਨਿਰਧਾਰਿਤ ਮਾਪ ਦੇ ਆਕਾਰ ਤੱਕ ਸਕੇਲ ਕਰੇਗਾ, ਦੂਜੇ ਅਣ-ਨਿਰਧਾਰਤ ਮਾਪ ਨੂੰ ਵੀ ਉਸੇ ਅਨੁਪਾਤ ਵਿੱਚ ਘਟਾ ਦਿੱਤਾ ਜਾਵੇਗਾ। ਹਾਲਾਂਕਿ ਅਨਿਸ਼ਚਿਤ ਮਾਪ ਦਾ ਆਕਾਰ ਸਰੋਤ ਵੀਡੀਓ ਦੇ ਮਾਪਾਂ 'ਤੇ ਨਿਰਭਰ ਕਰਦਾ ਹੈ।
ਇਸ ਤਕਨੀਕ ਦਾ ਫਾਇਦਾ ਇਹ ਹੈ ਕਿ ਇਹ ਇੱਕ ਪੂਰੇ ਵੀਡੀਓ ਨੂੰ ਬਿਨਾਂ ਕਿਸੇ ਪੈਡਿੰਗ ਜਾਂ ਕ੍ਰੌਪਿੰਗ ਦੇ ਇੱਕ ਛੋਟੇ ਆਕਾਰ ਵਿੱਚ ਸਕੇਲ ਕਰਨ ਦੀ ਇਜਾਜ਼ਤ ਦਿੰਦਾ ਹੈ। ਹੇਠਾਂ 200px ਦੀ ਚੌੜਾਈ ਦੇ ਨਾਲ ਇੱਕ ਐਨੀਮੇਟਿਡ GIF ਅਤੇ ਸਰੋਤ ਵੀਡੀਓ ਚੌੜਾਈ ਦੇ 200px ਚੌੜਾਈ ਦੇ ਅਨੁਪਾਤ ਦੇ ਆਧਾਰ 'ਤੇ ਆਟੋ-ਆਕਾਰ ਦੀ ਉਚਾਈ ਦਿਖਾਉਣ ਵਾਲੀ ਇੱਕ ਉਦਾਹਰਨ ਹੈ।
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); AnimationOptions options = new AnimationOptions(); options.Width = 200; options.Height = -1; grabzIt.URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", options); grabzIt.Save("http://www.mywebsite.com/Home/Handler");
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); AnimationOptions options = new AnimationOptions(); options.setWidth(200); options.setHeight(-1); grabzIt.URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", options); grabzIt.Save("http://www.mywebsite.com/handler");
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.5.2/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("https://www.youtube.com/watch?v=a1Y73sPHKxw",
{"format":"gif", "width":200, "height":-1}).Create();
</script>
var grabzit = require('grabzit'); var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret"); client.url_to_animation("https://www.youtube.com/watch?v=a1Y73sPHKxw", {"width":200, "height":-1}); client.save("http://www.example.com/handler", function (error, id){ if (error != null){ throw error; } });
$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret"); $options = GrabzItAnimationOptions->new(); $options->width(200); $options->height(-1); $grabzIt->URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", $options); $grabzIt->Save("http://www.mywebsite.com/handler.pl");
$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); $options = new \GrabzIt\GrabzItAnimationOptions(); $options->setWidth(200); $options->setHeight(-1); $grabzIt->URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", $options); $grabzIt->Save("http://www.mywebsite.com/handler.php");
grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret") options = GrabzItAnimationOptions.GrabzItAnimationOptions() options.width = 200 options.height = -1 grabzIt.URLToAnimation("https://www.youtube.com/watch?v=a1Y73sPHKxw", options) grabzIt.Save("http://www.mywebsite.com/handler.py")
https://api.grabz.it/services/convert?key=Sign in to view your Application Key&format=gif&width=200&height=-1&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Da1Y73sPHKxw
grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret") options = GrabzIt::AnimationOptions.new() options.width = 200 options.height = -1 grabzIt.url_to_animation("https://www.youtube.com/watch?v=a1Y73sPHKxw", options) grabzIt.save("http://www.mywebsite.com/handler/index")
ਦੀ ਗਣਨਾ ਕਰਦੇ ਸਮੇਂ ਐਨੀਮੇਟਡ GIF ਦਾ ਕੁੱਲ ਰੈਜ਼ੋਲਿਊਸ਼ਨ, ਇਹ ਨਿਰਧਾਰਤ ਕਰਨ ਲਈ ਕਿ ਕੀ ਇਹ ਤੁਹਾਡੇ ਮੌਜੂਦਾ ਪੈਕੇਜ 'ਤੇ ਮਨਜ਼ੂਰ ਹੈ, ਇਸ ਦੀ ਬਜਾਏ ਗੈਰ-ਆਟੋ-ਸਾਈਜ਼ਿੰਗ ਮਾਪ ਦਾ ਮੁੱਲ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ।