├── package.json ├── README.md ├── Quick-Resize.lua └── LICENSE.txt /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Quick-Resize", 3 | "displayName": "Quick-Resize", 4 | "description": "Quick-Resize Extension", 5 | "version": "0.1", 6 | "author": { "name": "David Capello", "email": "david@igarastudio.com", "url": "https://davidcapello.com/" }, 7 | "contributes": { "scripts": "Quick-Resize.lua" } 8 | } 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # QuickResize 2 | 3 | A simple [Aseprite](https://www.aseprite.org/) extension to add new 4 | commands to quickly resize the sprite: 5 | 6 | ![Screenshot](https://user-images.githubusercontent.com/39654/101245754-d6926700-36ed-11eb-9642-75b210bd0fd9.png) 7 | 8 | ## How to install it? 9 | 10 | Download the [latest release](https://github.com/dacap/QuickResize/releases) and then: 11 | 12 | 1. On Windows and macOS, you can double-click the 13 | `QuickResize.aseprite-extension` file and the extension should be 14 | installed on Aseprite. 15 | 2. Other way is going to *Edit > Preferences > Extensions > Add 16 | Extension* and selecting the `QuickResize.aseprite-extension` file. 17 | 3. Restart Aseprite. 18 | -------------------------------------------------------------------------------- /Quick-Resize.lua: -------------------------------------------------------------------------------- 1 | function init(plugin) 2 | function QuickResize(scaleFactor) 3 | app.command.SpriteSize { ui=false, scale=scaleFactor, method="nearest" } 4 | end 5 | 6 | plugin:newCommand{ 7 | id="QuickResize_Quarter", 8 | title="Quick Resize 25%", 9 | group="sprite_size", 10 | onclick=function() QuickResize(0.25) end 11 | } 12 | 13 | plugin:newCommand{ 14 | id="QuickResize_Half", 15 | title="Quick Resize 50%", 16 | group="sprite_size", 17 | onclick=function() QuickResize(0.5) end 18 | } 19 | 20 | plugin:newCommand{ 21 | id="QuickResize_Double", 22 | title="Quick Resize 200%", 23 | group="sprite_size", 24 | onclick=function() QuickResize(2) end 25 | } 26 | 27 | plugin:newCommand{ 28 | id="QuickResize_Triple", 29 | title="Quick Resize 300%", 30 | group="sprite_size", 31 | onclick=function() QuickResize(3) end 32 | } 33 | 34 | plugin:newCommand{ 35 | id="QuickResize_Quadruple", 36 | title="Quick Resize 400%", 37 | group="sprite_size", 38 | onclick=function() QuickResize(4) end 39 | } 40 | 41 | end 42 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 David Capello 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | --------------------------------------------------------------------------------