Smart Scale

Smart Scale

Script for Adobe Illustrator

✦ Available exclusively on Patreon for Pro supporters.

Description

Smart Scale is a powerful Adobe Illustrator script that provides advanced resizing capabilities for your artwork. Unlike Illustrator's built-in transform tools, Smart Scale offers precise control over object dimensions with multiple resize modes, intelligent scaling options, and a live preview feature. Whether you need to resize objects to exact dimensions, scale by percentage, or adjust sizes by adding or subtracting values, Smart Scale streamlines your workflow with an intuitive interface and flexible options.

Features

  • Multiple Resize Modes – Set exact size, increase/decrease by amount, or scale by percentage
  • Flexible Scaling Sides – Choose to scale by width, height, larger side, smaller side, or random dimension
  • Live Preview – See changes in real-time before applying
  • Reference Point Control – Choose any of 9 anchor points for transformation
  • Measurement Options – Scale using geometric bounds or visible bounds (including stroke)
  • Advanced Scaling Options – Control proportions, corner radius, stroke width, and pattern scaling
  • Interactive Scrollbar – Quickly adjust values with a visual slider
  • Persistent Settings – Your preferences are saved between sessions
  • Zoom to Selection – Quickly fit selected objects in view
  • Hide Edges Option – Deselect objects to hide bounding box while maintaining internal selection tracking

Installation

1. Download the Smart Scale.jsx script file.

2. Place the script in your Adobe Illustrator Scripts folder:

⮑ Mac: /Applications/Adobe Illustrator (Version)/Presets/(Language)/Scripts

⮑ Windows: C:\Program Files\Adobe\Adobe Illustrator (Version)\Presets\(Language)\Scripts

3. Restart Adobe Illustrator if it's already running

4. Access the script via File > Scripts > Smart Scale

5. Alternatively, run it directly via File > Scripts > Other Script... and browse to the file location

Tip: You can also drag and drop the .jsx file directly onto the Illustrator workspace to run the script instantly – no installation needed.

Using the Script

Getting Started

Before using Smart Scale, ensure you have a document open in Adobe Illustrator with at least one object selected. The script works with all object types including paths, shapes, groups, and compound paths.

To launch the script:

  • Navigate to File > Scripts > Smart Scale
  • Or use File > Scripts > Other Script... and browse to the file location
  • Or drag and drop the .jsx file directly onto your Illustrator workspace
  • The script dialog will appear with multiple options:

image gallery

Understanding the Interface

The Smart Scale dialog is organized into several panels that control different aspects of the resizing operation.

➊ Target Size Panel

This panel controls the size value you want to apply:

  • Enter values manually in the input field
  • Use the scrollbar to adjust values visually (range: 1-16383)
  • The units label displays your current document units (px, pt, mm, cm, in, etc.)
  • Use Up/Down arrow keys for ±1 increments
  • Use Shift+Up/Down for ±10 increments
  • Right-click the scrollbar to reset to 0 (Add/Subtract modes) or 100% (Percentage mode)

➋ Resize Mode Panel

Choose how the size value is applied to your objects:

  • Set Exact Size – Resize objects to the exact specified dimension
  • Increase by Amount – Add the specified value to the current size
  • Decrease by Amount – Subtract the specified value from the current size
  • Scale by Percentage – Resize by percentage (100% equals original size)

➌ Reference Point Panel

Select the anchor point for transformation using the 9-point grid. The transformation will occur relative to the selected anchor point:

  • Top row: Top Left, Top Center, Top Right
  • Middle row: Middle Left, Center, Middle Right
  • Bottom row: Bottom Left, Bottom Center, Bottom Right

➍ Measure Panel

Choose how object dimensions are calculated:

  • Geometric Bounds – Measures the object's bounding box excluding stroke width
  • Visible Bounds – Measures the object's bounding box including stroke width

➎ Scaling Side Panel

Determine which dimension to use for resizing:

  • Scale by Width – Resize based on horizontal dimension
  • Scale by Height – Resize based on vertical dimension
  • Scale by Larger Side – Resize based on the larger dimension (width or height)
  • Scale by Smaller Side – Resize based on the smaller dimension
  • Scale by Random Side – Randomly choose width or height for each object

➏ Scaling Options Panel

Fine-tune how scaling affects object properties:

  • Maintain Proportions – Scale proportionally maintaining aspect ratio (uniform scaling)
  • Scale Corner Radius – Scale corner radius with Live Shapes (Illustrator CS6+)
  • Scale Stroke & Effects – Scale stroke width and effects proportionally
  • Scale Fill Patterns – Scale fill patterns proportionally
  • Scale Stroke Patterns – Scale stroke patterns proportionally

