Illustrator Scripting :: How To Check Resolution Of The Image
Jun 26, 2012How to check the raster image resolution in illustrator through script?
View 15 RepliesHow to check the raster image resolution in illustrator through script?
View 15 RepliesI'm writing a Javascript to run at startup. I want to check for the existence of XML files and process them, if they are available. How can I check for their existence?
View 6 Replies View RelatedSyntax to check pantone color
eg (list.fillColor=="[CMYKColor]")
like that how to find pantone color and how to get the name of the pantone used
I'd like to create a script that checks the current document's color profile and checks it against a string, for example "sRGB IEC61966-2.1". My studio has a script that performs various functions to make sure that all the layers are visible/unlocked, checks for stray points, etc., and we'd like to add a check to the color profile because we handle a large number of files and this setting is overlooked a lot.
Â
It's alright if this value isn't writable through script (we can just pop up an alert letting the user know that they need to change it), but I can't find where to actually read this setting! We're currently working on Macs and with JavaScript, but any nudge in the right direction.
how would I go about to check if a textframe with specific content exists in a document and if it does then procede with a function?
Â
if ("word" exists) { make a new layer}
Â
I just need it to check if one instance of the word exist
When I save the file as EPS , I want to enable all the options in EPS Options Pallet. I have enabled all options except setting high resolution in Transparency option.Â
View 2 Replies View RelatedHow do I check to see if jpg images have been saved at a resolution of 300 dpi?
What if my original jpg image resolution is less than 300 dpi and I require 300 dpi; Is it possible to resave them to a smaller image size and in doing so increase the dpi?
What if a jpg image says it is ‘.jpg @ 25%RGB’ and I am supposed to save the files in CMYK; What is this ‘Mode’ setting and can it be changed through resaving the jpg somehow, or is it changed to CMYK when you open it in Photoshop and choose CMYK in the'Rasterize Generic PDF Format' window?
I am using XP and Photoshop 7.
How do i check the final dimension of image or vector graphics when it is clipping masked in illustrator. If I check in transform it is showing the size including the clipping mask.. I just want to check final trim size of the image.....
View 7 Replies View Relatedi want to check all the photo resolution within a file, before sending to print, is there a way to check them all in one time?
View 4 Replies View RelatedThis might be more of an Acrobat question, but is there an easy way to check the resolution of an image that was done in Illustrator and is now sent to you as a PDF?
View 5 Replies View RelatedI want to create a 11x17 document and place images in it. What is a good resolution to have these images saved at? 200? 300?
View 2 Replies View RelatedOn creating images in bitmap mode using illustrator into eps format and convert the eps file into pdf using acrobat distiller.
Â
On pdf file its showing two objects in the content panel with one object present in low resolution other one same as its original.
Â
It will not happen in direct pdf from illustrator
Â
It will not happen in grayscale mode.
I placed a .psd image in Illustrator CS5 at 100% at 600ppi. My link information is telling me that it is at 600ppi. But when I do a 90degree rotation, my link information is now telling me that I have a picture resolution of 859ppi x 420ppi. Why is that? From what I know and learned, a resolution doesn't change except when we change the scaling of an image but not rotating it.
Â
This made me wonder because when we receive files from customer with embed images, how can I know that this image wasn't rotated and that the link informations panel is giving me the right numbers?
Any tips on how to extract an embedded bitmap at its original pre-embedded resolution from an AI file?
View 8 Replies View RelatedI'm having extreme trouble creating a high-res 3d wrapped image. Here [URL] .... is the image.Â
Â
You can see that the 3d rendering is only a few points, all smooth curves. My raster effects settings are high (CMYK 300PPI). The symbol image that I've wrapped is a 300PPI JPG file created from Photoshop, saved as a JPG, then placed and embedded in AI. Yet that text is atrocious. You can even clearly see the poor anti-aliasing colors that are going on. Several letters are not able to be read at all.
Â
I've tried rasterizing the object using high res settings, anti-alias on and off. I've tried copy/pasting as a smart object into Photoshop. I've tried almost everything I can think of and I can't get this text to appear crisp on the bottle. It's a simple bottle, only 4 or so points and there are only 3 possible surfaces to map. I deliberately drew it that way to reduce any drag on the system. I'm on a 2009 iMac running Mountain Lion and 16GB RAM, i5.
Â
This issue has plagued me honestly for months and I always end up doing a significant amount of retouching in Photoshop because of it. I'd like to create a crisp 3d wrap in AI if possible to hasten my workflow.
Â
Maybe the answer is that AI isn't really suited and I need to look into a more dedicated 3d program.
I am trying to fill my text with a texture or image.
Heres my process:
I type my text, select it and click on the "draw inside" button.
I then go to place and select my image.
The image comes tiny with dimensions of x- 430mm and y-340mm.
Obviously when i stretch it out to cover the text, the image becomes blurry. Whats happening here?
I'm creating a dialog window for an Illustrator script, and would like to include a logo image.
Â
The image file is 'mm_logo.png', and it lies in the same directory as the script itself. Here's the relevant fragment:
Â
var dlg = new Window('dialog', '',[200,200,600,400]);// logodlg.logo = dlg.add("image", {x:25,y:0,width:139,height:67},undefined,'mm_logo.png');Â
Sadly the image fails to appear when I run the script (although the dialog itself and items such as panel lines and buttons do appear).
Â
The documentation suggests I may need to supply the 'current' property of the 'Folder' class.
I realize the nature of my question maybe asking the impossible, but I have a low res image I downloaded from the internet, placed in an InDesign page, blew it up and printed it out. I was going for the distressed look that it has, it looks ok when I print it out considering it's low res and I blew it up fairly large. However, it's a little too pixelated to look professional when printed. Are they any tricks or things I can do to make it look higher res for print. I've attached the image as well as a screenshot of the InDesign file so you can see it in context.
View 4 Replies View RelatedI created an action to change the width of an image. I execute the action using DoScript javascript method.
Â
The first action Obj1 will select the whole image and second action Obj2 will open the transform panel and change the width of the image.
Â
app.Open("D:LWW_Castoff45991_09_03.eps")Â Â Â Â Â Â Â
app.DoScript("Obj1", "LWW")Â Â Â Â Â Â Â
While (app.ActionIsRunning)Â Â Â Â Â Â Â Â Â Â Â
Thread.Sleep(500)Â Â Â Â Â Â Â
[Code]...
In the above code, the second action 'Obj2' is not getting executed. Both the actions are getting executed individually. Let me know the problem and how to execute both the actions.
I have a document with several artboards. In each artboard is a different linked image. Is there a way to add the linked filename to the bottom of each artboard?
View 10 Replies View RelatedI am a Photoshop newbie and I have a series of graphics (all 72dpi from a website) that I would like to print in 300dpi. Is it possible to take a 72dpi .jpeg or .gif file and easily convert it to a higher resolution printable graphic? If Photoshop can't do it, is there any type of program that can?
View 1 Replies View RelatedIn Illustrator CS5+, I'm looping through the objects in a document, exporting each of them to an image using exportArtBoardasImage(). They need to be trimmed afterwards, as they generally have a tonne of whitespace. Normally, I run an ImageMagick shell script (mogrify -trim). It'd be awesome if I could reproduce this functionality from within illustrator. I've seen people handle this by copy-and-pasting each object into a new file, sizing the artboard to that object, exporting, then closing the file. I'd rather not do this, as it's *way* too slow.Â
View 3 Replies View RelatedI require to convert RGB image to Graycale or CMYK through script.
View 2 Replies View Relatedi am trying to create an Action in CS3 but some of my actions are not been recorded.
Â
What i want to do is run the Batch option on a folder with a 1,000 PDFs in it. The PDFs (which were created in Illustrator CS3) consist of a single page with a single embedded image at the foot of the page. I am trying to update that embedded image. The Actions i am trying to record are...
1) Select the single image in the Links palette.
2) Choose the "Relink.." option in the drop down menu of the Links palette.
3) Navigate to the new image and select "Place".
4) Save and close document.
But the first two actions are not been recorded.
From trying this manually the new image seems to take on the horizontal and vertical scaling of the previous image which is what i want. But if i am going to have to do a script then that is a factor that may have to be incorporated into the script.
I've written a script to allow you to select an image to replace any number of selected files. Each file starts out as an embeded image with a .note to determine where the basis of alignment for the new file should be (i.e. "top," "bottom," "left," "right"). You'll find the code below:
Â
#target illustrator
Â
if (app.documents.length > 0) {
   var docRef=app.activeDocument;
   var docSelection = docRef.selection;
   // ** Get new file
  Â
[Code]...
Â
For some reason, the ".note" added at the end of the script gets erased once the script is complete. I can even get it to confirm that it applied the note to the image, but once it's complete, it's gone.Â
Is there a way with JavaScript to place an image with a calculated path and file name? I have 30+ artboards per document, each artboard named by product number. The actual file name of the master AI file is also already established (meaning every document I use this new script on will have already been saved).
Â
Here's the scenario I'm hoping to create in the context of the documents mentioned above:
Run a script to "Place" a linked image based on the following calculated path:
Â
["S:SAPCurrent Images in SAPStock Schools"] + [current ai filename minus the .ai extension]+[a hyphen like this "-"]+[currently selected artboard name]+[".jpg"]
Â
This image link can be placed on a new top layer called "Images" or if necessary on the currently selected layer. Dimensions of the placed image should be a pre-determined size 8"x8".
Â
Error if the ai document has not been saved yet.
Running a script to open up files and convert to another type. When it gets to a TIFF type file a dialog window titled 'TIFF Import Options' is opening. This windows has an Options column that contains two radio selections for 'Convert Layers to Objects' and 'Flatten Layers to a Single Image'. How would I open the file with the 'flatten layers to a single image' set?
View 1 Replies View RelatedI'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work. Here is my Script, mostly copied from the example script provided with Illustrator (CS5). And, this works manually, using the file names in the script, via Load Variable Library
Â
   Set appRef = CreateObject(strIllistratorVersion)
  Â
      'Open the file and import the datasets
       Set docRef = appRef.Open(strTemplate & "200-500.ai")
       'docRef.Datasets.RemoveAll
       docRef.Variables("Yearbook").Delete
Â
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
      Â
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai | XML file:" & strXMLFolder & "" & objFile.Name & "^')"
       If (appRef.Documents.Count > 0) Then
           Set docRef = appRef.Documents(1)
 [Code]....
Â
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
Â
It's simply not loading. What do I need to do to get it to load?
Can you access graph data through the scripting DOM?
View 3 Replies View RelatedWhy do i get the message "The operation cannot complete because of an unknown error. [CANT]" when i try to spell check in Illustrator CS6?
View 1 Replies View RelatedSo I am making digital color prints at 24x30. the photography work is about color fields and gradients, so I need super high res files. I have set the size to 24000x30000 pix at 1000 dpi..now my problem, when i go to save the gimp file as a jpeg i get this error message "JPEG image plug-in could not save image"
View 3 Replies View Related