A downloadable Aseprite script

Scale2Size is a collection of three Lua scripts for Aseprite that will scale the content of a selection to double its size, half its size, or to a custom percentage size of your choice, most useful when used as a keyboard shortcut.

What they do:

  • Scale2Double.lua doubles scales the selection to double its size; Size2Half.lua scales it to half its size; Size2Custom.lua scales it to a custom percentage.
  • The scripts are provided separately to allow for three different keyboard shortcuts, to be defined by the user.
  • Size2Custom.lua will not scale the image to a negative percentage value.
  • You must have a sprite and a selection for the script to work.
  • Only Size2Custom.lua will open a small dialog box. The others will apply the scaling automatically to be as unintrusive as possible.

Download

Download
scale2size_0_2.zip 5.1 kB

Install instructions

How to install:

  • In Aseprite, go to File > Scripts > Open Scripts Folder. This should open an Explorer window at <Aseprite program folder>/scripts.
  • Copy the files Size2Double.lua, Size2Half.lua and Size2Custom.lua to this folder and in File > Scripts select Rescan Scripts Folder.
  • The scripts should now be available for use.

Instructions:

  • While editing a Sprite, select any Scale2[size].lua script, and the scripts will double or halve the selection's content automatically, except Scale2Custom.lua, which will ask for a percentage size.
  • You can also bind the scripts to different keyboard shortcuts by going to Edit > Keyboard Shortcuts.... For more information, read the Aseprite documentation.
  • Important: Due to the ridiculous way in which Aseprite handles color modes in its API, there's a non-zero chance of the image content breaking in an unspecified way, although this bug should be rare, and has never happened to me since I developed it.

In case of a bug, or any other kind of unintentional behavior, feel free to contact me at kidmarscat [at] gmail [dot] com or leave a comment on the Scale2Size download page, kidmarscat.itch.io/scale2size

ChangeLog

Date Version What changed
2024-09 0.2 Updated to match the latest API; several code improvements.
2023-05 0.1 First Release, internal use only.

Leave a comment

Log in with itch.io to leave a comment.