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

#223 support webp binary in multiple os at once #225

Merged
merged 2 commits into from
Apr 25, 2021
Merged

#223 support webp binary in multiple os at once #225

merged 2 commits into from
Apr 25, 2021

Conversation

SightStudio
Copy link
Contributor

@SightStudio SightStudio commented Apr 22, 2021

#223

i added platform specific subdirectory for webp binary (default is linux) with default embedeed binaries for each os

since i can't find out the version of pre-exisisting linux webp binaries,
i chaged all binareis to latest version (1.20)


this is off topic, but converting animated gif to animated webp requires gif2webp
which scrimage does not implemented

so i document it either.

@SightStudio SightStudio changed the title support webp binary in multiple os at once #223 support webp binary in multiple os at once Apr 22, 2021
}

return new String[] {
"/webp_binaries/" + os + "/" + binaryName,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to include the OS in the target path, since you're not going to have more than one installed at a time? And this way it would rename backwards compatible ?

Copy link
Contributor Author

@SightStudio SightStudio Apr 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i misunderstood. it definitly does have backward compatilbity issue.

loading webp binary by environment variable looks better.

@sksamuel
Copy link
Owner

sksamuel commented Apr 25, 2021 via email

@SightStudio
Copy link
Contributor Author

SightStudio commented Apr 25, 2021

ok then i'll add /webp_binaries/binary as primary search when loading binaries for backword compatilbity.

Did I get it right?

@sksamuel
Copy link
Owner

Looks good!

@sksamuel sksamuel merged commit 79f26b2 into sksamuel:master Apr 25, 2021
@SightStudio
Copy link
Contributor Author

oh sorry for my mistake i'll fix test codes

@sksamuel
Copy link
Owner

Cool, will need to be a new PR since I merged this one :)

@SightStudio
Copy link
Contributor Author

SightStudio commented Apr 25, 2021

thanks i just created new one. #227

sksamuel pushed a commit that referenced this pull request Apr 25, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants