Giter VIP home page Giter VIP logo

Comments (9)

jviotti avatar jviotti commented on August 11, 2024

In Etcher, we want to allow the user to pass a URL to an image hosted on the internet, and stream directly to the device. The scope of this project is to implement a new function in etcher-image-stream called “.getFromURL()” that sends an HTTP request to the provided endpoint and makes use of the provided response headers to determine the image size, format, compression, etc to return all the needed information.

If the image is compressed, the function should return the appropriate transform stream that can deal with it (see examples on the same modules).

This functionality should be tested by an end to end suite that starts a local HTTP server to serve example images, and uses those endpoints to write the image to a temporary location, and assert that the image was written and decompressed correctly (if needed).

from etcher.

alexandrosm avatar alexandrosm commented on August 11, 2024

For v1 we are ok with two stage download and write, right?

from etcher.

jviotti avatar jviotti commented on August 11, 2024

from etcher.

konmouz avatar konmouz commented on August 11, 2024

Following #975 concept, would it be possible to have a widget on publisher's webpage that will preload Etcher with a specific image? For instance, on Raspberry Pi's Raspbian page, there could be 3 CTA's: Download Torrent , Download Zip and Flash with Etcher or Load to Etcher.

screen shot 2016-12-29 at 11 16 55

With regards to the UI, I see two easy ways to add this feature to v01 without messing too much with the current UI. 1) 'Select Image' remains the main CTA and below that there is an option to add a custom URL 2) A dropdown that contains most popular images replaces the main CTA and below there is an option to select a local image and probably a custom url. In both approaches, user can still drag and drop a local image. But again, we should figure out how many users will use local images vs custom urls vs popular images (dropdown).

screen shot 2016-12-29 at 11 43 13
screen shot 2016-12-29 at 11 43 04

from etcher.

alexandrosm avatar alexandrosm commented on August 11, 2024

from etcher.

konmouz avatar konmouz commented on August 11, 2024

Exactly, pretty much the same way torrents and magnets work.

from etcher.

jviotti avatar jviotti commented on August 11, 2024

We should re-use https://github.com/zenflow/node-fast-download for this task:

node module and command-line program for accelerated (multiple connections) http download Stream

from etcher.

lurch avatar lurch commented on August 11, 2024

Given the current plans for v2, should this issue be closed?

from etcher.

jviotti avatar jviotti commented on August 11, 2024

Yeah, lets do it. Given the complexity of streaming any kind of images, we decided to only support streaming on our internal image catalog.

from etcher.

Related Issues (20)

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.