Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Support for GIFs
Started by JoePringles Jun 03 2019 12:40 PM

- - - - -
4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

JoePringles

[GLOBAL: userInfoPane.html]
JoePringles
  • Contributor

  • 368 posts
  • Corona SDK

So corona doesn't support gifs.

Its a pretty popular and universal file type.

Also I hate using sprites for simple animations lol

Can we get support for this?



[TOPIC: post.html]
#2

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 475 posts
  • Corona SDK

GIFs only support a 255 colour palette, offer no translucency, (pixels are fully opaque or fully transparent only), and tend to result in huge file types. There only original upside was animation support, which we can replicate with spritesheets.

Perhaps adding gif support to Corona is an easy task, in which case whatever, it might as well be in there, but I can't see this ever being worth prioritising over others. It just doesn't seem like something we should be using in 2019?

[TOPIC: post.html]
#3

JoePringles

[GLOBAL: userInfoPane.html]
JoePringles
  • Contributor

  • 368 posts
  • Corona SDK

Agreed it does has its limitations but its a basic thing which corona should have implemented. I don't know how hard it would be to implement but should have been added by now.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,205 posts
  • Enterprise

You have the ability to use GIF's through a plugin the Marketplace. https://marketplace.coronalabs.com/corona-plugins/impack

 

You can also find the memory bitmap plugin, write your own GIF loader, turn the various GIF images in to individual frames on a single texture, then you should be able to build a sprite sheet from it to plan the animation.

 

Rob



[TOPIC: post.html]
#5

JoePringles

[GLOBAL: userInfoPane.html]
JoePringles
  • Contributor

  • 368 posts
  • Corona SDK

ty robby




[topic_controls]
[/topic_controls]