0 votes
by (330 points)

How do I resize image displays, and especially animated GIF image displays, in Sugarcube? I can actually resize static images easily enough in any of a dozen different programs, but GIFs are a real pain ... so if I can just change the size at which they display so they're not too bloody small to be seen or too bloody big to fit on the screen, that'd be a huge help.



1 Answer

+2 votes
by (41.7k points)
selected by
Best answer

You can just use the standard HTML/CSS methods for setting the size of the image.

<img src="image.gif" width="300px"> = 300 pixels wide
<img src="image.gif" width="50%"> = 50% of the width of the image's container
<img src="image.gif" width="50vw"> = 50% of the viewport width

If that isn't what you were looking for, please explain in more detail.

by (330 points)

That was actually exactly what I was looking for. Thanks!  laugh


Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.