shotstack / shotstack-sdk-ruby

Ruby SDK for Shotstack, the cloud video editing API.
https://shotstack.io/product/sdk/ruby/
4 stars 4 forks source link

Allow jpg output format #7

Closed johnreaganmoore closed 3 years ago

johnreaganmoore commented 3 years ago

Not sure if this is correct, but I want to be able to grab an image from a video and I think I need to be able to put an image file extension.

johnreaganmoore commented 3 years ago
    "timeline": {
        "tracks": [
            {
                "clips": [
                    {
                        "asset": {
                            "type": "video",
                            "src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/footage/skateboarding.mp4",
                            "trim": 2
                        },
                        "start": 0,
                        "length": 1
                    }
                ]
            }
        ]
    },
    "output": {
        "format": "jpg",
        "resolution": "hd"
    }
}

Support sent me that as an example of grabbing a screenshot, but I am not able to use jpg as an output format in the ruby sdk.

jeffski commented 3 years ago

Thanks for the pull request. We will be releasing a big update in the next week or two with all image formats and support for a heap of new features. I can merge this for now though so you aren't blocked.

jeffski commented 3 years ago

Thanks again @johnreaganmoore. Changes are merged and the gem has been deployed to RubyGems: https://rubygems.org/gems/shotstack.