alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Picture::Transformations#get_top_left_crop_corner
Given dimensions for a possibly destructive crop operation, this function returns the top left corner as a Hash with keys :x, :y
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/models/alchemy/picture/transformations.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Picture--Transformations-get_top_left_crop_corner-for-pr
# Commit to gitgit add app/models/alchemy/picture/transformations.rbgit commit -m "better docs for Alchemy::Picture::Transformations#get_top_left_crop_corner"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--Picture--Transformations-get_top_left_crop_corner-for-pr
hub pull-request
# Celebrate!