Coder Social home page Coder Social logo

iq-scm / 01-unraveling-the-jpeg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from parametricpress/01-unraveling-the-jpeg

0.0 0.0 0.0 14.49 MB

Source code for Unraveling the JPEG

Home Page: https://parametric.press/issue-01/unraveling-the-jpeg/

License: MIT License

Shell 0.20% JavaScript 79.50% CSS 18.43% HTML 1.87%

01-unraveling-the-jpeg's Introduction

Unraveling the JPEG

This is the source code for Unraveling the JPEG, an interactive exploration of how to decode a JPEG image that was published in the first issue of the Parametric Press.

Replacing the images with your own

You can append the query parameter ?imageSrc=https://urlToImage.jpg to the article, and it will refresh and load a version of the article using that image instead of the cat picture. It should work as long as the server allows cross origin requests.

The easiest way to put your own image in the article is to upload it to Imgur and add the link to it as a query parameter. You can then share this link with anyone to essentially have your own custom version of the article!

For example, I can go to this photo of a fox on Unplash, right click and "copy image location", then put that URL in a query parameter. This link will then load the article with the fox image in all the interactive diagrams.

Local Setup

To run the article locally, make sure you have NodeJS and NPM installed. Then clone or download this repository.

Installing dependencies

  1. Install idyll globally (only need to do this once): npm install -g idyll
  2. Install local dependencies: npm install

Running local dev server

  1. Run idyll --template _local.html in the root of this project.

01-unraveling-the-jpeg's People

Contributors

fredhohman avatar mathisonian avatar omarshehata avatar

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.