shinycustomloader icon indicating copy to clipboard operation
shinycustomloader copied to clipboard

Custom Gif Resize Option

Open subhasish1315 opened this issue 5 years ago • 5 comments

Hi, I really like to the option to add custom GIF image, So anybody can use their Branded and Trademark GIF for Loading. But there should be option for resizing the GIF as I have checked it depends on the Size of Output. For Small Output option it fits perfectly but it when the output is Large in width and height it expands by default.

Example: Error

subhasish1315 avatar Jun 07 '19 08:06 subhasish1315

Hi Sub, I just can't put my loader to work. I've created the "www" folder "inside" my Shiny app folder but nothing. My gif works just fine outside the app, as a gif image, but I get nothing inside the app. How did you get it to work? Did you use any path in the "loader" parameter? By the way did you found a way to resize or fix the size of your custom loader? Thnks in advance!!!

XJRULO avatar Jun 18 '19 15:06 XJRULO

Hi @XJRULO , I kept all the Gif images in the "www" folder and used this following code: withLoader(highchartoutput("top_right_plot"), type="image", loader="loader.gif")

It is working fine. I am working to fix it from CSS side.

subhasish1315 avatar Jun 24 '19 05:06 subhasish1315

Hi Sub, it seems that it has to do with the way one develop the app, specifically if you name the app file app.R or not, if you split the code in one ui, server and app file. I wouldn't ever imagine that this was the main issue, as many other in forums have said. Anyway Thnks for the answer anyway. We'll see around.

XJRULO avatar Jun 24 '19 14:06 XJRULO

Hi @emitanaka, any thoughts on this thread? It would be a nice option to be able to resize the gifs

svalvaro avatar Oct 06 '21 13:10 svalvaro

In case it helps to anyone, the package shinycssloaders allows the addition of custom loaders with the image parameter, and the resizing works much better with the size parameter.

svalvaro avatar Oct 08 '21 08:10 svalvaro