question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a basic "Dithering" option to renderImage() and renderVideo()

See original GitHub issue

Rendering Images and Videos would likely look better if we were to pass the pixel data through a dithering algorithm (see https://en.wikipedia.org/wiki/Dither).

We could probably pull in a library or basic algorithm off the shelf, add it to renderMediaAsCheckboxes.js, and expose it as an option in the renderImage() and renderVideo() plugins (either as a boolean, or—if there are multiple options—as a string/enum).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
karelbilekcommented, Nov 3, 2021

The original library is not that complex either, we (well… you, sorry 😃 ) can just copy the algorithm over here to better fit the rest of the code

0reactions
bryanbrauncommented, Nov 17, 2021

@karelbilek, thanks! I did what you said, merged your PR, and did a follow-up commit where i copied over the algorithms and made a few other changes to preserve backwards-compatibility. You can see a demo here: https://www.bryanbraun.com/checkboxland/docs/demos/webcam-test/

Thanks for all the help with this. 🏆

Read more comments on GitHub >

github_iconTop Results From Across the Web

Output Options — Blender Manual
Dithering works by taking pixel values and comparing them with a threshold and neighboring pixels then does calculations to generate the appropriate color....
Read more >
image-rendering - CSS: Cascading Style Sheets | MDN
The image-rendering CSS property sets an image scaling algorithm. The property applies to an element itself, to any images set in its other ......
Read more >
mset API documentation - Marmoset
Renders images with the render scene object's current settings and cameras. To render a single image, see renderCamera(). def renderVideos(width: int = -1, ......
Read more >
Save and export video and animations in Photoshop
Choose File > Export > Render Video. · In the Render Video dialog box, enter a name for the video or image sequence....
Read more >
How to Modify Renders With Python (Blender 2.82) - YouTube
All info is in the description!This is a relatively simple way of being able to render an image and then access its pixel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found