All Projects → farskid → Instagrid Js

farskid / Instagrid Js

A Javascript library to do exactly what Instagram Layout application does

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Instagrid Js

Ananas
An easy image editor integration for your Android apps.
Stars: ✭ 186 (+1330.77%)
Mutual labels:  instagram, canvas, crop
Filterous 2
Instagram-like photo manipulation library for Node.js and Javascript on browser
Stars: ✭ 163 (+1153.85%)
Mutual labels:  image, instagram, canvas
Tui.image Editor
🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
Stars: ✭ 4,761 (+36523.08%)
Mutual labels:  image, canvas
Tocropviewcontroller
A view controller for iOS that allows users to crop portions of UIImage objects
Stars: ✭ 4,210 (+32284.62%)
Mutual labels:  image, crop
React Native Image Crop Picker
iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
Stars: ✭ 5,261 (+40369.23%)
Mutual labels:  image, crop
Tkimageview
An easy way to crop an image.
Stars: ✭ 342 (+2530.77%)
Mutual labels:  image, crop
Imaging
Imaging is a simple image processing package for Go
Stars: ✭ 4,023 (+30846.15%)
Mutual labels:  image, crop
Gaussianblur
An easy and fast library to apply gaussian blur filter on any images. 🎩
Stars: ✭ 473 (+3538.46%)
Mutual labels:  image, canvas
Fediagram
图说前端>>收集各种前端技术图谱 🚕🚖🚗🚚🚛🚜
Stars: ✭ 273 (+2000%)
Mutual labels:  image, canvas
Blurify
blurify.js is a tiny(~2kb) library to blurred pictures, support graceful downgrade from `css` mode to `canvas` mode.
Stars: ✭ 665 (+5015.38%)
Mutual labels:  image, canvas
Jspaint
🎨 Classic MS Paint, REVIVED + ✨Extras
Stars: ✭ 5,972 (+45838.46%)
Mutual labels:  image, canvas
Flutter image cropper
A Flutter plugin for Android and iOS supports cropping images
Stars: ✭ 723 (+5461.54%)
Mutual labels:  image, crop
Korkut
Quick and simple image processing at the command line. 🔨
Stars: ✭ 310 (+2284.62%)
Mutual labels:  image, crop
Croppr.js
A vanilla JavaScript image cropper that's lightweight, awesome, and has absolutely zero dependencies.
Stars: ✭ 294 (+2161.54%)
Mutual labels:  image, crop
Sharp
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
Stars: ✭ 21,131 (+162446.15%)
Mutual labels:  image, crop
Localresizeimg
🔥 前端本地客户端压缩图片,兼容IOS,Android,PC、自动按需加载文件
Stars: ✭ 3,135 (+24015.38%)
Mutual labels:  image, canvas
Fmphotopicker
A modern, simple and zero-dependency photo picker with an elegant and customizable image editor
Stars: ✭ 428 (+3192.31%)
Mutual labels:  image, crop
Vintagejs
Add a retro/vintage effect to images using the HTML5 canvas element
Stars: ✭ 826 (+6253.85%)
Mutual labels:  instagram, canvas
Photoeditor
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
Stars: ✭ 3,105 (+23784.62%)
Mutual labels:  instagram, canvas
Pyinstastories
Python script to download Instagram stories from Instagram users.
Stars: ✭ 260 (+1900%)
Mutual labels:  image, instagram

InstaGrid

The js library to do exactly what InstGrid Application does. It splits any image into 6 parts. Like the image below:

InstaGrid App

Installation

with NPM: npm install instagrid --save

with Yarn: yarn add instagrid

browser: Just get the last version from dist folder and use it. It's your choice whether to use the script.es6.js or script.es5.js.

Usage

new InstaGrid([INPUT_ELEMENT], [RESULT_CONTAINER])

Params:
  * the input[type=file] element
  * the resulting container className
<input type="file" id="file" onchange="runLayout(this)">
<div class="result">
  <!-- This is where our result would be rendered to DOM -->
</div>  

<script src="PATH_TO_INSTAGRID.JS"></script>
<script>
  function runLayout(elem) {
    var layout = new InstaGrid(elem, '.result')
    layout.render(function(self) {
      // You have the whole `layout` object here.
    })
  }
</script>

Available Methods

render: Renders 6 resulting image parts into the result_container element. It also accepts a callback that runs after all images been rendered to the DOM.

getSources: Returns an array of 6 image objects with src and position properties. The position property is an object containing top, left and order props of the image in order.

Development

Clone the repository and run yarn start or npm start inside the clone. This will create a local server on port 4000. Visit the test case by heading to localhost:4000 in your browser.


MIT licensed. Credit: Farskid (Farzad YZ)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].