saschanaz / libflif.js

Another trial to get FLIF to the web platform
ISC License
41 stars 2 forks source link

Make a user script #3

Open saschanaz opened 8 years ago

saschanaz commented 8 years ago
  1. Support imgs and videos (poster attribute) first for simplicity
  2. Partial load based on element actual size (API from FLIF library is required)
  3. Load more when element gets larger
saschanaz commented 8 years ago

Possible API use for 2 and 3:

  1. Get resolution data from decoder with minimal bytes, which should tell the minimum required byte length to load the variations
  2. Read the most proper variation based on image element size and image resolution
  3. Use resize event, then read more when required (intermediate decode data should be preserved for later additional decode?)