shakemno / sketch-replace-images

A plugin to replace (as in update) existing images by name in a sketch document.
42 stars 8 forks source link

This repository is no longer maintained.

Sketch Replace Images

A plugin to replace (as in update) existing images by name in a sketch document.

Supported image types: png, jpg, jpeg


Usage

  1. Select the plugin from the menu or press ctrl + ⇧ + ⌘ + R
  2. By default the plugin is recursively looking for image from your sketch-file location. There is also a settings option, where you can specify a custom path to a directory containing your resources. (If you are still using the AppStore version, you'll need to authorize sketch to read from the directory)
  3. All images with matching names (layer-name equal image-name) will be updated, in case nothing happens make sure to provide the correct path.

If you define a custom path it will persist, so if you start a new project or want to use the default – you'll need to reset it first, there is a restore default option in the settings panel.


Changelog


This plugin was created using skpm. For a detailed explanation on how things work, checkout the skpm Readme.


License

Copyright (c) 2016 shakemno

MIT License

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.