Using GIFs in OEOS via Image Action - fapnip/openeos GitHub Wiki
The Eos editor on milovana.com only supports uploading JPEG images and MP3 files.
To use GIF, WEBP, or any other non-jpeg image format in OEOS, you'll need to upload them to https://imgbb.com and then link them by hand in an EOS Image Action's locator string, or link to them directly in script using pages.setImage
To create a link to a non JPEG in Eos, easy method:
-
Install the Eos Editor Extension.
-
Upload a simple placeholder.jpg to Eos' file area. Can be an image of anything and named anything, but must be in Files, not a gallery.
-
Add an Image action to your tease and select the placeholder.jpg.
-
In the "OpenEOS gif URL:" text area, enter your imgbb URL.
To create a link to a non JPEG in Eos, long-hand:
-
Upload a simple placeholder.jpg to Eos' file area. Can be an image of anything and named anything.
-
Now, add an Image action to your tease and select that placeholder.jpg file. (Must be from files, not a gallery.)
-
URL encode the direct link to your imgbb.com image.
For example:
https://i.ibb.co/t2SWK3q/img1.gif
Becomes:
https%3A%2F%2Fi.ibb.co%2Ft2SWK3q%2Fimg1.gif
Note: The URL must be a direct link to the image, not a page that hosts the image.
-
Append that link to the file:placeholder.jpg locator in your Image action, along with some special sauce.
The locator should now look like:
file:placeholder.jpg+(|oeos:https%3A%2F%2Fi.ibb.co%2Ft2SWK3q%2Fimg1.gif)
Note that the URL encoded link is wrapped by
+(|oeos:
and)
If you'd like to create a list of image links that OEOS will randomly select from, you need to put the links in a JSON array, then URL encode that.
For example:
["https://i.ibb.co/t2SWK3q/img1.gif","https://i.ibb.co/5hRf3fT/tenor.gif"]
Would become:
%5B%22https%3A%2F%2Fi.ibb.co%2Ft2SWK3q%2Fimg1.gif%22%2C%22https%3A%2F%2Fi.ibb.co%2F5hRf3fT%2Ftenor.gif%22%5D
And then finally:
file:placeholder.jpg+(|oeos:%5B%22https%3A%2F%2Fi.ibb.co%2Ft2SWK3q%2Fimg1.gif%22%2C%22https%3A%2F%2Fi.ibb.co%2F5hRf3fT%2Ftenor.gif%22%5D)
Note:
These Image Actions should be backwards compatible with EOS. If the tease is played in Eos, the placeholder.jpg will display. If played in OEOS, the gif will display.