➐ Preview and Hide Edges

  • Preview – Enable to see changes in real-time as you adjust settings. Disable for better performance with complex artwork
  • Hide Edges – Deselect objects to hide bounding box and edges while the script maintains internal selection tracking

➑ Action Buttons

  • Cancel – Close the dialog without applying changes
  • ✚ (Zoom) – Fit the selection in the window for better visibility
  • OK – Apply the resize operation to selected objects

Resizing to Exact Dimensions

Use this mode when you need objects to be a specific size.

Steps to resize to exact dimensions:

  1. Select your object(s) in the document
  2. Run Smart Scale
  3. Select Set Exact Size in the Resize Mode panel
  4. Enter the desired size value (e.g., 500 for 500px)
  5. Choose the scaling side (e.g., Scale by Width)
  6. Select your preferred reference point (e.g., Center)
  7. Enable Maintain Proportions if you want uniform scaling
  8. Enable Preview to see the result in real-time
  9. Click OK to apply the transformation

This mode is ideal for creating objects that need to match specific dimensions in your design system or layout grid.

image gallery

Increasing or Decreasing Size by Amount

Use these modes when you need to adjust object sizes by a specific increment.

Steps to increase size by amount:

  1. Select your object(s)
  2. Run Smart Scale
  3. Select Increase by Amount in the Resize Mode panel
  4. Enter the amount to add (e.g., 50 to add 50px)
  5. Choose the scaling side (e.g., Scale by Larger Side)
  6. Enable Preview to see the result
  7. Click OK to apply

Steps to decrease size by amount:

  1. Select your object(s)
  2. Run Smart Scale
  3. Select Decrease by Amount in the Resize Mode panel
  4. Enter the amount to subtract (e.g., 20 to subtract 20px)
  5. Choose the scaling side (e.g., Scale by Smaller Side)
  6. Enable Preview to see the result
  7. Click OK to apply

These modes are useful for making consistent adjustments across multiple objects or creating size variations in your designs.

Scaling by Percentage

Use this mode when you need to scale objects proportionally by a percentage value.

Steps to scale by percentage:

  1. Select your object(s)
  2. Run Smart Scale
  3. Select Scale by Percentage in the Resize Mode panel
  4. Enter the percentage value (e.g., 150 for 150% or 50 for 50%)
  5. Choose your scaling preferences in the Scaling Options panel
  6. Enable Preview to see the result
  7. Click OK to apply

Note that 100% represents the original size, values above 100% increase the size, and values below 100% decrease the size. The scrollbar range extends to 1000% for extreme scaling needs.

Working with Reference Points

The reference point determines the anchor position for your transformation. Understanding how reference points work helps you achieve precise positioning.

Common reference point uses:

  • Top Left – Useful when aligning objects to the top-left corner of a layout
  • Top Center – Ideal for centering objects horizontally while maintaining top alignment
  • Center – Perfect for scaling objects from their center point
  • Bottom Center – Great for aligning objects to a baseline while centering horizontally
  • Bottom Right – Useful for aligning objects to the bottom-right corner

The selected reference point remains fixed during the transformation, while the rest of the object scales relative to that point.

Understanding Geometric vs Visible Bounds

Choosing the correct measurement method is important for accurate resizing.

Geometric Bounds

Measures the object's mathematical bounding box excluding stroke width. Use this when:

  • You need precise object dimensions
  • Stroke width should not affect the measurement
  • You're working with technical drawings or precise layouts

To use Geometric Bounds, ensure Use Preview Bounds is unchecked in Preferences > General.

Visible Bounds

Measures the object's visual bounding box including stroke width. Use this when:

  • The visual appearance matters more than mathematical precision
  • You want stroke width included in the measurement
  • You're working with designs where the total visual size is important

To use Visible Bounds, ensure Use Preview Bounds is checked in Preferences > General and Show Bounding Box is enabled in the View menu.

image gallery

Advanced Scaling Options

The Scaling Options panel provides fine control over how scaling affects various object properties.

Maintain Proportions

When enabled, objects scale uniformly maintaining their aspect ratio. When disabled, objects can be scaled non-uniformly based on the selected scaling side.

Scale Corner Radius

