NOTE: Now updated to work with Sketch 52.
A Sketch plugin that can fill shapes and symbols with random images from Lorem Picsum site.
- Gives you the ability to set a random, placeholder image as the fill of a shape or symbol.
- Uses David Marby and Nijiko Yonskai's work on Lorem Picsum to generate the images. ⭐
- It first measures your shape / symbol, them requests a random image of that size.
The Lorem Picsum plugin requires Sketch 50 or above.
- Download the latest release of the Lorem Picum Sketch plugin.
- Un-zip the download.
❗ I strongly recommend you save all of your current work in Sketch before you install and use any plugin!
- Double-click on
lorem-picsum.sketchplugin
file from download. - Launch Sketch, then open a file (new or existing).
- You shoud see Lorem Picsum under
Plugins
menu.
This plugin is in its infancy (beta), and relies on a third-party website for images. So, issues may come up. Feel free to let me know here on GitHub
Or, you can email me the old fashioned way.
This plugin is based on Giles Perry's @perrysmotors Sketch plugin Unsplasher (download from GitHub or download from Sketchpacks). A lot of thanks goes to him for the heavy lifting he did on Unsplasher that made this plugin possible.
As stated above, this uses David Marby and Nijiko Yonskai's work on Lorem Picsum to generate the images. Many thanks to them, as well!
So, you want to start developing on this plugin? Great! Assuming you are working in terminal, AND have node/npm set up:
- Install Sketch Plugin Manager
$ npm install -g skpm
- Clone
sketch-plugin-lorem-picsum
repo - Move into plugin folder
$ cd sketch-plugin-lorem-picsum
Ensure that you have the Sketch app installed on your machine before the next step, otherwise you will get a fatal error.
- Install project dependencies
$ npm install
You will likely be notified in the terminal that
The Sketch developer mode is not enabled
and get asked if you would like to enable it. Hity
andenter
(yes, you want to enable it.)
- Build the project (this will generate
lorem-picsum.sketchplugin
in the repo folder you are working out of.)
$ npm run build
- Launch Sketch, then open a file (new or existing)
- You shoud see Lorem Picsum under
Plugins
menu. (If not, find the generatedlorem-picsum.sketchplugin
in your local env and double-click it to install.)
After making changes, you will need to rebuild with $ npm run build
. I have found that I also often needed to uninstall, delete and reinstall the plugin in Sketch Plugin Manager (Plugins > Manage Plugins) to see the changes since Sketch caches plugins. Sometimes not. ¯\_(ツ)_/¯
More info on developing Sketch plugins can be found here.