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

gif size #1417

Closed
yakir12 opened this issue Feb 28, 2018 · 2 comments
Closed

gif size #1417

yakir12 opened this issue Feb 28, 2018 · 2 comments
Labels

Comments

@yakir12
Copy link
Contributor

yakir12 commented Feb 28, 2018

I'm trying to minimize the size of a gif I'm making by adjusting the size property. While using the gr backend I get (one per frame) GKS: Rectangle definition is invalid in routine SET_VIEWPORT when trying to have a small slide size. I quickly found out that the spatial size of the resulting gif is 6 times larger than whatever I supply size with.
Consider this MWE:

using Plots
anim = Animation()
for i in 1:100
    h = [plot(rand(10)) for i in 1:4]
    plot(h..., size = (100,100))
    frame(anim)
end
gif(anim, "a.gif", fps = 30)

This spits tons of GKS messages and results in a gif that is 600×600 pixels large. Weird.
I'll just add that if we had just one plot instead of 4 subplots the GKS warnings disappear but the file is still 600×600 pixels large...

@yakir12
Copy link
Contributor Author

yakir12 commented Mar 1, 2018

So in reference to all the dpi issues, I found out that the magical dpi that makes gif sizes work in gr is (drum-roll) 50/3.

@t-bltg t-bltg added the GR label Nov 27, 2022
@t-bltg
Copy link
Member

t-bltg commented Nov 27, 2022

Cannot reproduce.

@t-bltg t-bltg closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants