Transform an image into code
ImageCode is an open source projet that transform an image into code. ImageCode is devided into two parts:
- IC Brain Engine
- IC Code Engine
You can see that it's not perfect - but it provides a really good starting point, and it's getting better all the time!
import React, { Component } from 'react';
import { button, View } from 'react-native';
export default class ImageCode extends Component {
render() {
return (
<View style={{
Width:200,
Height:50
}}>
<button style={{
Width:20,
Height:100
}}>
button
</button>
</View>);}}
First of all, thank you for taking the time to contribute! 👍 🎉
If you have a question, join us on #imagecode on slack. you find related issues and discussions. You can, also, ask us any questions, you are welcome. This helps us to improve the project.
You can fork the project by pressing the “fork” button on Github. This will create a copy of the repository in your own GitHub account. Now you need a copy locally, so find the “SSH clone URL” in the right hand column and use that to clone locally using a terminal.
Change into the new project’s directory.
cd ImageCode/
Now, you need to set up a new remote that points to the original project so that you can grab any changes and bring them into your local copy.
$ git remote add upstream https://github.com/marocraft/ImageCode
You now have two remotes for this project on disk:
- origin which points to your GitHub fork of the project. You can read and write to this remote.
- upstream which points to the main project’s GitHub repository. You can only read from this remote.
The number one rule is to put each piece of work on its own branch. The general rule is that if you are bug fixing, then branch from master and if you are adding a new feature then branch from develop. You can name your branch whatever you like, but it helps for it to be meaningful.
$ git checkout -b feature/refactoring
Ensure that you only fix the thing you’re working on. Do not be tempted to fix some other things that you see along the way, including formatting issues, as your PR will probably be rejected. Make sure that you commit in logical blocks. Each commit message should be sane.
$ git push -u origin feature/refactoring
Once you push your branch to the origin remote, you can swap back to the browser and navigate to your fork and you’ll see that your new branch is listed at the top with a handy “Compare & pull request” button. Go ahead and press the button.
This is a work in progress, so there are a few things it doesn't do well. We have a long roadmap of features to add. For example,we aim to add a web interface where the user could authentificate, upload his json file, press the submit button and get the React natice code online. So,he could upload and download and the js file and integrate in in his React native project.