Skip to main content
Inspiring
April 21, 2024
Answered

Getting Placed Image's ICC Profile with Illustrator ExtendScript

  • April 21, 2024
  • 1 reply
  • 484 views

I am using .jsx ExtendScript with Illustrator on MacOS to place the modification timestamp and ICC profile name below a series of images (.tif, .psd, .psb) as they are placed onto the artboard programmatically. I am able to get the modification timestamp, but am having difficulty retrieving the ICC profile name from the placed image. Suggestions to easily/quickly access this metadata from the .jsx without installing anything external?

This topic has been closed for replies.
Correct answer sttk3

This is an ExtendScript that gets ICC profile name from XMP for the linked image selected in Illustrator and displays it in the dialog.

 

However, ICC profile seemed to have no information unless the image was saved by Photoshop or other software. For example, a macOS screenshot would be undefined.

 

1 reply

sttk3Correct answer
Legend
April 22, 2024

This is an ExtendScript that gets ICC profile name from XMP for the linked image selected in Illustrator and displays it in the dialog.

 

However, ICC profile seemed to have no information unless the image was saved by Photoshop or other software. For example, a macOS screenshot would be undefined.

 

Chris.SAuthor
Inspiring
April 23, 2024

That did it. Thank you @sttk3 !