Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
> It's a wonderful image library! With the purpose to facilitate the manipulation of images, imago.js enables you to perform trimming and resizing. [Example page](http://evandroeisinger.github.io/imago.js/example)
It's a wonderful image library! With the purpose to facilitate the manipulation of images, imago.js enables you to perform trimming and resizing. Example page
Available on npm and bower:
npm install imago-js
, bower install imago.js
or directly download
// create a new imago instance
var imago = new Imago(document.getElementsByTagName('image')[0]);
// to start a edition
imago.edit();
// to save edited image
imago.save();
// to cancel current edition
imago.cancel();
// to reset image edition
imago.reset();
if the image element already has editing attributes and/or editing elements it will be rendered according to them.
<!-- image with editing attributes -->
<img src="example.jpg" data-original-width="640" data-original-height="424" data-width="640" data-height="424" data-top="0" data-left="0">
<!-- image with initial editing elements -->
<figure>
<img src="example.jpg" data-original-width="640" data-original-height="424" data-width="640" data-height="424" data-top="0" data-left="0">
</figure>
<!-- image with all editing elements -->
<figure>
<img src="example.jpg" data-original-width="640" data-original-height="424" data-width="640" data-height="424" data-top="0" data-left="0">
<div class="crop__mask"></div>
<div class="crop__wrapper">
<img src="example.jpg">
</div>
<div class="crop__handlers">
<div class="crop__move-handler"></div>
<span class="crop__top-left-handler"></span>
<span class="crop__top-right-handler"></span>
<span class="crop__bottom-left-handler"></span>
<span class="crop__bottom-right-handler"></span>
</div>
</figure>
new Imago(imageElement);
figure
├ image
├ .crop__mask
├ .crop__wrapper
├ └ .crop__shadow
└ .crop__handler
├ .crop__move-handler
├ .crop__top-left-handler
└ .crop__bottom-right-handler
Everyone can contribute! Finding bugs, creating issues, improving documentation, improving editor it self or creating components. Every contribution will be welcomed! :santa:
Fork it -> Branch it -> Test it -> Push it -> Pull Request it :gem:
FAQs
> It's a wonderful image library! With the purpose to facilitate the manipulation of images, imago.js enables you to perform trimming and resizing. [Example page](http://evandroeisinger.github.io/imago.js/example)
We found that imago-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.