Change Export Raster Resolution?

Hello,
I am trying to use JavaScript to export layers to PNG... I have a working script, that is basically the same as the example in the Adobe Illustrator CS5 JavaScript Reference:
function exportFileToPNG24 (dest) {
     if ( app.documents.length > 0 ) {
          var exportOptions = new ExportOptionsPNG24();
          var type = ExportType.PNG24;
          var fileSpec = new File(dest);
          exportOptions.antiAliasing = false;
          exportOptions.transparency = false;
          exportOptions.saveAsHTML = true;
          app.activeDocument.exportFile( fileSpec, type, exportOptions );
However, this will only export the document to 72ppi, and I don't see anywhere in ExportOptionsPNG24 to change this.
If you use Illustrator's UI, instead of scripting, and select File > Export... You get the option to select Screen (72ppi), Medium (150ppi), High (300ppi) or Other.
I found the DocumentRasterResolution constant in the reference, but I can't figure out how to change, or even access the constant?
I assume if I could reset the constant like:
DocumentRasterResolution = 3;
then the above script would export the file to a PNG @ 300 ppi?

It appears as though the DocumentRasterResolution constant is only referenced by the DocumentPreset object.
The DocumentPreset object appears to be used when you attempt to create a document with script:
app.documents.addDocument( DocumentPreset );
So, I suppose in theory I could recreate the document entirely with script and then reset the preset raster resolution:
DocumentPreset.rasterResolution = DocumentRasterResolution;
Buuuuuut, screw that.
Scaling it is... apparently.

Similar Messages

  • Can't change export settings

    Hi again,
    just fixed crash problem in Blue-Ray loading timeline (thanks Ann), I've another problem.
    I cannot change export setting.
    The window let me choose my best solution (example: PAL, 1440x1080, 25fps, high quality.........), click OK, but, if I come back to check, everything is as I've found at the beginning (1280x720, 50fps, ........) as default setting.
    Same "behaviour" if I try to change H264 or mpeg2DVD default setting.
    I'm only allowed to modify the format (mpeg2 Blue-ray, mpeg2 DVD or H264 Blue-Ray), nothing more.
    Encore, as well as P.P. and A.E., is set to run in admin mode.
    Minnetonka suggested me to do so, when I had problems in registering my SurCode plug-in.
    Win7 64bit, 8 Gb Corsair Ram, Intel Quad CPU Q9650 3,0 GHz
    Thanks for the help.
    Giorgio

    Please,
    just to know if I'm the one who has this problem, so I can try another sw or O.S.installation.
    I'll try to explain better than I did:
    - I have a main video file edited with Premiere 1440x1080 PAL 25fps dolby audio  (high quality setting) plus two short video files edited with After Effects,   same resolution (of course .wav audio file) as video for menus.
    -Open a new project in Encore giving the right settings (same resolution 1440x1080).
    -Opening in file window, "default quality preset" a standard 1280x720 50fps preset appears.
    -I change it in 1440x1080, PAL, 25fps, high quality and click OK and exit.
    -If I came back to this window for checking: ahi ahi ahi nothing is changed and I find the previous preset 1280x720 etc, etc,.
    Thanks indeed

  • Lightroom to Revel Export: image resolution

    Anyone know how to change the upload resolution into Revel from Lightroom? It currently is 240dpi I need 300dpi. I can change it when I upload/export into my hard drive but no option into Revel.

    Is it not as simple as changing the resolution in the export settings? e.g.
    I don't use Revel, so please forgive if my reply reveals my ignorance...

  • How to change external display resolution WITHOUT clicking "CONFIRM"?

    I have a somewhat unusual situation. My MacBook laptop is actually now a ModBook (a pen-tablet computer), and as such I no longer have a trackpad attached to it. All of my inputs are via the stylus, tapping directly on the built-in display.
    This works perfectly fine, except when I need to give presentations on an LCD projector (which is quite often lately). I like to use the projector as an external monitor, so that I can run the Keynote presentation on it while using my laptop screen as the presenter's display, with the upcoming slide, etc. If the projector doesn't give me an ideal native display option (sometimes, the aspect ratio for the  3 or 4 resolutions available in the Displays drop-down in the menubar turn out to be stretched or squeezed), then I, naturally, have to open the Display System Preferences and try out different resolutions.
    The problem is, since my stylus only interacts by clicking directly on the built-in-display, I have no way of moving the cursor over to the external display when the dialog box with the "Click here to confirm change/You have 15 seconds..." message appears. So I can never click it ... so I can never confirm the new settings.
    The workarounds I've used so far are:
    - Mirror displays (not ideal, as I need the presenter preview of the next slide)
    - borrow a mouse from someone (usually from a Windows desktop, frankly) and plug that in to briefly mouse over and click the confirm button
    I'd love to find a software workaround that allows me to NOT mirror displays and also doesn't require me to carry around a mouse all the time (my laptop bag is already overstuffed...).
    Thanks.

    Fateh wrote:
    I hope that my question is clear ... Nope.
    How to change the display resolution of APEX ??APEX doesn't have a display resolution. "Display resolution" is an attribute of the device and user agent software used to view the APEX page.
    What do you mean by "the display resolution of APEX"?
    In other word, if an end user sees large elements on a pageWhat "large elements"?
    then he/she zooms it outHow?
    "Zooms" what—the entire page or a single "large element"?
    How can I set a proper ZOOM for my app by default ...Meaning what?
    And as usual, we're missing:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    You've been posting here for years. You know this basic information is necessary to understand and reproduce problems.
    If you're looking for help it doesn't seem unreasonable that you make the effort to provide a full, clear but concise description of the problem or requirement.

  • Is there a way to change the true resolution rather than scaling?

    Hi,
    I have searched through just about every single forum, website and search engine there is and haven't found anything. Perhaps I am phrasing my question wrong. I currently own a Macbook Pro 13.3'' Retina (Of Mid-2014 since I just bought it?) and I can't figure out how to change the resolution. The OS seems to default to 2560x1600 no matter what I set it to because I think all its changing is the scaling. Is there a way to do this? I used to own a Macbook Air 13.3'' which ran 1440x900 and I know that it was pixelated. On the same size display here...when I run the claimed "1440x900" its still ultra sharp which means its using scaling I assume. Any ideas how do I change the actual resolution, not just the scaling. The OSX settings currently seem to be just the equivalent of modifying the DPI like you can in Windows. I want to find out if there is a way to change the actual output resolution.

    The MacBook Pro like all laptops has an LCD screen. Like all LCD screens the screen has a single physical resolution, in the case of your MacBook Pro Retina 13.3" it is 2560x1600 pixels. This is the number is dots the screen is physically made of.
    In the old days when desktop computers used CRT (Cathode Ray Tube) displays which looked like TVs these sort of displays could display multiple resolutions in fact CRTs have no single fixed physical resolution. However LCDs which use totally different technology do only have a single 'real' resolution.
    If your really interested in how a CRT can do different resolutions then the answer is that a CRT uses an electron beam to excite the phosphor display on the front of the display (to make it glow), it scans from left to right, moves down a line and then does the next line, and so on till it reaches the bottom and then goes back to the top. The speed (rate) at which it does this is known as the horizontal frequency and the vertical (refresh) frequency or rate. If the horizontal line is drawn specific time and that is divided in to 640 units, then it can be told to turn off and on 640 times per line, if the same line is drawn in the same time but the interval is divided in to 1024 then it can 'draw' 1024 horizontal pixels instead of 640 horizontal pixels. In actuality the display has no physical pixel you are merely lighting up small or larger areas on the screen and hence a CRT has no single fixed resolution.
    In order for a computer using an LCD display to use a different apparent resolution it has to 'scale' the image to a different size, as a very simple example if we wanted to scale down to 1280x800 pixels which is exactly half 2560x1600 then the computer would use 2x2 (four) physical pixels to represent a single scaled pixel. Often however the chosen scaled resolution may not be an exact multiple like that example. Apple on the Retina display have provided some suggested scaled resolutions which work reasonably well these being 1680 by 1050, 1440 by 900, and 1024 by 640 pixels.
    None of these will look as good as 2560x1600 because the screen physically is made up of 2560x1600 dots and no amount of cheating will change that.

  • I am unable to play a downloaded HD movie from iTunes. SD movies play OK. An error popped up saying something about the display not suitable for HD movies but now all I get is a blank window. I have tried changing the display resolution to no avail.

    I have sownloaded an HD movie from iTunes store and when I attempted to play it on my Windows 7 PC a error message popped up saying something about the display not being compatible for HD movies. I have tried changing the display resolution several times but it didn't help. Now it just comes up with a blank screen when I attempt to play it. SD movies work fine. I have the latest version of iTunes installed.
    Can anyone help me resolve this problem?

    Apparently the display is required to be HDCP compatible to view HD movies in iTunes. My display isn't so this is my problem. I contacted Apple support and they have agreed to credit me for the HD movie and I have now downloaded the SD version.

  • How do I change the image resolution of a photo?

    Hi..,
         I am the beginner in Photoshop.
         I want to change one image resolution from 72 dpi to 300 dpi.
         So, I search and got one pdf for change the resolution of the image. In that they mention, take the "Printscreen" of the image and paste in the photoshop and change the mode(Index - flatten) and change resolution via the "Image -> image size -> Resolution".
         Like that i did, it changed correctly.
         After that I Open one already saved image file in Photoshop and do that same steps but the resolution was not changed.
    So, now how to change that saved image resolution to 300 dpi...??
    Regards.,
    VISWA

    Viswa,
    To find the current resolution of your image, follow these steps:
    With your image open in Photoshop, Image > Image Size (Like you've already done earlier).
    Check the resolution as shown above. If it doesn't show 300, enter 300, hit OK and 'Save' your image.
    Open the file and check again. If it still shows 72, post back with more details of the type of file you're trying to open in Photoshop and if possible, a screenshot so we can help.
    -ST

  • I just bought a new PC and I have re-installed my Adobe Creative Suite Standard on it. Software open fine. PROBLEM: The toolbars (menu stuff) appear extra-small, too small for me to read... I sent on the PC setting to try to change the display resolution.

    I just bought a new PC and I have re-installed my Adobe Creative Suite Standard on it.
    Software open fine. PROBLEM: The toolbars (menu stuff) appear extra-small, too small for me to read...
    I went into the PC settings and tried to change the display resolution. This changes the size of all  the icons (not only Adobe) but it does not solve the problem when I open an Adobe application (Photoshop or Illustrator)... The PC is run under Windows 8.1 and my display resolution is 3200x1800 (but again, when I change the settings for a smaller resolution, only the size of the icons is affected. Once I open the software, the problem is still there, extra-small toolbars...). Help!!!

    Anything before CC is not high-DPI compatible. Feel free to continue to experiment with your system settings.
    Mylenium

  • How do I change the printer resolution?

    How do I change the printer resolution on my OSX 10.6.2 laptop?
    I have an ubuntu print server and it seems to only work at all using the gutenprint drivers. On my ubuntu client I had to change the print resolution from "auto" to 600x600 to make it work just fine.
    The best I can do is make the Mac print pages squished down to 1/4 size. I don't see the same resolution option on the Mac.
    Mac OSX 10.6.2
    Ubuntu Server 9.10
    Printer: Canon S900
    Cups driver: Canon S800 Gutenprint v5.2.3
    Cups version 1.4.2 on the mac
    Cups version 1.3.9 on Ubuntu Server
    Macbook Pro Mac OS X (10.6.2)

    I can't speak for the printer directly, but most functions to change resolution are in the dropdown menu at the bottom of the print dialog. It has a gray bar running through it separating the basic functions from the advanced settings.
    If you don't see that, but do see a blue button with a black triangle pointing down, click on that. Then you'll be able to set the advanced settings.
    Once you set up the printer the way you like, save it as a preset. If you want that as a default, see this [MacOSXHint|http://www.macosxhints.com/article.php?story=20100125135830153].

  • Is there any way to change the screen resolution in Front Row?

    Hi all,
    I've got a Mac Mini plugged in to my TV, and I want to be able to change the screen resolution depending on the content I'm watching (as some content is in 4:3 aspect ratio, some is in 16:9, and I'd prefer to have the picture filling the screen completely). Unfortunately, the TV doesn't have a "stretch" mode for making an 4:3 picture fit a 16:9 aspect ratio. If I know what I want to watch in advance, I can set the resolution accordingly using system prefs on the mac, but if I'm just sitting back choosing what to watch with the Apple Remote, it's annoying to have to leave front row, walk over to the computer and change resolution once I've decided what to watch, open system prefs, change resolution, re-launch Front Row and find what I wanted to watch again.
    So I was wondering if anyone had figured a way to allow the screen resolution to be switched from within the FrontRow UI. I've seen that people have written python based plug-ins such as PyeTV and Understudy that allow different types of content to be added to FrontRow, but I've not found any utility plug-ins such as what I'm looking for on the net (nor could I find SDK documentation on this API in the stuff that comes with XCode).
    I guess the other approach might be quick keys: has anyone had any success hooking up quick keys macros alongside front row in response to apple remote events? (seems too few events to be able to choose from, but I've never tried it, so I won't assume!) Or how about is there a way to trigger an AppleScript from within Front Row? And, of course, I'm very open to any other ideas you might have!
    Thanks very much in advance for any ideas on this.
    Andy
    Message was edited by: Andy__D

    Safe Boot from the HD, (holding Shift key down at bootup), set a good rez there.

  • How to change the screen resolution

    Dear All,
    Could someone please help and tell me how I can change the screen resolution (i.e. the dimensions of the monitor) in Solaris 10 using CDE?
    Regards and thanks a lot for your reply

    This site has some instructions on how to do this: http://solaris-x86.org/documents/tutorials/cde.mhtml

  • I updated to iTunes 11 on my Windows PC. Since the update, when I open iTunes its window is too large for my screen. Resizing is a pain, because I have to change my screen resolution. And when I restart iTunes,it has reverted back to being too large.Help!

    I recently updated to iTunes 11 on my Windows PC. Since the update, each time I open iTunes its window is too large for my screen. Resizing it is a pain, because I have to change my screen resolution. And then when I restart iTunes, it has reverted back to being too large. Please help!

    Having the same issue here....a quick fix is to just minimize the window, and immediately maximize it.  It will now fit the screen.  Trouble is, after you close it, you'll have to do it again when you re-start itunes.  The good news is it takes all of about 2 seconds.  Apple should fix this.  Should.

  • [SOLVED] I want to change my tty resolution

    Just that, I want to change my console resolution (NOT the font size) cause it doesn't use my whole screen.
    I've reading about KMS and i know there's incomplete documentation. I understand this
    https://wiki.archlinux.org/index.php/KMS wrote:
    The format is: video=<conn>:<xres>x<yres>[M][R][-<bpp>][@<refresh>][i][m][eDd]
    <conn>: Connector, e.g. DVI-I-1, see your kernel log.
    But where in my kernel i can see which connector. I'm using a laptop and would like to use a resolution 1680x800@60
    Any idea on how to know this or how to solve my issue?
    Thanks in advance
    Last edited by dgarcia (2011-05-22 19:37:36)

    If you are using an open-source driver(e.g. nouveau) you should have a good tty resolution out of the box, if not, you can do this (i use this for my tty resolution):
    pacman -S v86d
    And then edit /etc/modprobe.d/uvesafb.conf
    nano /etc/modprobe.f/uvesafb.conf
    In the line that says "mode_option" set your resolution, e.g.
    options uvesafb mode_option=1280x800-32 scroll=ywrap
    Edit /etc/mkinitcpio.conf
    nano /etc/mkinitcpio.conf
    and add "v86d" to the hooks array after udev hook,e.g.
    HOOKS="base udev v86d ..."
    Finally rebuild the kernel image:
    mkinitcpio -p kernel26
    That's all...this is the preferred method for the framebuffer.
    More information here:
    https://wiki.archlinux.org/index.php/Uvesafb

  • How is this even possible? Opening DW changes desktop screen resolution

    All of a sudden, whenever I open DW (from taskbar or start
    menu) it manages to change my screen resolution from high to very
    low (like from 1280x800 to 600x800). No other app causes this. Once
    DW is open I can then change the screen res, but reinstalling
    hasn't solved the problem and I can't figure out how or why this is
    happening.
    Thanks.

    I've been posting here since DW2, and I have never seen your
    problem posted
    once. I can't imagine what might be causing this, but I'd
    take a hard look
    at your other apps running in the background.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "egrolman" <[email protected]> wrote in
    message
    news:gnq4mi$t7h$[email protected]..
    > All of a sudden, whenever I open DW (from taskbar or
    start menu) it
    > manages to
    > change my screen resolution from high to very low (like
    from 1280x800 to
    > 600x800). No other app causes this. Once DW is open I
    can then change the
    > screen res, but reinstalling hasn't solved the problem
    and I can't figure
    > out
    > how or why this is happening.
    > Thanks.
    >

  • Change the video resolution when capturing a WEB-cameras

    Language: Java
    It is used in addition: JMF
    When capturing video from WEB-cameras with JMF - getting the video is at the lowest resolution.
    Can you please tell how to change the video resolution?
    The code by which the captured image (no SWING-forms):
    MediaLocator getWebCam = new MediaLocator("vfw://0");
    private Player player;
    Timer timer = new Timer(40, this);
    public BufferedImage grabFrameImage() {
    Image image = null;
    FrameGrabbingControl frameGrabbingControl = null;
    if (player != null)
    frameGrabbingControl = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
    Buffer buffer = frameGrabbingControl.grabFrame();
    if (buffer != null)
    image = new BufferToImage((VideoFormat) buffer.getFormat()).createImage(buffer);
    if (image != null)
    return (BufferedImage) image;
    return null;
    public WorkWithWebCam() throws NoDataSourceException, IOException, NoPlayerException {
    initComponents();
    player = Manager.createPlayer(Manager.createDataSource(getWebCam));
    player.start();
    private void jButton1ActionPerformed(ActionEvent e) {
    timer.start();
    public static void main(String args[]) {
    EventQueue.invokeLater(new Runnable() {
    public void run() {
    try{
    new WorkWithWebCam().setVisible(true);
    }catch(Exception ex){}
    public void actionPerformed(ActionEvent e) {
    panelMain.getGraphics().drawImage(this.grabFrameImage(), 0, 0, 400, 300, null);
    P.S. Can you please tell how this forum can be identified code \ listing?

    Hello,
    I don't know if there is a way to change the video. But I think you can easily use your own videos by using a local .mpg or .3gp file via InputStream. Just change the player's parameters in video/mpg instead of capture://video.
    Hope it helps...
    Torsten

Maybe you are looking for

  • Manual reconfigue EA2700

    Sorry, if this is a dumb question... After a rare power outage, my EA2700 will not connect to the Internet. I can connect to the router but not the Internet. My desktop computer is wired to the router and nolonger can reach the Internet either. Once

  • 100% height table with bg image

    I need to have a table that is centred and fills 100% height only in the browser. In it will be a background image. Can anyone tell me how to do this? I need to do it as soon as possible as the client has just changed their mind after I completed the

  • Cannot import new ios 7 filters to aperture 3.5

    Hi! I have checked the forum for solutions but with no success. I have imported about 500 photos from my iPhone 5 using a USB-cable to my Aperture App. Then I upgraded to ver. 3.5.1. (I was at 3.4. something), because I realized that only the new ver

  • "iTunes could not sync contacts to the iPod because the iPod disconnected"

    OK, I have an MBP (10.6.4), iTunes 10.0.1, iPod touch 4.1, and an odd contacts sync problem. When I try to sync all my contacts from address book I get "iTunes could not sync contacts to the iPod because the iPod disconnected". If I only sync some su

  • Issue with the template

    How to insert a table in the rtf template that already has a table..when I try to insert the table its showing to the left of the report when I view the output. I want it to display the table exactly where I placed it