GithubHelp home page GithubHelp logo

collagemaker-android's Introduction

Collage Maker for Android

This code allows to import 100 photos from any Instagram user feed into your app, make a collage out of several (1-4) randomly selected pieces, and save the result as an image; the number of collage images is scalable, as the project uses the Fabric. The app user can manually rotate images of the collage.

Features

  • Searches an Instagram user by a nickname;
  • Builds photo list from 100 first user’s photos sorted by Likes;
  • Renders collage preview in runtime.

Support

  • Android 2.3+
  • Devices: All

The Image Loading Algorithm

  • Ask server to get 100 photos.
  • Server returns some results.
  • If server returns less than 100 photos and there is another page to load, load it.
  • If server returns 100 posts, stop loading.

Loading and Storing Images

We used the user feed variable cache in the ImageSelectionFromUserFeedFragment class, but the data can be also stored in an SQLite database. We chose to use cache because in our case little memory was required, so there was no need to create and manage a DB.

If you'd like to use a DB, there are two scenarios for loading images:

  1. To use two loaders – one for retrieving data from a DB and the other for loading photos from a network and storing in the DB.
  2. To use a loader and a service – the loader for retrieving data from a DB and the service for loading data from a network and storing in the DB.

Licence

Azoft-Collage/libs/licences.txt

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.