Easy frames
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
Easy frames is awesome Drupal module to easily add image or photo frames. Only you need to do is create new style, add "Easy frame" effect, upload some frame file with transparent middle part and crop it with cropper JS tool. Now after saving effect you will see test picture with nice frame of your choice. More to say, if you add multiple "Easy frame" effects to style, only one of them will be applied to image on a random basis.
This module works with any Drupal image-related modules like Insert, Node gallery and many others.
Module website
Module example
http://easyframes.dedom.ru/example
Installation
Installing with drush:
<del>drush dl easy_frames</del> // Doesn't work yet, you have to download manually
drush cropperdl // This works after manual module installation. This command will download cropper library and put it in sites/all/libraries
drush en easy_frames​Installing with git:
cd sites/all/modules/
git clone https://github.com/ps1x/easy_framesThen you have to download cropper JS library.
Create libraries folder if it does not exist:
mkdir sites/all/libraries
cd sites/all/libraries
git clone https://github.com/fengyuanchen/cropperEnable module. You can check cropper library detection in Status report of your Drupal installation.
Installing manually:
Download and extract module https://github.com/ps1x/easy_frames/archive/master.zip archive to sites/all/modules/ folder so there will be path sites/all/modules/easy_frames/easy_frames.module. Download and extract cropper library https://github.com/fengyuanchen/cropper/archive/master.zip to sites/all/libraries so there will be sites/all/libraries/cropper/dist/cropper.min.js and *.min.css paths. Enable module. You can check cropper library detection in Status report of your Drupal installation.
Usage
Add new image style, or use existing. Lets say you want create nice tumbnails with frames. Add easy frame effect. Now select frame file and upload it. Use cropper tool to select transparent insides of a frame. Most likely default settings will work for you out of the box. Press save and enjoy your awesome thumbnail with frame. Additionaly you can add as many "Easy frame" effects to your style. Only one of them will be applied to image choosed by fair dice roll (guaranteed to be random).
Drupal 8
I have planned to make Drupal 8 version of this module.
