Giter Site home page Giter Site logo

anthonydu / instasquare Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patrickxchong/instasquare

0.0 0.0 0.0 2.85 MB

A web app to square photos in bulk to upload into Instagram albums.

Home Page: https://instasquare.patrickxchong.com/

License: Apache License 2.0

JavaScript 48.91% CSS 22.92% HTML 28.17%

instasquare's Introduction

InstaSquare

A web app to square photos in bulk to upload into Instagram albums. The app is a basic HTML, CSS and JavaScript web app built without any frameworks.

This web app was created because my friend Claire told me about their difficulties with bulk uploading photos into Instagram. Instagram would allow users to upload in bulk either ONLY portrait pictures, ONLY landscape pictures or ONLY square pictures (in this case, the portait/landscape photos will be cropped).

However, Claire wanted to upload a mix of both portait + landscape pictures and didn't want the pictures to be cropped, they wanted white borders to be added to the shorter side of the picture to square it. Other image squaring products exist in the market but they only do photos individually, causing additional work per photo. When I heard about the problem from Claire, I set out to build the bulk image squarer prototype as a web app to make it easier for them to access and use it.

Installation and Usage

This project would not have been possible without the help of the following Javascript libraries:

  • Jimp - To square the images
  • JSZip - To store squared images for download
  • Filesaver - To download the zip file created by JSZip

Installation and Usage

To run the web app locally

  • Install the following dependencies
    • Python 3.5/3.6
  • Fork a copy of this git repo
  • Run python -m http.server 8000 in the folder containing index.html
  • Go to http://localhost:8000/index.html on any modern web browser

Alternatively, navigate to https://instasquare.patrickxchong.com for an hosted version of the app.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

  • 0.3.0
    • Stopped using the JIMP library in favour of manipulating images using the HTML5 canvas element.
  • 0.2.2
    • Cleaned up codebase
  • 0.2.1
    • Additional feature #4: Display whether the user has connected their Google Drive account. If they have, display the GDrive account that is connected
  • 0.2.0
  • 0.1.3
    • Additional feature #3: Create a custom Google Drive folder to upload squared pictures
  • 0.1.2
    • Additional feature #2: Upload squared pictures to Google Drive root folder
  • 0.1.1
    • Additional feature #1: X button to remove unwanted images
  • 0.1.0
    • Succesfully built a simple prototype that takes in user uploaded files and adds borders to the pictures to square them

Credits

  • My friend Claire who came to me to ask about a solution to her photography problems.
  • Ideas for additional features and overall design credit goes to the same friend Claire who has shown me tremendous support
  • A BIG THANK YOU goes to Andy Suwandy who wrote this tutorial on how to connect to the Google Drive API via in browser Javascript. It took me the longest time to find a method that works.
  • HTML5Up for the Prologue Theme which I adapted for the user interface.

Buy me a coffee (or bubble tea)

ko-fi

License

This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details

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.