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

Support "traced placeholder" generation in gatsby-plugin-sharp #2435

Closed
KyleAMathews opened this issue Oct 12, 2017 · 4 comments
Closed

Support "traced placeholder" generation in gatsby-plugin-sharp #2435

KyleAMathews opened this issue Oct 12, 2017 · 4 comments

Comments

@KyleAMathews
Copy link
Contributor

Ran across on Twitter this really cool demo of a generating outlines of images and using them as placeholders while loading the image:

https://twitter.com/mikaelainalem/status/918213244954861569

s5o6zbl1icr_eftt

It'd be fun if we could build this into our image processing pipeline

Following this thread which suggested using a unix tool named potrace. There's also a little-used JS port of potrace.

If anyone wants to experiment with this, it'd be a really cool addition to Gatsby!

@benjaminhoffman
Copy link
Contributor

I think this has been merged yeah? Can close issue?

@KyleAMathews
Copy link
Contributor Author

Indeed!

@hackhat
Copy link

hackhat commented Oct 26, 2018

This should be added to gatsby-remark-images to be consistent, otherwise some images will be blurred, others will have svg.

@abheist
Copy link

abheist commented Jan 22, 2022

It's breaking for large images!

12:57:59 AM:   
12:57:59 AM:   - index.js:15 Jimp.call
12:57:59 AM:     [repo]/[@jimp]/utils/src/index.js:15:13
12:57:59 AM:   
12:57:59 AM:   - index.js:1223 Jimp.apply [as scanQuiet]
12:57:59 AM:     [repo]/[@jimp]/core/src/index.js:1223:23
12:57:59 AM:   
12:57:59 AM:   - index.js:1144 Jimp.<computed> [as scan]
12:57:59 AM:     [repo]/[@jimp]/core/src/index.js:1144:23
12:57:59 AM:   
12:57:59 AM:   - Potrace.js:1005 Potrace._processLoadedImage
12:57:59 AM:     [repo]/[potrace]/lib/Potrace.js:1005:11
12:57:59 AM:   
12:57:59 AM:   - Potrace.js:1048 Jimp.<anonymous>
12:57:59 AM:     [repo]/[potrace]/lib/Potrace.js:1048:14
12:57:59 AM:   
12:57:59 AM:   - index.js:223 Timeout._onTimeout
12:57:59 AM:     [repo]/[@jimp]/core/src/index.js:223:9
12:57:59 AM:   
12:57:59 AM:   - timers.js:557 listOnTimeout
12:57:59 AM:     internal/timers.js:557:17
12:57:59 AM:   
12:57:59 AM:   - timers.js:500 processTimers
12:57:59 AM:     internal/timers.js:500:7

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

4 participants