Coder Social home page Coder Social logo

salted-cropper's People

Contributors

leochenftw avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

salted-cropper's Issues

Image Migration

If you migrate from using the default SilverStripe Image class to using SaltedCroppableImage, you end up having to create a task to migrate these images. It'd be great if there was a task included in the module to handle this.

Update Documentation

Currently the readme says you can do this in a SS template:

$Photo
$Photo.Cropped
$Photo.Cropped.SetWidth(100)

However, if a user has not set a crop yet (i.e. have just uploaded the image & not cropped) then .Cropped returns nothing. Instead we should advise users to call .getCropped

Removing an image should clear the crop

If a user uploads an image, sets the crop & then removes the image, the next uploaded image should have the crop reset. We shouldn't automatically inherit the crop from the previous image.

Cropper should allow for no ratios

Currently when using the cropper field you have to specify a ratio like so:

SaltedUploader::create('Image', 'Image')->setCropperRatio(100/50)

There are times when the ratio is irrelevant - i.e. you want the user to just use the toll to crop the image to whatever shape they like. Currently it falls back to a 1:1 ratio - I'd like to be able to have an unrestricted cropper if I don't supply a ratio.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.