Code Monkey home page Code Monkey logo

bad-light-preview's Introduction

Bad lighting preview

A simple online tool to preview prints in bad lightning conditions. This is achieved by adding a couple effects: color curve, blur, noise, and wave distort.

Access the site by clicking the image or here

Issues

If there are any issues feel free to post a issue here on GitHub.
Instructions here: docs.github.com/creating-an-issue

Contribution

Feel free to improve anything that's missing. Happy to include features that improve the tool.

Mainly improving information or creating a more realistic preview.

bad-light-preview's People

Contributors

jesper-hustad avatar kyle-christian avatar snacksy avatar

Watchers

 avatar  avatar

bad-light-preview's Issues

Improve example image in README

The example image is low resolution and doesn't show the tools features such as noise, blur, and distortion.
A solution would be a zoomed in version that clearly shows text no longer being visible in bad light conditions.

Add file support description

There has been feedback that the project lacks description of supported file types.
Currently this is images such as jpg, jpeg, png, and gif

This can be added in the html under "Drop or paste here" in small, but readable text.

Effect only works as intended on certain image sizes

Currently the wave distort effect has a hard coded distort amount per pixel.
This works well for simple screenshots of designs.

A common use case is saving pages as high resolution images.
The hardcoded effect will therefore be hardly noticeable in those circumstances.

Solution: make the effect scale depending on resolution

The filter where this code is located is called effectDistortWave in filters.js

Add enviroments

After feedback there is a demand for testing designs in different environments.
This can be achieved by creating immersive sections with backgrounds, specific lighting, and specific effects on the designs.
Here are some example environments that could be implemented:

Environment Background Light cast Color temp
inside night wooden table lamp yellow
inside day wooden table window blue
library poster wall fluorescent neutral
street day building sun blue
street night building street light yellow

Improve project name

The current name bad-light-preview is descriptive, but no longer encompasses the future goal of this project.

The tool is going to include multiple environments and lighting conditions.

In the graphic world this is called mockups, tough I would highly prefer that it did not include mockup in the name (as many non designers may not know what this means).

So here are some ideas for what the name should convey:

  • That this is a online tool.
  • That it simulates multiple lighting conditions
  • That it's for previewing
  • That it's for physical print

Doesn't need to include everything ofc. just some general ideas.

Here are some examples: paper-in-situations, preview-environments, view-design-circumstances

Feel free to come up with better suggestions, best one can send PR with the changes in README.md

View as colorblind option

Designers want to create designs that can be viewed by everybody.
About 8% of males are colorblind (red green being the most prominent).

A option could be added that let's the designer view their designs with a certain color blindness.

Implementation:

  • Add a filter that converts RGB pixels to reg/green colorblind version of RGB pixels (sure this has been done before)
  • Add a button that toggles the filter on and off

Add PDF support

There has been feedback that people are trying to use PDF files with the tool.

Since PDF files are quite common in the graphic design world it would probably also be convenient to add support for this as well.

This would be implemented by getting the first page of a PDF file, converting it into image data that can be handled by the JavaScript, run normally from there on out.

Requirements are:

  • small code size to keep the tool quick for slow internet users
  • relatively quick processing time, should preferably not take more than 1 second.
  • no user interface options, just take the first pdf page

Refactor code

Code is all in one HTML file. Could be split into a style and script file.
There are also some unused CSS classes and JS variables that should be removed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.