Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Gif Resize Option #5

Open
subhasish1315 opened this issue Jun 7, 2019 · 5 comments
Open

Custom Gif Resize Option #5

subhasish1315 opened this issue Jun 7, 2019 · 5 comments

Comments

@subhasish1315
Copy link

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

@XJRULO
Copy link

XJRULO commented Jun 18, 2019

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!!!

@subhasish1315
Copy link
Author

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.

@XJRULO
Copy link

XJRULO commented Jun 24, 2019

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.

@svalvaro
Copy link

svalvaro commented Oct 6, 2021

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

@svalvaro
Copy link

svalvaro commented Oct 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants