Skip to main content
Known Participant
February 10, 2022
Question

How to apply stroke property to the image frame in illustrator.

  • February 10, 2022
  • 3 replies
  • 1061 views

Hi all, how can we write a script to apply stroke property to the image frame in illustrator.?can anyone please help me. There is no stroke property in illustrator. 

This topic has been closed for replies.

3 replies

Ton Frederiks
Community Expert
Community Expert
February 14, 2022

Would a Graphic Style combined with an Action or Script that applies the Graphic Style be sufficient?

Apply a stroke to the image and use the Effect > Path > Outline Object on the stroke.

 

 

 

 

 

 

 

 

AbpujarAuthor
Known Participant
February 14, 2022

Thank you for the reply. We can manually apply strokes to image in illustrator using mask or rectangular tool. But my question is, I had placed the image and applied strokes and fill color to that image in indesign. And I want to recreate that same image in illustrator. I can able to recreate the image but the strokes and fill color is not recreating along with the image.. Can you help me to write a script to Appling strokes and fill color to that placed image. The image placed in indesign should be recreate as it is in illustrator. 

Ton Frederiks
Community Expert
Community Expert
February 14, 2022

You can also copy from InDesign and Paste in Illustrator.

Inspiring
February 10, 2022

Illustrator doesn’t have image “frames” in the InDesign sense. Create a new path with the same size and position as the image’s bounds, and stroke that.

AbpujarAuthor
Known Participant
February 11, 2022

Thank you. But I've place the image on illustrator I want to apply stroke for that image. Could you please share the code for that. 

renél80416020
Inspiring
February 12, 2022

Bonjour Abpujar,

Il faudrait au moins expliquer quel est votre projet.

Les propriétés du cadre de l'image sont: (origine des règles en haut à gauche)

Laura Coyle.
Community Expert
Community Expert
February 10, 2022

I'm not sure if this is what you are looking for (it's not a script) but you could create a Graphic Style and apply it to an image. See screenshot.

 

You will need to add a new stroke in the Appearance panel, then add an effect to that stroke by choosing the new stroke, then , fx > Convert to Shape > Rectangle. Set as shown in the screenshot. Once you have an appearance you like, save it as a Graphic Stlye by opening the GS panel and with the image selected, click the plus button to save the style so that you can apply it to other images.

AbpujarAuthor
Known Participant
February 10, 2022

Thank you for the reply. But I'm asking how to write a code for applying stroke color and weight on image frame in illustrator. How can we implement stroke property in image frame on illustrator. Because in illustrator image frame has no stroke property.