This is a module for framer that provides a library of different image placeholder services.
Put placehold.coffee in your modules folder.
First, require the module.
# Require our module
module = require("placehold")
This function applies a image to a layer. It will take the same dimensions as the layer and will be set to layer.image. It takes two arguments, a layer object and a style string. Read more about the style strings at that section.
module.placehold( layer, "fatcats" )
If you just want the url for a placeholder, call this function. It takes three arguments, a style string, a width integer and a height integer. Read more about the style strings at that section.
module.getUrl( "cage", 150, 150 )
"simple" is the simplest style - with a simple box with the dimensions in it. Provided by placehold.it.
"pretty" takes images from every designers favorite placeholder source - unsplash.it. It's all very nice. This is also the default for module.placehold() if no style string is provided.
"cage" sets all your images to be of one of our greatest actors, nicolas cage. Provided by placecage.com.
A crazier version of "cage". Provided by placecage.com.
Bill. I love you, and you should be in everything anyone makes. Placeholder server provided by fillmurray.com.
Star Wars imagery courtesy of 420placehold.it.
Star Trek imagery curtesy of 420placehold.it. R.I.P Leonard Nimoy.
Space imagery courtesy of 420placehold.it.
Images of fat cats. Courtesy of 420placehold.it.
Awkward family photos, now in your framer prototypes. Courtesy of 420placehold.it.
The MIT License (MIT) Copyright (c) 2015 Joakim Wimmerstedt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.