-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Add image.Trace method that produces an SVG #6253
Comments
Looks great! Don't have a concrete use case on my mind but designers must already do!
Distraction is good, building pages from data source is great. 😛 |
Régis my use case will be some lazy loading for my s**tload photos with small small svg but better looking than the flat grey I use for now. Great feature bep. Thanks |
There are several use cases. Maybe someone wants to create a "monochrome blog", where they can possibly also get away with "wget randomcopyrightedimage.jpg" ... |
In the series "bep gets totally distracted", I'm about to add a
image.Trace
method.There are several examples of this work in progress here:
https://temp.bep.is/hugotest/section1/trace/
A quick note: Some of the more detailed traces have bigger file sizes than their source, but they compress great (the gzipped version is < 40%) and of course scales better when you go bigger ...
There will be default options and options in
config.toml
. With the full set of options the usage will be something like this:I think the default filter will be
luma
(brightness), which is also the fastest./cc @regisphilibert and gang
The text was updated successfully, but these errors were encountered: