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

[Hitomi] A way to convert webp to gif #6049

Closed
wds204 opened this issue Aug 18, 2024 · 5 comments
Closed

[Hitomi] A way to convert webp to gif #6049

wds204 opened this issue Aug 18, 2024 · 5 comments

Comments

@wds204
Copy link

wds204 commented Aug 18, 2024

I have an issue with the hitomi site.
Gallery-dl keeps changing the gif format into webp, is there a way to keep it as gif? I like webp but when it comes to gif i don't want to convert it.

@mikf
Copy link
Owner

mikf commented Aug 18, 2024

Disable downloader.http.adjust-extensions to prevent the file extension correction, but these files will still be .webp files, albeit with .gif extension. (-o adjust-extensions=0)

Never mind, forgot that this is hitomi we're talking about so it really only serves .webp or .avif files.

You'll need to use an external program via exec post processor to convert to .gif, but there currently isn't a way to check whether a file was a .gif or a static image before hitomi converted it.


gallery-dl never changes the actual data of files it downloads. There is no conversion happening.

@wds204
Copy link
Author

wds204 commented Aug 21, 2024

I see, is there any possibility in the future gallery-dl can download gif from hitomi? Without using exec

@Hrxn
Copy link
Contributor

Hrxn commented Aug 21, 2024

Not if Hitomi actually serves only webp.
I don't see the problem, it's better than gif, usually.

@wds204
Copy link
Author

wds204 commented Aug 24, 2024

Got it, thank you for answering!

@mikf
Copy link
Owner

mikf commented Aug 25, 2024

there currently isn't a way to check whether a file was a .gif or a static image before hitomi converted it.

6af26a4

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

No branches or pull requests

3 participants