Script to remove ICC profile in batch

Hi
I have about 600 illustrator AI files (done in CS4) that re essentially black and white line drawings. But they are around 3-4meg each in size. Recent use of the tools has highlighted that there is a lot of unused data in these files of which the most significant part being the ICC profile.Whatever solution is provided I need to be able to run it on mass on all the files without me manually having to open each file and re-save?
Is there a way to be able to run a batch command on all these files and essentially remove the ICC profile from each?

Here's a modified version of the Save As AI14 from the AI sample files. It will resave all the files without an embedded profile.
ADOBE SYSTEMS INCORPORATED
Copyright 2005 Adobe Systems Incorporated
All Rights Reserved
NOTICE:  Adobe permits you to use, modify, and
distribute this file in accordance with the terms
of the Adobe license agreement accompanying it. 
If you have received this file from a source
other than Adobe, then your use, modification,
or distribution of it requires the prior
written permission of Adobe.
SaveAsAI14.jsx
DESCRIPTION
This sample gets files specified by the user from the
selected folder and batch processes them and saves them
as PDFs in the user desired destination with the same
file name.
// Main Code [Execution of script begins here]
// uncomment to suppress Illustrator warning dialogs
// app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, illustratorSaveOpts;
// Select the source folder.
sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files you want to convert to AI', '~' );
// If a valid folder is selected
if ( sourceFolder != null )
    files = new Array();
    fileType = prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', ' ' );
    // Get all files matching the pattern
    files = sourceFolder.getFiles( fileType );
    if ( files.length > 0 )
        // Get the destination to save the files
        destFolder = Folder.selectDialog( 'Select the folder where you want to save the converted AI files.', '~' );
        for ( i = 0; i < files.length; i++ )
            var optRef = new OpenOptions();
            optRef.updateLegacyText = true;
            sourceDoc = app.open(files[i], DocumentColorSpace.CMYK, optRef); // returns the document object
            // Call function getNewName to get the name and file to save the ai
            targetFile = getNewName();
            // Call function getIllustratorOptions get the illustratorSaveOptions for the files
            illustratorSaveOpts = getIllustratorOptions( );
            // Save as AI
            sourceDoc.saveAs( targetFile, illustratorSaveOpts );
            sourceDoc.close();
        alert( 'Files are saved as AI in ' + destFolder );
    else
        alert( 'No matching files found' );
getNewName: Function to get the new file name. The primary
name is the same as the source file.
function getNewName()
    var ext, docName, newName, saveInFile, docName;
    docName = sourceDoc.name;
    ext = '.ai'; // new extension for AI file
    newName = "";
    for ( var i = 0 ; docName[i] != "." ; i++ )
        newName += docName[i];
    newName += ext; // full AI name of the file
    // Create a file object to save the ai file
    saveInFile = new File( destFolder + '/' + newName );
    return saveInFile;
getIllustratorOptions: Function to set the AI saving options of the
files using the illustratorSaveOptions object.
function getIllustratorOptions()
    // Create the PDFSaveOptions object to set the AI options
    var illustratorSaveOpts = new IllustratorSaveOptions();
    // Setting IllustratorSaveOptions properties.
    illustratorSaveOpts.embedLinkedFiles = true;
    illustratorSaveOpts.fontSubsetThreshold = 0.0
    illustratorSaveOpts.pdfCompatible = true
    illustratorSaveOpts.compatibility = Compatibility.ILLUSTRATOR14
    illustratorSaveOpts.embedICCProfile = false
    return illustratorSaveOpts;
Clip the above. Paste it into an ESTK window and save with a .jsx extension. Should do what you want.

