npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dynamike

v1.1.2

Published

This is a command line tool for creating high-dymanic-range images (HDRIs) for use in video editing or CGI software like [Blender](https://www.blender.org/). The output file is a .tiff with a bit-depth of 96, encoded in linear floating point RGB with loss

Downloads

3

Readme

Dynamike

This is a command line tool for creating high-dymanic-range images (HDRIs) for use in video editing or CGI software like Blender. The output file is a .tiff with a bit-depth of 96, encoded in linear floating point RGB with lossless compression applied (deflate). Supported input file formats include PNG, JPEG, TIFF, WebP and AVIF.

For use in Blender, set the color space to "Linear" on the Image Texture node.

Installation

Use npm to install the "dynamike" command line tool.

npm install -g dynamike

Usage

To use this tool you will need to have a sequence of static photos with different exposure levels.

To get the photographs for the exposure levels that you need, you will need a tripod and a digital camera with manual shutter speed and ISO controls. Your mobile phone might have a "Pro" mode in its camera app where these controls are made available.

  1. Lock the ISO (sensor sensitivity) to a value like 50 for sunlit outdoor scenes, 100 for well-lit indoor scenes and > 200 for darker scenes, and don't change it. Images will tend to be noisier the higher this value is set so the lower you can set it, the better.
  2. Adjust the shutter speed / exposure time (lower = darker) until the brightest part of your image is not clipping (i.e. has detail) and take a photo.
  3. Keep on doubling your exposure time, each time taking a photo until the darkest part of the image has clear details.
  4. Transfer all your photos to their own folder on your computer and name them by their respective exposure levels.

    Note that labeling the files are not necessary if your images have valid Exif data for the exposure times. If an image has both Exif data and a label for its exposure time, only the label is used.

Each image needs to be labeled by its exposure time in the format of e_<seconds> or e<seconds> (case-insensitive). These labels can only have integer (whole) numbers, as well as fractions in the form of e1_30 for 1/30 second's exposure time. The exposure time label cannot directly "touch" any surrounding numbers, letters (A-Z) or '_' (underscores). For example, a photo taken with an exposure of 2 seconds might have a name like 20210914-E_2.jpg, where E_2 is the exposure time label.

Examples of valid labels:

  • ...-E1-... (1 s)
  • ... (E1_5) (0.2 s or 1/5 s)
  • E_5-... (5 s)
  • ...-e_1_20-... (0.05 s or 1/20 s)
  • ... e_20_2 ... (10 s or 20/2 s) etc.

Lastly, in the command line, run this command in the folder containing all your images. Insert another value where the [...] is. The output will be named out.tiff and be put in the same directory that the command is run in.

dynamike [<exposure> | 1/<exposure>]

The <exposure> argument is the divisor/denominator of the fraction of a second equivalent exposure time that the output image should use as its base exposure. A value of 8 or 1/8 means the output will emulate a 1/8 second's exposure time.

If you set up everything correctly, congratulations!

Showcase

A table comparing the results of different Blender view transforms with a decently exposed source image and the final output/result.

Table of comparisons

Notice how the combination of an HDRI with the Filmic view transform produces much better details in areas where for example the thin branches meet the sky. The blue of the sky is also fully captured.


Animating the exposure makes it very clear the benefits of using HDRIs for realistic lighting.

Sliding exposure

Here are some still frames:

Still frames