jwagner / smartcrop.js

Content aware image cropping

Home Page:http://29a.ch/2014/04/03/smartcrop-content-aware-image-cropping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React

cyrus-za opened this issue · comments

Can somebody help me implement this in react?

Smartcrop is library for finding crops of images. React is a library for building user interfaces.

I'm really not sure what you mean by "implementing" a library for finding crops for images "in" a library for building user interfaces.

What exactly are you trying to accomplish?

You should be able to access an image element in your virtual dom via a ref, without any nasty hacks.

Just set visibility to hidden (or display: none) until you have all the information you need to display it properly?