Similar Messages

  • Need a Script for Removing User Profiles in Windows 7

    I am in need of a script that will allow me to remotely delete user profiles from multiple computers. I am an IT Admin over around 15-20 computers that are publicly used by many different people each day, and at least once a month we have to go into each
    computer individually..my computer, properties, profiles and delete them one by one. This is growing very tedious due to manpower and the number of computers we have to do this on. 
    I have absolutely zero knowledge in the scripting department so could somebody point me in the right direction on this? I would like to have a script that i can just run once a month or so and say "delete all profiles from computers x y and z that are
    over a few months old." Is this possible? Thanks in advance!

    Try this link - http://superuser.com/questions/643417/delete-user-profile-from-command-line-windows-7
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/7663ea51-9f4e-4fd7-9946-e16e65c3ed9d/remove-windows-7-user-profiles-via-powershell-script-initiated-on-logoff?forum=ITCG
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How to add JPGS with bad ICC profile?

    I've just started using LR 3 64 (with the newest update) and I've run into a problem with some JPG files. After import, I just get a blank box with a warning triangle, and I can't view them. If I tell it to edit the file in CS5, CS5 gives me a warning that the ICC profile cannot be used because it is invalid and will be ignored. Once I've opened the file in CS5 and saved it, LR can handle the new version without problems. As opening and saving causes some image deterioration (and takes an effort if many photos) is then any better way to fix this problem?

    I guess ExifTool can do it.
    UPDATE:
    Here' the syntax:
    Remove ICC profile from file "file.jpg":
    exiftool -icc_profile= file.jpg
    Remove ICC profiles from all files from directory "dir":
    exiftool -icc_profile= dir

  • Batch automation on SaveforWeb failing to deal with ICC profiles (PS CS3)

    I am using Photoshop Creative Suite 3 on a 64 bit windows machine.
    I am working on content for a website.
    Starting with a JPEG image I create an Action with the following steps
    Save for Web and Devices
    In the preset options I check the ICC profiles box
    I choose a location to save to.
    End of Action.
    This new JPEG file looks fine in Explorer, in Photoshop, and uploaded using my provider's standard uploader into a regular CMS site.
    As I have several hundred photos to process, next I run
    Automate
    Batch
    Using the Action created above
    Save and Close
    The files create fine, with the expected file name formats (the original images have spaces in the file names, the new ones in the new folder have hyphens between words)
    The JPEG files look fine in Explorer and in Photoshop, and in the thumbnail while they are uploading. As soon as they are uploaded however the colour is stripped out and the image goes a rubbishy green hue.
    I have checked the Action using the single steps and it looks okay.
    I would be very grateful if anyone can advise how I might be able to do this job using an automated batch?
    For what it's worth I've inserted both images here where they both look fine. The third image below is a screenshot from them both side by side once uploaded into the website. My website provider is saying that this is an entirely Photoshop issue so they cannot help.

    That second example is a ProPhoto file viewed without color management. Always convert to sRGB for web, because that displays roughly correctly even in a non-color managed web browser.
    Then, for color managed browsers like Firefox and Safari, you should also embed the profile. Both are set in the SFW dialog:
    Web browser color management is all over the map, and a separate subject. You should always assume that the files will be viewed without color management, and prepare for both. In short: convert to sRGB > embed the profile. That's the best you can do.

  • ICC profile description is invalid

    I loaded PSE 8 on my Dell M1530 running Vista.  Whenever I try to start PS8 I get "could not initialize Photoshop because the ICC profile description is invalid" and the program quits.  I've tried removing and reinstalling PSE8 and it still errors.  Any idea what I can do?

    There are three steps in installing a color profile in Windows. First they have to be in your system32 (or syswow whatever\spool\drivers\color folder. Then as you have done you run the install. But then you have to register the profile for the device type (display\printer\etc.).
    I think placing the color space profiles has already been covered in another reply.
    You have already reset preferences so PSE has rebuilt its cache of scripts and resources.
    Switch the default monitor profile in Win color management applet to another to another one just to see if that solves your problem. PSE doesn't offer a choice of display profile so I imagine it uses your set default.
    Also there are two profile version types. Version 4 trips uup some applications especially for printing. Version 2 should be used for displays and works best for printers as well.
    These Win utilties will show the version type:
    http://www.color.org/resource2.xalter get
    ICC Profile Inspector - opens an ICC profiles and makes the contents readable
    Profile Dump - an example utility built using SampleICC that reads profiles and checks them for conformance
    In each you'll see the complete version number. In one of those two you have to switch thefile type to .icm or .icc. The other shows both.

  • Aperture and dual monitor ICC profile problem

    I am using an Epson Stylus Pro 3800 and run Aperture 2.1 from a MBP with a Cinema Display 23". I calibrated both displays (the 23" and the MBP display) with my ancient but working ColorVision Spyder, using OptiCal 3.7. I calibrated for a gamma of 2.2. and native white point. I check the results with various test images.
    Here is the problem: the calibration produces a perfectly calibrated display, but when I open Aperture some color change is taking place, as if Aperture pulls in a wrong profile for the display (which then also leads to wrong colors in the prints): sometimes the photo which I have printed out before in perfect quality displays with either a nasty yellow cast or with totally oversaturated colors. I have used ColorSync utility to make the 23" the default display and I have also tried to simply close the MBP to work only with the 23", and sometimes either of these this did the trick. Most of the times, however, I get these color casts or oversaturation of the photos which I had worked on for a while and printed earlier with perfection.
    I ran Disk Utility to Repair Disk Permissions (many Epson-related permissions were wrong, for example "Library/Printers/EPSON/InkjetPrinter/Libraries/UtilityCore.framework/Versions/ A/Resources/Icon8007.png", should be -rw-rw-r-- , they are -rwxrwxr-x ) and reinstalled the latest Epson driver for 10.5 repeatedly.
    Even more surprising, at times the color of the full screen image can be off at the same time the thumbnail looks perfect! How is this possible? It seems as if thumbnail and full image use different display profiles. In addition, if I export the Master and display it in Lightroom or CS2 it looks perfectly fine and prints as expected. (I use the appropriate "canned" ICC profiles for the printer-paper combination).
    The most surprising happens, however, when I drag the image from the 23" to the MBP: when the image is about half-way between the two displays (that is, one part is displayed on the 23", the other on the MBP scree) it suddenly changes from off-color or oversaturated to the correct color on the 23". If I then move the image up to the 23" again, the wrong display colors appear again.
    I am at a loss: I have spent a lot of money on the gorgeous screen, the great printer, and Aperture (which is a great program), but I cannot get Aperture to print reliably, or rather, I cannot get Aperture to use the right display profile to display the image correctly in a reliable way.
    I have read kbeat's color management blog and many entries on this blog here, but I have not found a solution. I appreciate your help.

    Kai,Simon,
    This is the problem i have been having.Colour profiling is correct,prints are rubbish.I run a fuji frontier
    as well as epson printers.Anything from aperture is not what you see on screen.I am running aperture2.1.
    Today we are removing 2.1 and doing a reinstall of 1.1 but not upgrading to 2 to test run prints.I have been looking for answers to this for sometime.
    Simon,the problems we are have are very similar to you clients,photoshop fine,aperture not.I also have 20"external apple monitor attached which is used as the colour correcting monitor ( as the imac screen is not that good for criticl work ) I will post my findings here.
    Simon, if you wish to investigate further,e-mail me,i am in leeds
    daisy ( not a happy printer )

  • Please, please, please make ICC profile info available for RGB files.

    I know, I know, I know - if everything's working properly one should never care what the icc profile is that's being used to interpret the colors in a file. And good people shouldn't get killed by falling tree branches... but stuff happens, and sometimes icc profiles are not handled properly and colors are off because the wrong profile is being used or is absent and assumed to be sRGB when that is not correct.
    Photographers care about color and nothing is more important than the ICC profile when it comes to properly displaying colors.
    I'd also like to see the ability to assign an ICC profile, swap an ICC profile, and convert to specified ICC profile. But I'd be happy enough just to have the icc profile name displayed - I could take it from there...
    PS - I'd like to see this feature removed in ten years (I'm an optimist) after all image handling software handles icc profiles correctly, until then... (please).
    Thanks in advance,
    Rob

    Never mind - I just realized this information is available via ExifMeta (plugin) - I retract the request for personal purposes.
    Still, it might be worth consideration for people who don't use ExifMeta.
    Rob

  • Icc profile locations inconsistent and confusing

    I apologize in advance for this long winded post, but I really would like some help, if anyone is willing to indulge me. Ive done some searching on the forum, and got some info, but I feel Im still missing something.
    My issue is with printer/paper profiles, and which to use to optimize print/monitor matching. A bit of background. I have not bothered until this morning to set up my Epson 2200 printer on my Mac Pro computer. Today, I finally did so. Im running an 8 core Mac Pro, 4 GB memory, and Lightroom Rev 1.1. I downloaded the latest Intel Mac printer driver from the Epson site, and installed the driver. In addition, I downloaded the paper profile for Epson Premium Luster paper for the Mac from the Epson site (I was surprised to note that the download was not just .icc profiles, but instead, a program that installed the profiles (though the program did not say where the profiles were going, or what the profiles were called).
    Next, I followed the directions for printing in Lightroom that Scott Kelby included in Chapter 8, pages 272-277 and 290-295 of his The Adobe Photoshop Lightroom Book. I was able to find 3 profiles for Premium Luster Paper when I followed step 4 on page 291 of the book, when I used the other option for Profile under the Color Management pane. The profiles were called, exactly, SP2200 Prem.Luster 1440.icc, SP2200 Prem.Luster 2880.icc, and SP2200 Premium Luster PK, and I was able to select all 3 of them by clicking the checkboxes in front of the profiles and now they show up as selections for printing. Thus far, I have experimented with the 1440 and PK profiles, and printed images using both perceptual and relative rendering intents, and Ive found, to my poor eyes at least, using the PK profile, with perceptual rendering intent, yields the best printer/monitor match (yes, my Eizo ColorEdge CE240W monitor has been recently calibrated using Monaco Optix, in case you were wondering), not great, but marginally acceptable. So far, so good. Now, here are my issues:
    I am trying to understand where the 3 profiles came from, since Im now paranoid about losing them, since I think Im headed in the right direction, at least. When I do a Spotlight search on my Mac, I have been able to find the SP2200 Prem.Luster 1440.icc and SP2200 Prem.Luster 2880.icc profiles under the Macintosh HD 1/Library/Colorsync/Profiles directory. However, the PK profile is not found by Spotlight. Instead, I seem to have located the PK profile by using the Colorsync utility, doing a repair profile, and then looking at profiles. The PK profile appears to reside under the directory Macintosh HD 1/Library/Printers/EPSON/InkjetPrinter/ICCProfiles/, however, it doesnt exist as a separate .icc profile, instead, it appears to reside inside a file called SP2200.profiles, which does not seem to be openable.
    So here are the questions:
    1. Which of these profiles were put into place when I installed the printer driver, and which were created when I downloaded and ran the paper profile for Epson Premium Luster paper program?
    2. Is there a way for me to extract the SP2200 Premium Luster PK from that SP2200.profiles file and put it in the same location as the other 2 .icc files, or should I not care? Im particularly afraid of losing this profile, since its the one that is working best for me at the moment.
    Thanks for any thoughts on this.

    Ans to Q1 - Macintosh HD 1/Library/Printers/EPSON/InkjetPrinter/ICCProfiles/ contains installed with driver and Macintosh HD 1/Library/Colorsync/Profiles were installed by the download.
    Ans to Q2 - Epson put them inside the "package" to keep them safe. You can access the package contents via the Ctrl+click or right+click context menu item labelled "Show package contents" (see attached screenshot), but I would
    strongly urge you not to remove them from the package. You really don't need to care where they are because they're in the safest place. It's when folk try to get smart that the system bites them.

  • Remove color profile from an image

    How to remove color profile from an image is it possible through any script?
    Manual Try - Don't Color Manage this Document: option is used to instruct Photoshop to remove an existing embedded profile but when I save the file, close and open it I still see a color profile in the embedded image.

    On the mac you could have sips do this (it may depend on the file type). You would loose the files creator if Photoshop was its last editor though.

  • Distiller ICC Profile (Acrobate 9 Pro)

    Hi all--
    I've been getting an error from Acrobat Distiller (Acrobate distiller cannot find it's standard ICC profiles.  Please reinstall Acrobate to Correct this issue.) 
    So... I uninstalled and reinstalled Adobe Acrobate Pro and rebooted.  The error no longer showed.  Then I did the first update which appeared to be an update to the updater.  The error did not return.. 
    I then did my second series of updates that took me back to version 9.5.2 and guess what..... the ICC Profiles error returned.  Is there a solution to this.  How is it that an update can remove or distort the standard ICC Profile. 
    Any HELP WOULD BE APPRECIATED because this error seems to slow down my system and it's getting annoying.  Thanks

    Adobe Tech support was most helpful on this.  First download the updated
    Distiller ICC profile files at:
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4075&fileID= 3790
    Unzip the file and copy only the *.icc files (without regard to the subfolders that they are in - in other words, take the files out of each of the subfolders) to the followng folder in Windows 7:
    c:\windows\system32\spool\drivers\color
    These new files will probably overwrite some old ones.
    This solved the problem for me.
    This is actually the best solution though I found that instead of copying all the .icc files to the windows\sys...  folder, all you need to do is copy the 3 Video files from the RGB folder (VideoHD.icc, VideoNTSC.icc, and VideoPAL.icc).  Once you add these three files to  c:\windows\system32\spool\drivers\color  you will be good to go.
    It seems that this was an error on the part of Adobe in that there is no reason to include Video files for printing.  Nevertheless, the distiller will look for these and return the ICC profile error message if those files are not present.

  • ICC profiles jpeg in SWF

    Hi,
    Is it possible to embed an ICC profiled (CMYK/RGB) jpeg image in the SWF file? From which flash player version is it supported?
    Are there any API's in action script 3.0 to help creating the same?
    Thanks
    Rahul

    Chris,
    Thanks for the input. In CS5, my soft proofing settings would typically
    mirror my printer profiles. I would be able to load my profiles from the
    print area in CS5 simply by placing them in the colorsync folder in my mac.
    The files to be printed are an RGB file to be sent to an RGB printer (epson
    9880). The issue is my paper profiles are not loading in the print dialoge.
    Im curious to know if CS6 is calling on this folder or if the profiles need
    to be loaded somewhere else.

  • Managing ICC profiles in Photoshop

    I mistakenly added the wrong profiles to Photoshop CS2 (I downloaded both the MAC and PC versions of the ICC profiles I needed for my Epson 2200 on my MAC). Now, when I go to choose a profile, there are a number of different ones and I can't tell which are the incorrect ones.
    Is there any tool to manage ICC profiles so I can remove the wrong profiles? Maybe a list of the names and what they are? The names are very similar.
    Thanks.

    See if this helps:
    http://www.johnrellis.com/psedbtool/photoshopelements-6-7-faq.htm#_The_list_of

  • Combine icc profile + correction curve

    For a monthly magazine on uncoated paper, our workflow is as follows:
    - convert every photo to uncoated cmyk (PSO Uncoated) + apply some corrections to look nice in this profile
    - apply a fixed correction curve to the photo's
    - (resize images + apply proper sharpening for print)
    - export pdf: convert colors to destination, preserve numbers
    The correction curve step is critical. Without it, everything is printed much too dark.
    Unfortunately our printer can't provide us with a correct profile for the paper that is used. That's why the correction curve in photoshop is needed.
    The profile + the correction curve give a good, predictable result.
    However i don't like the workflow with the correction curve, because only photoshop links can be corrected.
    We would also like to put a digital version of the magazine online, so i have to replace all links if i won't to have them displayed correctly.
    So my question: can i somehow combine the icc profile with the correction curve into a new icc profile? Is it possible?
    I did some research and found about "Custom CMYK" in photoshop (see screenshot), but i think an existing profile (PSO Uncoated) can't be edited or replicated in this dialog box...
    All help appreciated!

    Hi John
    I really appreciate the help, but i was affraid to get such answers with basic lessons in color management.
    I'm familiar with color management, print-screen differences etc.
    The new workflow i have in mind:
    - 1 document with RGB images (color corrected, but not converted to the destination profile)
    - convert all images to destination profile at pdf export (being my "special" icc profile for print, and sRGB for the web)
    This would be much more flexible, save me some time and wouldn't need the hassle of using scripts and different versions.
    (I'm aware this is not a perfect workflow, and perhaps better quality can be achieved with using different versions for print and web, but for this particular project i would prefer it for the flexibility and speed)
    So, is it possible make a custom icc profile using an existing one combined with a correction curve? In photoshop, or perhaps with 3rd party software?

  • How to convert sRGB images to CMYK retaining icc profiles?

    I was given the follwoing info. but not sure it answers fully - it still doesn't resolve the problem of converting to CMYK with the icc profile. I think this might be an option if the profile is loaded into the colour setting (colour settings under edit menu as oposed to convert to profile and its convert to profile I have been trying to action. Am I missing something straightforward?
    thanks!
    you can do batch process in Photoshop
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7427a.h tml
    -There is a fast and easy method to batch convert many RGB photographs to CMYK files by using Photoshop
    -Please open an image, then open the Action Tab (Window > Actions)
    -Please click 'Create new action' button, name the action in the text field and click the 'Record' button.
    -Now it is recording, so select 'Image > Mode > CMYK Color', then hit the 'Stop' button in the Action Tab.
    -The action is now created ready for the next step.
    -To batch convert a folder of images, just select 'File > Automate > Batch' and the following window opens.
    -Choose the 'Convert RGB to CMYK' action from the drop-down list, choose the source folder where your images are stored, then choose a destination folder where Photoshop will save the converted images.
    -Click the 'OK' button and the batch process will start. How fast will depend on the number of images that need converting.
    -The action you created will be stored, so you only need to perform a new batch process the next time you need to convert a batch of images.

    I think we may need a little more information to fully address your question or issue.  sRGB and CMYK are two very different color spaces, and converting from one to the other requires significant shifts in color.  Are you refering to a specific input or output icc profile?

  • Get ICC Profile name of image in INDD

    Hi,
    How I can get the Profile name associated to a RGB/CMYK image in InDesign?
    The properties profile of image return Embedded instaed of name of ICC profile (Example Adobe RGB (1998)).
    From link palette this info is available...
    Stefano

    Hi,
    I found the solution using the power of Sips:
    try
        set pathImmagine to "Snow Leopard:Users:stefano:Desktop:roman16_06_yellow.tif"
         set profileName to do shell script "sips -g profile " & quoted form of (POSIX path of pathImmagine) & " | fgrep profile | sed  's/  profile: //g'"
    on error msg number errnum
        set profileName to "ND"
    end try
    Very fast even with big images.
    But like Adobe as added the intelligent new Parent page property, this property must be added in InDesign
    Stefano Cappello

Maybe you are looking for