Comments (6)
I have prepared an extension for aspectRatio. Can someone verify if I use proper variables from Media
class?
`val Media.aspectRatio: Float
get() {
val width = this.images.downsized?.width
val height = this.images.downsized?.height
if (width == null || height == null) return 1f
return width.div(height).toFloat()
}`
from giphy-android-sdk.
Thanks, Please let me know how to remove chess background from transparent gif in GPHMediaView
from giphy-android-sdk.
Hi, I am not a Giphy SDK developer. I am trying to use it, but it has so many differences from iOS :(
from giphy-android-sdk.
@mihirmodiofficial thank you for flagging this issue and I'm sorry for the late response. I'll add aspectRatio property in the next SDK release.
P.S. In iOS version we use "original" instead of "downsized".
from giphy-android-sdk.
@mihirmodiofficial This solved with 1.3.1 - going to close but let me know if that does not work for you.
from giphy-android-sdk.
Hi @ALexanderLonsky , sorry to bring back this issue but I cannot access aspectRatio
in the Media
object that I get in GifSelectionListener.onGifSelected()
.
I tried initially with 2.0.1, and then downgraded to 1.3.1, but still nothing.
Any ideas?
from giphy-android-sdk.
Related Issues (20)
- [Question] Is there a way to customize retry button + localization message HOT 2
- [Question] How to retrieve the right media url by id HOT 2
- Set query to GiphyDialogFragment HOT 1
- Text color appears black in Dark Theme. HOT 3
- Change Search Icon Color? HOT 6
- Get Giphy Attributes( size,height, width etc)? HOT 1
- Update fresco dependency to v3.0.0 HOT 7
- SSLPeerUnverifiedException HOT 10
- error resource style/ShapeAppearanceOverlay.DifferentCornerSize not found. HOT 7
- [UX] Preview dialog is not closed with the back button in GiphyGridView HOT 2
- Update fresco dependency to latest version (3.1.1) HOT 5
- Are templates capable of nested scrolling within a bottom sheet? HOT 3
- Am Facing this HOT 1
- Gifloaded callback returns -1 as loop-duration
- Gif is not loaded even after `onImageSet` callback HOT 11
- App name (Label) is displayed in the background for a split second while the `GiphyDialogFragment` is initialized HOT 3
- Crash on some devices. HOT 1
- Gray Top App Bar HOT 3
- Apk size is increased from 32 MB to 39MB after integrating Giphy-sdk in android. HOT 1
- How can we add my views in the Giphy Dialog? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from giphy-android-sdk.