Illustrator CS5 javascript JPEG export 300 DPI & max quality

I new to Illustrator CS5 scripting (javascript) and I'm trying to export an .eps to .jpg.  With image quality 8 and DPI 300.
I've seen several post asking about this (only a few with answers).  Those answer aren't working for me though.
I also found this post saying that it can't be done (http://forums.adobe.com/message/1103680) but it's pretty old.
When I run the script I have it saves with a DPI of 96 which is higher than the minimum mentioned in the post above.
Thanks very much.  A snippet from my script is below...
var targetFile = new File(fullFileName);
if(!targetFile.exists) {
var type = ExportType.JPEG;
var saveOptions = new ExportOptionsJPEG();
saveOptions.qualitySetting = 80;
saveOptions.horizontalScale = (300/72) * 100;
saveOptions.verticalScale = (300/72) * 100;
saveOptions.antiAliasing = false;
saveOptions.optimization = false;
app.activeDocument.exportFile(targetFile, type, saveOptions);

You'll have to reduce the size of the resulting image file to achieve resolution you want. I just did something similar and the file was as expected 416.67% larger than the original. When reduced to 24% of the size, the resolution is 300 ppi.

Similar Messages

  • Converting jpeg to 300 dpi

    I have to convert an jpeg to 300 dpi to send to an company to print my pictures. please help me out.

    Welcome to the Apple Discussions. It all depends on the print size what the dpi will be. First crop the picture to the size that's to be printed. Say an 8x10. That will require a pixel dimension of 2400 x 3000 pixels.
    Read The Myth of DPI to get an understanding of the relationship between print size and print resolution (dpi).
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: iPhoto 8's new option in the library rebuild pane, "Rebuild the iPhoto Library Database from automatic backup" may make this tip obsolete. We'll know when users have occasion to use it and see if that's the case.

  • Why am I getting an error when trying to export a jpeg at 300 dpi?

    I am trying to export a 18" x 24" illustrator file to a jpg at RGB 72dpi and CMYK 300 dpi.  72, no problem but when I try to export at 300 I get an error message. Any ideas why this is happening?

    Not so much a RAM problem as it may be a scratch disk problem.  Illustrator may be looking for 1.) a place to put the file, and 2.) enough scratch space to accomplish the op.  Try opening the .ai file using Photoshop using the size 18 x 24 @ 300 ppi in the Open dialog.  That will rasterize the file ( not sure why you'd want to ).

  • Greyscale jpegs at 300 dpi

    Hi -
    I have just changed from using Photoshop CS3 on a PC to CS5 on a Mac.  Most of my work is deisgn in Quark Xpress 7 -- using Photoshop as my image editor.
    I have tried doing some work today on a greyscale newsletter design.  I started this work on my old PC and am completing it on my new Mac.  The photos I had already edited and saved as jpegs in CS3 on the PC show up fine in Quark at 300 dpi, but the photos I have edited today in CS5, converting to greyscale and cropping to 300 ppi will only show up in Quark as 72dpi.  If I convert them to CMYK Quark will recognise them as 300dpi.If I save them as PSD files in grey they will show up as 300dpi, just not as jpegs (which I'd prefer) and bizarely when saved as TIFFs are recognised as 260dpi!
    At first I thought this was a Quark problem, but it doesn't look that way as the greyscale images from CS3 are working fine.
    Is there some setting in CS5 about the way jpegs are written in greyscale that I am missing?
    Any help gratefully received.
    Thanks,
    Greg Smith

    Marian Driscoll schrieb:
    It is fairly equal with 2002's InDesign 2.0 in regard to PSD and PDF support.
    InDesign has extended it's PSD, PDF/PDP an AI support since then. 9 years! We live in 2011!
    Do you know InDesign? Quark cannot export PDFs with live transparency up to today. This was possible since InDesign 2.0.
    Same color management capabilites? None of them?
    Layer Compss from Photoshop?
    Direct support of AI files? (AI files contain a full pdf if compatible to pdf seaved.)
    Fully supported RGB workflows as InDesign does?
    Or do you really compare Quark's typography to InDesign's? Nested styles? Inline styles? GREP styles? Language tagged to the character, not to the paragraph or like Quark does to the whole document? Language based apostrophes?
    Are you sure you want to compare? I am aware on Quark and I am aware that PDFs created from Quark are not the same as PDFs exported from InDesign. I have both applications on my computer. Do guess with which application I create only my stuff? InDesign, because I know both applications.
    And if you want to compare Quark 9 to InDesign, then you should not tocompare it to version 2.0 which is now 9 years old, you should compare it to a future version of InDesign which will be available at that time. No one knows which functionality this InDesign version will have because no one knows when Quark 9 will be available. And neither no one knows what Quark 9 will can. Even if it would be announced now, Quark never fulfilled it's promises in the past to any future version.
    Quark has never been able to solve problems in the past. Outside of the US is Quark way too expensive. (Sure InDesign costs much more here in Germany too.) Quark single version costs about 1.340,– Euro, InDesign 1.010,– EUR inclusive tax, or 1.126,– versus 849,– exclusive Tax (1.500 USD without tax versus 1.135,– USD). Quark has become much cheaper since InDesign hit the market here. But if you buy an Quark update you cannot be sure that the delivered serial will work. With the previous version it took me 4 months to get a working serial. Everyday phone to Quarks support. Expensive phone numbers outside Europe, because they are in Switzerland. (CH is not part of the European Union.) Virtually no one here in Germany buys Quark to create new art with it. It was only bought to use old files newer computers or because some partners deliver files which have to be opened. Have you ever tried to contact Quark's support? Maybe that you get one on the phone, but you will never get help.

  • Export 300 dpi file from multiple apps, but it is received at 72 dpi

    Hi,
    I need HELP please.
    I am creating a print job that needs to be output at 300 dpi. I have created the file in Photoshop, Illustrator, and InDesign. Each time I set the file up as a 300 dpi file. I create the art, then I output. I have output both as an app original file (.psd, .ai, etc.) and as a .jpg and as a High Quality (Print) .pdf. But, when each of them is opened by another computer, the dpi is identified as 72 dpi. When they send the file back to me and I open it on my computer, it is identified as a 300 dpi.
    Initially I had this problem with PS and I thought it was a PS problem. I worked with the folks at Adobe and they can't find a solution. Then, in desparation I had to get the file done, so I re-created everything in AI and had the same problem. Then in ID and had the same problem. (BTW - I'm using CS5.5). So, now I think that it's a Mac problem, not an Adobe problem.
    Any ideas?
    anita
    PS - I use a 17" Mac Book Pro 2.2 GHz Intel Core i7; OS X 10.6.8 with an Apple Cinema Display 30" set to display at 1600 X 1200 (so I can read it as I'm not 19 any more)
    Thanks for any help anyone can provide. I'm pulling my hair out trying to figure this out!!!

    Let me see if I am understanding this correctly, you create a PSD file at 300dpi, then you save this and reopen on your computer and it is still 300dpi, then you send this file as a psd to your client, and they open it and tell you that it is only 72dpi, then they send the same file back to you and it is at 300dpi on your computer again.
    Are you sending the file via email, cd or flash drive?
    Is the file sent in its raw psd state or is it being compressed with .zip, or .sit or anything like that?
    Could you send me the file so I can confirm if the file is indeed 72dpi.
    Otherwise this sounds like almost impossible behaviour to me.

  • Illustrator CS5 Javascript export with Use Artboards?

    Hi
    Is there any way to code the export of png files with the Use Artboards option in Javascripting?
    Thanks
    J

    Hi,
    Have you try this (no tested on CS5), and i didn't test the result, if there are objects outer artboard.
    art.chrome

  • Why jpeg file exported from Aperture with 300 dpi's it opens with 72 dpi's on PS ( image size)? I've tried several combinations and all give different results. And I am confused on what is the best workflow for me.

    Ok.
    My workflow is
    RAW > Aperture Library > export jpeg high resolution 300 dpi's > one file on PS > edit > Save us jpeg. The I realised that files from PS were being save in a smaller size from the ones exported form Aperture. That is when I went o see <image size> on PS and files were with 72.
    Since ten I've trying different things
    1. Aperture > export as PSD > open on PS > edit > Save us jpeg = small file (around 15 MB)
    2. Aperture > export as jpeg high resolution 300 dpi's > open on PS > CHANGE dpi's to 300 on <image size> edit > Save us jpeg = big file (Huge, actually)
    What am I doing wrong? Would someone give me guidance and tell me what is the best workflow, considering I edit photos to deliver to my clients and I shall give them 300 dpi's.
    Thank you

    This is a known Aperture issue: Problem with Aperture 3.6 preset exports. | Apple Support Communities
    Benjamin

  • Exporting Jpegs from Lightroom - DPI question

    When I export Jpegs from Lightroom, I set the dpi to 300 pixels per inch. I do not specify a max width or height. When I view these files in Adobe Bridge (CS2 or CS3) the file info says 300dpi. However, when I open the files in Photoshop and select image size, It says 72dpi and has the document size set to very large. I realize that I can enter 300 dpi and uncheck the resample box, I am just confused as to why this is happening.
    My concern is, that I upload my images directly to my lab after exporting from Lightroom. Will this cause problems?
    Thanks in advance!
    David

    the image resolution is a combination of the two parameters you mention: size and dpi. a very large size at 72 dpi is equivalent to a small size (like 3x5) at very high dpi. for printing you want at least 240 dpi at the largest size that allows you to keep that resolution. for screen presentations or your web site you want jut 72 dpi. 72 dpi and 2x3 inches will require a very small file size.
    I suggest you to export images at TIFF and not JPEG as that will allow you to preserve the image quality when doing editing in PS.
    In my case I export TIFF for PS (when I need PS editing) and 72 dpi JPEG for my web site (that way if somebody downloads my image illegally thy get a poor resolution copy). But since LR works very well for me 90% of the images re just kept in raw mode and I print from LR.

  • Sending hi res (300 dpi) jpegs from Lightroom 4

    I am taking a course on making Christmas decorations.  Have been asked to send my images @ 3" x 3", 300 dpi, medium jpeg.  We have spent 2 days back and forth with this and I have not been able to complete the Export panel correctly.  Can anyone help.  Thanks.

    WallStShari wrote:
    I had cropped my image to 3 x 3 first.
    Unless you want square pictures, crop to whatever dimensions are most pleasing, e.g. 4000x3000 (i.e. as big as possible preserving the portion of image you want), cropped dimension bears no relationship to print resolution (which is what the dpi value is referring to, or should be).
    If you truly want square pictures, then crop to 4000x4000 or 3000x3000 or 2000x2000 etc. in other words: crop determines aspect ratio (overall retangular shape: square, wide, tall, ...).
    Now that you've got them cropped correctly (or maybe they didn't need to be cropped at all - do you really want exactly square pictures?), you need to export them how she wants them, which, assuming she's using the correct terminology (or should I say terminology consistent with Lightroom's export dialog box), then export them at 900 pixels per side, max, and set (print) resolution to 300 pixels per inch.
    That should do it.
    If that doesn't do it, then you need to get more specific instructions from her.
    Example settings:
    Note: (print) Resolution merely sets a metadata item in the file, it (otherwise) has no effect whatsoever on exported image.
    WallStShari wrote:
    She said it only came to her at 240 pixels square.
    An image exported with the above settings will come to her at 900 pixels on a side (square if cropped square, or rectangular with 900 pixels on long edge, if not cropped square). Just make sure you've not cropped it down to fewer pixels than 900 on a side, or you'll be losing quality, since it'll have to be enlarged to meet requirements. Greater than 900 pixels per side is OK, since Lr can shrink files without such quality loss.
    Regarding Jpeg quality: 90 is very high, 80 is high, 60-70 is medium, 50 or below is (relatively) "low" - roughly and subject to opinion.
    Rob

  • Save PDF to Folder as Jpeg/300 dpi

    Question about exporting custom book design into Jpegs/300 dpi. I do it, it seems to be working and then once it stops I can't find the file with the jpegs of the book design. Not sure if it's saving and if it is where it's saving to? I went into automator (which I know nothing about) and when I run the 'save PDF to folder as jpeg" action, I get an error message. Help! Thanks in advance!

    Installing Aperture again will not affect your library, so there is no risk doing that.
    Regards
    Paul K

  • If exporting images for backup, to reimport into a clean aperture or other program, is it best to use 72 dpi or 300 dpi, or does it matter?

    If exporting images for backup, to reimport into a clean aperture or other program, is it better to use 72 dpi or 300 dpi, or does it matter?  I want the best quality for any future unforeseen use. 

    I am somewhat reluctant to answer your questions after Frank Caggiano's excellent advice, but I really do not like to leave the question open, for there will be many occasions when you will need to export images and to understand how it works.
    But please, follow Frank's advice, right now you do not need to worry about pixels and dpi. That is exactly what I meant, when I suggested to you to make sure you keep a copy of your Aperture Library and to back it up with all your other data, before you erase your disk for a clean reinstall.
    DPI revisited:
    So, is the dpi setting only for exporting to print?
    The dpi settings are necessary to define the size of a digital image, since pixels don't have any dimensions. And since you cannot print or display an image without knowing its width and height, you will need to specify dpi when you are printing or scanning.
    If I leave it at the default 72dpi will there be any problems getting quality prints in the future from jpeg versions exported with that setting?
    Not if you export with the original size - the maximum number of pixels available. That will ensure the maximum print quality.
    The dpi settings are required to export versions; versions are derived from the masters and new image files are computed. When you export masters you get a copy of the original file that already may have a dpi setting.
    If I choose "export masters", will aperture will export my masters just as they are? 
    yes, and  you may add IPICT data if you choose
    Pardon my thick skull--I'm an old dog trying to learn new tricks in this digital world!
    No apologies necessary, we were all beginners once
    Here is another example, maybe that helps a little:
    I exported an image (jpeg) with three different setting: export masters, a version with 72dpi, a version with 300dpi and inspected the files in Graphic Converter:
    The master was exported like this:
    Notice, the master had already dpi settings, although I did not specify any on export.
    The size is 51,48 cm x 38,61 cm.
    The 72 dpi Version has larger dimensions, but also 10 Megapixels.
    and here the 300 dpi version: smaller dimensions, same amount of pixels.

  • Why did I get 72 dpi solutions in AI CS5 instead of 300 dpi in Photoshop CS5!

    Dear all!
    I have done my file in Photoshop with 300 dpi. I have finished it and then saved it as EPS because I would like to open it in my AI CS5.
    So I go to File>Open the EPS File in AI CS5. I get it with 72 dpi file in AI CS5 when I check the resolution in Effect>Documents Raster Effects Settings. Why did I get 72 dpi file in AI CS5 instead of the original file which is really 300 dpi in Photoshop?
    Will it change the quality if I change from 72 dpi to 300 dpi as I wish to in the Documents Raster Effects Settings?
    Please help to explain in details if possible.
    Thanks a lot and best wishes.
    I am looking forward to hearing from you.
    My best regards,
    LUCK

    Luck,
    To see the use the raster image in its right size along with other objects, scale it (down) to match. To go from 72 to 300 PPI you need a factor of 0.24 (proportionally), you may use multiplication by 0.24 in the Transform panel or Object>Transform>Scale with 24% .
    It means I must change resolutions in Document Raster Effects Settings if I have effects raster effects created within Illustrator. Is it right?
    If (and only) if you wish to have the effects at the same resolution as (one of) the raster image(s). This will depend of the actual effect, but for many effects, yes (you will have to choose one resolution if the document contains more than one).
    Illy always sees raster images at 72 PPI, unless she is told otherwise.

  • Processing images as 300 dpi jpegs, comes out at 72 dpi.

    I've seen two other posts with the same problem with no answer, so I thought I try as well. I am using Ap 2.1. I've processed the images in both the preset jpeg original size with the edit to 300 dpi. I've also made a custom preset with 300 dpi jpegs. Both times the images open in PS at 72 dpi. I processed them as tiffs at 300 dpi and they open in PS at 300 dpi just fine.
    I've tripled checked the file-export-versions-JPEG original size-edit-300dpi.
    any ideas what's up?

    J,
    I am repeating a post I made in another topic about this issue -- I would appreciate your thoughts:
    I conducted a test that may or may not tell us something, but: I had a project with an imported photo scanned at 600 dpi and saved as a .psd at the time of the scan, before importing into Aperture. If I export that photo as a .psd, then PS will open it with a dpi of 72, but GC will open it with a dpi of 600. However, if I export that photo as a .tif, then both PS and GC open and report it to be 72 dpi?
    I am not sure, but I think this is an indictment of Aperture?
    Please tell me about the possible impact at any printers you use, since if the print size is specified, and not pixels have been lost, the image will print as you intend? I have some reports this has been seen with iPhoto, but ultimately not an issue, but I have not research with any printers.
    Ernie

  • Save 300 dpi jpegs

    I have a tiff file of a painting I scanned at 300 dpi. It's original image size when I open it is photoshop is 57.8 MB, 18" W by 12.477" H, Res 300. I need to resize it and send it as a 300 dpi jpeg. I have started in the image size dialogue box and just change the W to 11.25. That automatically changes the H to 7.798 and the res still says 300. The file size reduces to 22.6 MB. I click ok and then go to save as and choose jpeg. In the jpeg box I chose 12 Max and baseline standard and click ok. The saved file is reduced to 8.5 MB. When I open it in photoshop, it opens at 300 dpi when I look in the image size box. However, when I send it to someone else and they open it, the file is only 72 dpi. What am I missing to get the file to save at 11.25 inches, jpeg, but remain 300 dpi?
    Thank you.
    Sheilaartist

    I have a tiff file of a painting I scanned at 300 dpi. It's original image size when I open it is photoshop is 57.8 MB, 18" W by 12.477" H, Res 300.
    That means you image is 18x300=5400px wide and 12.477x300=3743px high  widthxheight=numbed of pixel 3 bytes per pixel for 8bit color 5400x3743x3=60,636,600 which is close to Photoshop 57.8MB estimate or the Tiff file is 57,8MB.
    I need to resize it and send it as a 300 dpi jpeg.
    Then all you have to do is resize the open document and save a jpeg file.
    I have started in the image size dialogue box and just change the W to 11.25. That automatically changes the H to 7.798 and the res still says 300.
    That means you also have RESAMPLE and Constrain checked in the Image Size dialog bottom control section and some interpolation method is set. Photoshop will reduce the number of pixels you have for the image. When you click on OK Photoshop will generate a new image that is  11.25x300=3375px wide and 7.798x300=2339px high
    The file size reduces to 22.6 MB.
    The file is not changed when you use Image Size.  The Tiff file remains as it was before it was opened. Photoshop is a document editor not a file editor.
    I click ok and then go to save as and choose jpeg.
    When you use "Save as" and use the pull-down menu and select Jpeg you will be saving a new file and not be over writing the tiff file.
    In the jpeg box I chose 12 Max
    That is a quality setting the higher the number (Max 12) the better the file quality will be the file will be less compressed then when lower quality setting are used.  You would be hard pressed to see any image quality difference between quality 10 file and quality 12 file.  The quality 10 file size will be quite a bit smaller then a quality 12 jpeg file.
    and baseline standard and click ok. The saved file is reduced to 8.5 MB.
    The new jpeg file size is a product of the jpeg quality setting and how well the image data compresses.  Size can vary all over the place.  Images with lots of fine details will be larger then images with little detail.  An image of a white wall will compress much smaller the an image with the same number of pixels that has a lot of details like an image of a cross word puzzle.
    When I open it in photoshop, it opens at 300 dpi when I look in the image size box.
    Correct you did not change the resolution when you resampled the image.
    However, when I send it to someone else and they open it, the file is only 72 dpi. What am I missing to get the file to save at 11.25 inches, jpeg, but remain 300 dpi?
    If when they open the file the receive they see an  image that has a 72dpi resolution. It means either what you used to send the file resized the the image and sent a different file or what was used to receive the file resized the image and saved a different file. Or the image was resized by the image processor the user used to open the file either during open or after it was opened.  For example if the user received the file you saved and sent 3375px wide and 2339px high and 300DPI and opened it in Photoshop and Photoshop is set to open Jpeg images through ARC the users ACR default workflow setting could be set to open image at 72DPI.  An image dpi is a setting the image may still be 3375px wide and 2339px high however set to 72 DPI the print size would be 3375px/72=46.875"  wide and 2339px/72=32.486" high  using Image size changing itr 72dpi print resolution to 300dpi with RESAMPLE NOT CHECK would return it size to 11.25" x 7.798" at 300DPI.

  • Exporting rather large image in Illustrator CS5...

    Lets just say I wanted to export an image from Illustrator CS5
    What I want would be 3000px², with 300ppi, and level 7 detail, jpeg. (I would work with PNG ussually, but that's a whole nother issue)
    My computer specs
    i7, quad core
    3.2 GHz
    8gb ram
    RAID 0 HDDs
    So when I try to export the image, it tells me that I have insufficient memory. I can produce 150ppi just fine but dammit, if I can't do 300ppi with my build, what computer can? (I do, however, understand that 3000px² is rather large)
    Thanks for you time

    Do I understand you correctly, your document is 3000x3000 pixels in dimension, that is the size of your artboard or bounding box of the art?
    A nd you are exporting it as jpeg at 300ppi?  Then what is the color mode of the document, RGB or CMYK?

Maybe you are looking for

  • How to print a PDF with multimedia content?

    I have a 127 page PDF with flash files and other multimedia embedded. How do  go about printing this to a laser printer?

  • Funny bug in pl sql code

    Hi, I have written a code to upload data from csv file to oracle table. it gives me a funny error. I have given below the sample contents of .csv file "4951","TCSPL (TRADING A/C)","470","TISCO",20050419,"P",362.6550,212,0.00 "4951","TCSPL (TRADING A/

  • Backup failed after upgrade

    I just upgrade the database from 9i to 10.2.0.4. After the upgrade, the backup failed with the following error. What's wrong and how to fix? Thanks! CBRP:/opt/app/oracle:>rman target / catalog xx/xx@cdbp Recovery Manager: Release 10.2.0.4.0 - Product

  • I am not able to install Google Toolbar to Firfox 5.0 version

    I am not able to install Google Toolbar to Firfox 5.0 version. error showing that "Google toolbar is not compatible with Firfox 5.0 version", also i am not able to change my home page from speedbit.com to yahoo or any other sites. after applying chan

  • OWB wont import new FKs from Designer

    After importing a model from Designer and validating I found a couple of tables with FK constraints that had been defined with no columns. No problem there, went back into Designer and fixed them up. Now though, for those tables, OWB will not acknowl