![]() ![]() ![]() Use webp/mp4 assets from fixed_height_small, fixed_width_small, fixed_width_downsampled, fixed_height_downsampled to load content quickly in the trending/search grid. ![]() Returns renditions with formats that are suitable for loading animated content grids efficiently with small size assets. If your use case is Mobile/ Desktop Application with bandwidth limitations eg: MMS only allow assets less than 1MB Once the user has selected the sticker from the grid use the url/webP fields from the largest resolution to access the gif/webP formats as layers on top of the canvasĭ _large _medium _height _height_downsampled _height_small _width _width_downsampled _width_small Use the webp/mp4 URLs from the renditions in the image object to load content quickly in the trending/search Grid. Returns renditions with formats that are suitable for loading animated asset grids efficiently and layering transparent background sticker assets on the canvas. If your use case is Mobile/Desktop Application with Grid/Carousel Picker for Sticker Layering in Photo/Video editing tools Once the user has selected the content from the grid, use the largest possible rendition while sending the content in the message.ĭ _height _height_downsampled _height_small _width _width_downsampled _width_small Returns renditions with formats that are suitable for loading animated asset grids efficiently. If your use case is Mobile/Desktop Application with Grid/Carousel Picker for Messaging using GIFs & Stickers Once the user has selected an content from the grid, use the available renditions from the video object to preview/send the selected clip (with sound)ĭ_width .360p .720p .480p .1080p At this stage you will display the non sound version of the Clip in the grid to avoid loading multiple video players at once. If your use case is Mobile/Desktop Application with Grid/Carousel Picker for Clips Content Type Send: downsized_large, downsized, or downsized_medium. GIF Scroll Picker in a Mobile Application Scroll: fixed_width_small or fixed_height_small. If you are concerned that this rendition is too large to load quickly, downsized_medium and then downsized are also good options. We recommend the downsized_large rendition for this implementation. When the user selects a gif object, developers should call a higher quality rendition to send through to the application. You may also choose to load the fixed_height_still or fixed_width_still initially to provide a more seamless scrolling experience. Use our MP4 or WEBP format for the grid, to speed loading times. To avoid cutting images off, and to present the highest resolution image to your users at the lightest file size, we would recommend using the fixed_height or fixed_width renditions, both of which are scaled to 200px on the appropriate axis in all formats. In mobile applications, it is common to implement this grid at either a fixed height or fixed width. Many chat and messaging apps use a grid for searching and selecting media. Send: downsized_large, downsized, or downsized_medium MP4 or WEBP. GIF Grid Picker in a Mobile Application Grid: fixed_height or fixed width MP4 or WEBP. This is because we may choose to replace some pre-built renditions with dynamically generated renditions, and we will therefore not have an exact size value in advance. You should not rely on size value in the API response being exactly correct every time. If the “Accept” header begins with any other pattern, then the binary media file for the GIF file type is returned. For example, by making a request to one of our gif URLs with an “Accept” header that begins with “text/html” we assume the request is being made from a browser and render HTML to display the image with extra data. When making requests that return GIF objects, the “Accept” HTTP header can be used to toggle the content type you will receive in return. Likewise, different browsers and operating systems support different media types, and you should tailor your media selections to the environment in which you plan to share. The only formats that support transparency are GIF and WEBP, so if you are building an experience that includes stickers, make sure to avoid MP4 where you would like to see transparent content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |