Giter Site home page Giter Site logo

heic-to-jpg-playground's Introduction

about

This is a playground for converting iphone burst images (.heic) to jpeg before upload.

using the interface

Go to localhost:3000 in your browser (only tested in recent chrome) and click the "Choose File" button and select an heic file. Take a look at the console and you'll see it logging stuff and working. When it's done it will output a bunch of canvas elements.

You'll need to Zoom out to about 25% and resize your browser window to get the image displaying correctly.

what's next?

It can read/display the image data, but still needs width/height, so that it can create a single canvas and crop the extra pixels.

There's probably a more clever way to use some of the functionality in public/js/heif-extension.js so that you can avoid messing around with image display math. Otherwise, if you can find the width/height info for the whole image, then you can make a single canvas, paint it so that the image isn't displayed upsidedown and backwards, and then upload it using canvas.toDataURL or your method of choice.

to setup

make install

to run

make run

heic-to-jpg-playground's People

Contributors

mgamba avatar

Stargazers

 avatar  avatar

Watchers

 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.