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 not saving properly #85

Open
superjaja05 opened this issue Jul 4, 2024 · 7 comments
Open

Gif not saving properly #85

superjaja05 opened this issue Jul 4, 2024 · 7 comments

Comments

@superjaja05
Copy link

Hello, i'm having an issue with gif saving
i load a gif using local base = vips.Image.new_from_file("base.gif", {n=-1}) , then i save it again using base:write_to_file("base2.gif") (just for testing)
And it seems that the base2 gif (the 2nd save) tries to "stack" the frames to save in file size, since nothing moves, but instead of actually stacking.. It just glitches out and become a transparent mess, any idea how i could fix that?

base
base2

@jcupitt
Copy link
Member

jcupitt commented Jul 4, 2024

Hello @superjaja05, is this an old version of libvips? I tried with current stable (8.15.2):

$ vips copy base.gif[n=-1] base2.gif
$ vips --version
vips-8.15.2

To make:

base2

@superjaja05
Copy link
Author

I'm not sure how to check my version, but yes it might be an old version,
though i don't know how to update it (i use a fork of lua-vips, https://github.com/Bilal2453/lit-vips , but it hasn't been updated in a while and i don't know how to manually update it, if i even can)

@jcupitt
Copy link
Member

jcupitt commented Jul 4, 2024

What platform is this? If it's linux, just updating your OS should fix it.

@jcupitt
Copy link
Member

jcupitt commented Jul 4, 2024

Oh, if you're on windows, the regular lua-vips works pretty well now, there's no need to use a fork. It also supports plain lua as well as luajit.

@superjaja05
Copy link
Author

I'm not sure if i can use lua-vips with luvit though?

@RiskoZoSlovenska
Copy link
Contributor

@superjaja05 Luvit can handle Luarocks dependencies just fine as long as you have Luarocks set up - they just won't show up as dependencies if you ever package your project for lit. I've been using lua-vips with Luvit without issue for a while now.

If you really need lit support, it shouldn't be too hard to open a PR (or at least an issue) on the lit-vips repo.

@superjaja05
Copy link
Author

Well the issue is i don't know how to use Luarocks, i always get errors and i can't figure out how to fix them

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