Aspect Ratio Tweaker
Script for Adobe Illustrator
ㅤ
Description
Aspect Ratio Tweaker is a powerful Adobe Illustrator script that allows you to precisely adjust the aspect ratio of selected objects while maintaining their visual proportions. This tool is essential for designers who need to resize artwork to specific dimensions, create variations of existing designs, or adapt content for different formats and platforms.
ㅤ
Key Features
- Smart Aspect Ratio Detection: Automatically calculates the current aspect ratio of selected objects.
- Custom Ratio Input: Direct numerical input with slider controls for fine-tuning.
- Flexible Base Reference: Choose to fix either width or height while adjusting the other dimension.
- Precise Reference Point Control: 9-point positioning system to control scaling origin.
- Live Preview: Real-time visual feedback as you adjust values.
- Value Swapping: Quick toggle to swap width and height ratios.
- Artboard Conversion: Option to create new artboards matching resized object dimensions.
ㅤ
Installation
1. Download the Aspect Ratio Tweaker.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.
ㅤ
Using the Script
- Open your Illustrator document and select one or more objects you want to resize.
- Run the script via File > Scripts > Aspect Ratio Tweaker.
- The script dialog contains several key sections:
ㅤ

ㅤ
➊ Reference Point Panel
- 9 radio buttons representing anchor points.
- Determines where the object scales from (top-left, center, bottom-right, etc.)
- Available options change based on your Fixed setting.
ㅤ
ㅤ
➋ Fixed Panel
- Height: Keeps original height, adjusts width to match ratio.
- Width: Keeps original width, adjusts height to match ratio.
ㅤ
ㅤ
➌ Aspect Ratio Panel
- Width Ratio: Numerical input and slider.
- Height Ratio: Numerical input and slider.
- Shows calculated ratio for single objects automatically.
ㅤ
For Custom Ratios:
- Enter desired width ratio in the top field.
- Enter desired height ratio in the bottom field.
- Use sliders for quick adjustments.
- Common ratios: 16:9 (widescreen), 4:3 (standard), 1:1 (square), 3:2 (photo).
ㅤ


ㅤ
Keyboard Shortcuts:
- Arrow Up/Down: Adjust values by 1.
- Shift + Arrow Up/Down: Adjust values by 10.
- H Key: Switch to Width fixed mode.
- V Key: Switch to Height fixed mode.
ㅤ
Slider Controls:
- Drag sliders for visual adjustment.
- Click slider arrows for incremental changes.
ㅤ
ㅤ
➍ Use Advanced Options
Swap Values Checkbox:
- Quickly interchange width and height ratio values.
- Useful for switching between landscape and portrait orientations.
ㅤ
Hide Edges Checkbox:
- Toggles object outline visibility for cleaner preview.
- Helps focus on the actual shape without distracting edges.
ㅤ
Preview Checkbox:
- Shows live updates as you adjust values.
- Disable for better performance with complex objects.
ㅤ
Convert to Artboard:
- Creates new artboards matching the resized object dimensions.
- Useful for setting up export areas or new document formats.
ㅤ
ㅤ
➎ Apply Changes
Zoom Button (✚):
- Fits selected objects within the current view.
- Helpful for seeing changes clearly.
ㅤ
OK Button:
- Applies the aspect ratio changes permanently.
- Saves current settings for future use.
ㅤ
Cancel Button:
- Discards all changes and restores original dimensions.
- Objects return to their initial state.
ㅤ
User Guide:
- Available through the script's help icon (⏼).
ㅤ
ㅤ
This script helps maintain precise aspect ratios while giving you complete control over scaling behavior and reference points.
Perfect for designers working with multiple formats, social media content, or any situation requiring exact dimensional relationships.
ㅤ
ㅤ