Skip to main content
Known Participant
May 2, 2025
Answered

Fit Object/Image/Vector to Artboard Size

Is there a way to fit an image, vector, or object to the size of the artboard? I know you can do the opposite, where the artboard adjusts to the selected object, but I need to do the reverse. Thanks a lot for any answers.

Monika Gause
Monika GauseCorrect answer
Community Expert
May 2, 2025

4 replies

HanschrsAuthor
Known Participant
May 2, 2025

I just found a very useful and simple script. Check it out

https://github.com/andrewcockerham/Adobe-Illustrator-Scripts/blob/master/fitObjectToArtboard_v2.jsx

Translate
m1b
Community Expert
Community Expert
May 4, 2025

@Hanschrs I would recommend the script Monika posted because I believe it handles clipping masks correctly.

- Mark

Translate
Monika Gause
Community Expert
Monika GauseCommunity ExpertCorrect answer
Community Expert
May 2, 2025

You could check out the Fit Selection to Artboard script: https://github.com/creold/illustrator-scripts/blob/master/md/Item.md#fitselectiontoartboards 

Translate
Tina_Irvine
Community Expert
Community Expert
May 2, 2025

Hi @Hanschrs,

I usually just select the object (or object group) and use the transform panel to key in the artboard size. Click on the chain link to keep your object scaling proportionately.

Translate