alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Picture::Transformations#get_base_dimensions
Gets the base dimensions (the dimensions of the Picture before scaling). If anything is missing, it gets padded with zero (Integer 0). This is the order of precedence: crop_size > image_size
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_base_dimensions-for-pr
# Commit to gitgit add app/models/alchemy/picture/transformations.rbgit commit -m "better docs for Alchemy::Picture::Transformations#get_base_dimensions"
# 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_base_dimensions-for-pr
hub pull-request
# Celebrate!