nerds-and-company/cropassets

This package is abandoned and no longer maintained. No replacement package was suggested.

Crop Assets Plugin for Craft CMS

Installs: 178

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 10

Forks: 2

Type:craft-plugin

2.1.0 2017-01-04 16:02 UTC

This package is not auto-updated.

Last update: 2022-12-24 09:47:33 UTC


README

Plugin/FieldType that allows you to crop an asset and show it in the front-end.

Important
The plugin's folder should be named "cropassets"

Install

This plugin depends on cropper.js Composer will install this package. When not user composer, either run npm install in the plugin root directory or extract cropperjs into the PLUGIN_ROOT/node_modules/cropperjs folder.

Usage

This plugin provides a Crop Assets FieldType that works like the Asset FieldType.
You can upload/select an asset and a crop modal will appear. After cropping you can show the cropped asset in the front-end.

Changelog

##2.1.0###

  • Enable live preview for cropped assets

##2.0.1###

  • Use a polyfill library for canvas to blob in ie11 and below
  • Keep the cropped asset when validation fails and re-rendering the input

###2.0.0###

  • Rebuild to make use of client-side cropping with cropperjs
  • This is mainly done to prevent memory issues on the server.
  • The cropped asset is stored in a configured asset source
  • Renamed vendor to nerds-and-company

###1.0.2###

  • Verify that the image is present to prevent errors

###1.0.1###

  • Fixed case sensitive path to js resource

###1.0.0###

  • Initial release