Available in Illustrator CS6 and later. When enabled, corner radius values in Live Shapes scale proportionally with the object. Disable this if you want to maintain fixed corner radius values.

Scale Stroke & Effects

When enabled, stroke width and effects scale proportionally with the object. Disable this if you want to maintain the original stroke width regardless of object size.

Scale Fill Patterns

When enabled, fill patterns scale proportionally with the object. Disable this if you want patterns to maintain their original scale.

Scale Stroke Patterns

When enabled, stroke patterns scale proportionally with the object. Disable this if you want stroke patterns to maintain their original scale.

Tips and Best Practices

Maximize your efficiency with these helpful tips.

Quick Value Adjustments

  • Use the scrollbar for fast visual adjustments
  • Type exact values in the input field for precision
  • Use keyboard arrows for fine-tuned control

Batch Processing

Select multiple objects to resize them all at once with the same settings. This is perfect for creating consistent sizing across multiple elements.

Reset Values Quickly

Right-click the scrollbar to instantly reset to 0 (in Add/Subtract modes) or 100% (in Percentage mode).

Match Reference Points to Design Needs

Choose reference points that align with your design requirements. For example, use bottom-center when aligning objects to a baseline, or center when scaling icons uniformly.

Choose the Right Measurement Method

Use Geometric Bounds for precise object dimensions and Visible Bounds when stroke width matters to the overall visual size.

Persistent Settings

Your settings are automatically saved and restored the next time you run the script, saving you time on repeated tasks.

Performance with Complex Artwork

If preview is slow with complex artwork, disable Preview while making adjustments, then enable it briefly to check the result before clicking OK.

Hide Edges for Better Visibility

Enable the Hide Edges checkbox to deselect objects and hide their bounding boxes while the script maintains internal selection tracking. This provides a cleaner view of your artwork during preview.

☻ Wrap-Up

Smart Scale provides professional-grade resizing capabilities that go far beyond Illustrator's built-in transform tools. With multiple resize modes, flexible scaling options, and real-time preview, you can achieve precise control over your artwork dimensions while maintaining design consistency. The script's intuitive interface and persistent settings make it an essential tool for any Illustrator workflow requiring accurate and efficient object resizing.

ㅤㅤ

1 comment

  • Thank you for this excellent script, but it seems that the Scaling Side Panel isn’t working. No matter which option I choose, the scaling only applies to the width.

    Cary Crusiau -

Leave a comment

Smart Scale

Version: 1.0.4

Updated:

  • 1.0.0 – Initial release.
    1.0.2 – Fixed an issue where "Scale by Larger Side" and "Scale by Smaller Side" modes were not working correctly in Set Exact Size mode – the script was always scaling by the smallest dimension regardless of the selected option.
    1.0.3 – Script settings are now automatically saved on dialog close and restored on next launch.
    1.0.4 – Added a Hide Edges checkbox that deselects objects while the dialog is open, hiding bounding boxes and edges so you can judge the result in context – selection is automatically restored when you close the dialog.

    Tested on MacOS:

    • Adobe Illustrator 2023 (27.0)
    • Adobe Illustrator 2024 (28.1)
    • Adobe Illustrator 2025 (29.0)
    • Adobe Illustrator 2026 (30.3)
  • Supported Versions:

    • Compatible with Adobe Illustrator CS6 and later, including Adobe Illustrator CC versions.

    Operating Systems:

    • Works on both macOS and Windows platforms.
  • End User License Agreement (EULA)

    Last Updated: 21.12.2024

    This End User License Agreement (“Agreement”) is a legal agreement between you (“User” or “Licensee”) and Samolevsky.com (“Licensor”) regarding the use of the Adobe Illustrator scripts (“Software”). By downloading, installing, or using the Software, you agree to be bound by the terms of this Agreement.

    1. Grant of License

    Licensor grants the User a non-exclusive, non-transferable, and revocable license to use the Software in accordance with this Agreement.

    • Free Software: If the Software is provided for free, you may use it for personal or commercial purposes without payment, subject to the restrictions outlined in this Agreement.
    • Paid Software: If the Software is provided for a fee, you may use it only after payment has been made in full.

    2. Usage Rights

    You are permitted to:

    • Install and use the Software on devices you own or control.
    • Use the Software in your personal or commercial projects, subject to compliance with this Agreement.

    3. Restrictions

    You may NOT:

    • Reverse engineer, decompile, or otherwise attempt to discover the source code, underlying ideas, or algorithms of the Software.
    • Reuse, incorporate, or integrate any portion of the Software into any other software, product, or project, except as expressly permitted by the Licensor in writing.
    • Resell, redistribute, or share the Software, whether in its original or modified form, without prior written consent from the Licensor.
    • Claim ownership of the Software or its underlying code.
    • Use the Software in any way that violates applicable laws or regulations.

    4. Ownership

    The Software and all intellectual property rights therein remain the exclusive property of the Licensor. This Agreement does not transfer ownership of the Software or any intellectual property rights to the User.

    5. Disclaimer of Warranties

    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 LICENSOR 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.

    6. Limitation of Liability

    To the maximum extent permitted by law, Licensor shall not be liable for any damages, including but not limited to direct, indirect, incidental, special, or consequential damages, arising out of or related to the use or inability to use the Software.

    7. Termination

    This Agreement is effective until terminated. Licensor may terminate this Agreement immediately if you breach any term of this Agreement. Upon termination, you must cease all use of the Software and destroy any copies in your possession.

    8. Updates and Support

    Licensor is not obligated to provide updates, support, or maintenance for the Software. However, updates may be provided at the sole discretion of the Licensor.

    9. Governing Law

    This Agreement shall be governed by and construed in accordance with the laws of the State of New York, without regard to its conflict of law principles.

    10. Entire Agreement

    This Agreement constitutes the entire agreement between you and the Licensor concerning the Software and supersedes all prior or contemporaneous understandings regarding such subject matter.

    By using the Software, you acknowledge that you have read this Agreement, understand it, and agree to be bound by its terms.

    For any questions or concerns regarding this Agreement, please contact us at hello@samolevsky.com

