Closed danielbachhuber closed 8 years ago
@goldenapples #reviewmerge
@montchr This fixes your issue for me. I suppose if we can't know the actual width / height of the Giphy, then we'll need to allow manual override.
This looks good. I think it makes sense to add support for height/width in the reversal process too, though?
The giphy embed code includes a height and width: <iframe src="//giphy.com/embed/YqGeOQ0u6hB5u" width="480" height="501" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="http://giphy.com/gifs/YqGeOQ0u6hB5u">via GIPHY</a></p>
Extracting those and setting them on the shortcode would ensure that we keep the right proportions on display.
I think it makes sense to add support for height/width in the reversal process too, though?
Good call. Updated.
Looks good! I noted one unrelated bug as #151. But I'll merge this.
Fixes #149