Giter Club home page Giter Club logo

instagram-photos-resizer's Introduction

Instagram Photos Resizer

A Command Line Application to resize and split photos for Instagram and upload those to Google Photos.

TL;DR

  1. Create a new Google Cloud project https://console.cloud.google.com/projectcreate
  2. Enable the Photos Library API
  3. Open https://console.cloud.google.com/apis/credentials
  4. Create an OAuth client ID where the application type is other
  5. Set the following environment variables:
export GOOGLE_CLIENT_ID=
export GOOGLE_CLIENT_SECRET=
./instagram-photos-resizer photo1.jpg photo2.jpg

The photos will be uploaded to your Google Photos Library.

What it does

Instagram limits the width of the uploaded photos to 1080px. It is recommended to resize the image prior to uploading to avoid heavy compression.

This tool resizes the specified photo(s), splitting them into multiple photos when it detects the width is a multiple of the height.

For example, assume the photo specified is 4000px by 2500px, the tool will split the original photo into 2, both at 1080px by 1350px.

How to build

  • make to build the binary
  • make cross to cross build the binary
  • make image to build a Docker image

instagram-photos-resizer's People

Contributors

dkoshkin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

instagram-photos-resizer's Issues

The aspect ratio is too restrictive

Currently the image must have an exact ratio of 1.0 or 1.25, this restriction should be eased to support images that are within 1% of the required aspect ratio.

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.