Browse More Scripts

  1. Explore Random Gradient Generator
    Random Gradient Generator

    Random Gradient Generator

    Random Gradient Generator is an Adobe Illustrator script for creating colorful linear or radial gradients with a fast visual workflow.

    Explore
  2. Explore Gradient Interpolator
    Gradient Interpolator

    Gradient Interpolator

    Gradient Interpolator is a powerful utility for Adobe Illustrator designed to eliminate banding and create perfectly fluid color transitions.

    Explore
  3. Explore Circle With N Points
    Circle With N Points

    Circle With N Points

    Circle With N Points is a versatile Adobe Illustrator script that allows you to easily generate circles and polygons with customized points.

    Explore

Introducing ScriptBox

Your Complete Adobe Illustrator Productivity Hub

Required Software

Adobe Illustrator

Adobe Illustrator is a professional vector graphics software developed by Adobe Inc. It is widely used by designers, illustrators, and artists for creating a variety of digital artwork, including logos, icons, illustrations, typography, and complex design layouts. Illustrator is known for its precision and scalability, allowing users to create high-quality graphics that can be resized without losing clarity. Its features include powerful drawing tools, customizable brushes, advanced typography options, and seamless integration with other Adobe Creative Cloud applications. Illustrator is a go-to tool for creative professionals working on projects for print, web, and multimedia platforms.

  • 🅰 Locating the Scripts Folder

    To install a Smart Scale.jsx script in Adobe Illustrator, you need to place it in the correct directory where Illustrator
can recognize it. Follow these steps to locate the Scripts folder:

    1. MacOS:
      Open Finder and navigate to:
      Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts
    2. Windows:
      Open File Explorer and navigate to:
      C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts
    3. Replace <Version> with your Adobe Illustrator version (e.g., 2025).
    4. Replace <Language> with your language folder (e.g., "de_DE" for German, "en_US" for English).

    🅱 Installing the Script

    1. Copy the Script File: Copy the Smart Scale.jsx file to the Scripts folder located in the path above.
    2. On some systems, you may need administrator permissions to modify the Scripts folder.
    3. Restart Adobe IllustratorTo refresh the scripts menu, close and reopen Adobe Illustrator.

    Explore our complete guide to mastering Adobe Illustrator scripts.

    1. Open Adobe Illustrator and ensure a document is active.
    2. Go to the top menu bar and select File > Scripts.
    3. If the script is installed in the Scripts folder, it will appear in the dropdown list.
    4. Click the Smart Scale script to run it.
    5. The Smart Scale script will execute, and any dialog boxes or results will appear based on the script’s functionality.

    ☻ Before running any scripts, it’s strongly advised to save your work — especially when working with complex or large documents.

Got questions?

Need help or have an idea to share? We’d love to hear from you! Whether you have questions, found a bug, have a feature request, or just want to share your feedback, reach out to us—we’re here for you!