Download the PHP package salted-herring/salted-cropper without Composer
On this page you can find all versions of the php package salted-herring/salted-cropper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download salted-herring/salted-cropper
More information about salted-herring/salted-cropper
Files in salted-herring/salted-cropper
Package salted-cropper
Short Description Salted Herring's Image Cropper Field
License MIT
Homepage https://github.com/salted-herring/salted-library
Informations about the package salted-cropper
Salted Cropper
Salted Herring's Cropper Field for SilverStripe. This is to avoid the deadly issue that FileSync task will disconnect all cropped images, when using silverstripe-cropperfield. Please remove silverstripe-cropperfield module if you have already installed it, other it will result in funny conflict.
2.0.0
Because in 1.x versions, cropping happens directly on the images, which makes them not available for "reuse", 2.0.0 is now to resolve this issue by redesigning the way that the cropper tool works.
Pleaes note: SaltedUploader will be retired soon. Please replace all SaltedUploader occurrences with CroppableImageField!!
Usage
-
Download it to SilverStripe's root directory
or
-
Sake it
-
flush frontend and backend's cache
-
Sample code:
-
Add image > upload/select > save > edit > do your cropping
- Output
1.x
This doc is for 1.0 and above. If you are using 1.0- versions, do not use this doc.
Usage (internal usage for now)
-
Download it to SilverStripe's root directory
or
-
Sake it
-
flush frontend and backend's cache
-
Sample code:
-
Upload and image, and then click the edit button - in the drop down area, you will see the cropper area. Do the cropping and then save the image (NOTE: if you don't save the image editing, before you save the page/data object, it will not take effect)
- Output