How to control resolution of exported jpeg

I know I can control the resolution of an exported jpeg through the UI with the Export JPEG dialog box. I'm wondering how to access that setting with the object model. When I export to a jpeg with my script, it seems to use whatever resolution setting was last selected through the UI. I would like my script to explicitly say what resolution to use.
Thanks!

Hi Mathew,
Please check the below JS code. I am not use the UI just Prompt to get the input value of resolution.
var myPrompt = prompt ("Enter the Value Resolution Value", '300')
var myFold = Folder("~/Desktop");
var myFile = new File(myFold +"/"+"csmphil.jpg");
SaveAsJPEG(myFile);
function SaveAsJPEG(myFile){
    try{
        app.jpegExportPreferences.exportResolution = parseInt(myPrompt);
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.MAXIMUM;
        app.jpegExportPreferences.jpegRenderingStyle = JPEGOptionsFormat.BASELINE_ENCODING;
        app.selection[0].exportFile(ExportFormat.JPG, myFile);
        }catch(e){};
thx,
csm_phil

Similar Messages

  • How to control actions printing,export in discoverer viewer for user

    Hi
    we use discoverer viewer .I want to control Printing,export,send email options
    for user for a worksheet.Hoe to do this. thru Enterprise Manager apps server control , i tried to change the settings , but i guess thats for all the users and all the workbooks.
    how do i set this for user??
    rgds

    Hi
    Yes, the settings you can apply are global and will affect all users. You cannot restrict these by user. Sorry.
    Best wishes
    Michael

  • How to keep Metadata on exported JPEGS?

    I've being editing pictures in Lightroom for a while, but I have not being paying attention to the metadata issue until now. I need the metadata for Geotagging my pictures, but the problem I encounter is that after I edit them in Lightroom and export them as JPEGs none of the info that comes in the RAW files gets exported with them (like date and time pictures were taken, camera and lenses settings, etc).
    These are the catalog settings I'm using:
    When I try to sync my JPEG pictures with any GPS files they only detect the time and date the pictures where edited or modified and not the actual time and date the pictures were taken.
    Can anyone tell me what I'm doing wrong?
    Any help will be appreciated.

    Thanks Bjorn, it was so simple. I just exported my last hiking trip and was able to show the GPS metadata in Everytrail.com.
    Thank you again!!

  • How to both resize AND export to PNG at specific resolution?

    I am trying to export a PAIR of vector files as PNG-24's, one at 72 ppi and the second at 150 ppi, Illustrator CC.
    I also want both exported files to have a different SIZE that their existing (and of course, completely arbitrary) vector dimensions.
    If I use Save for Web in Illustrator CC, I can indeed change the size, BUT I can't specify a resolution!
    On the other hand if I try to do a File > Export, I can easily specify the resolution as 150 ppi, BUT I can't change the size!
    If I go 'way back to my Illustrator CS4 version, there was a toolbar display of the selected object's  (or group's) physical dimensions - see the attached image - but I can't seem to find it in the CC version of Illustrator.
    As Retina resolution images have been around for several years, it would be helpful to be able to have complete control over how vector images created in Illustrator could be output at 150 ppi AND with the ability to specify the physical size. And, being able to write an action to export the pair of different resolution images would be even better.
    Am I missing the obvious here? For the time being, I am back to my old machine with Illustrator CS4 just to export Retina-friendly images...

    This is not the issue - pixels are pixels, you're right. It is a question, rather, of how awkward it is to export the different sized files from Illustrator.
    Here's the problem. Supposed I have a vector file that has nominal dimensions of 385px  x 91px on the artboard - can't even SEE that info anymore, as I noted. (I'm sure there's a toggle somewhere for that, but I can't seem to find it...)
    I want to export this as a PNG at a smaller size, say at 62% = 239px × 57px. OK, just click and it's done, Save for Web, 62%.
    Now, I need to export it at twice that physical size for the Retina version. If I didn't write down my first PNG's EXPORTED dimensions, (and I work on a LOT of these files...), when I go back to Save for Web, I have to manually remember to double the first file's EXPORTED dimensions, i.e., 239px × 57px = 124% to get my larger file of 478px × 114px.
    On the other hand, if I go to File > Export, Illustrator lets me create larger files, but won't let me change the dimensions of the original file to begin with. It just makes no sense to me. If I could reset the vector's nominal size FIRST, it would be much simpler. One Save for Web, then one Export at Medium Res.

  • Exporting jpegs-- why do I get 72ppi when i set resolution at 240ppi ?

    Why does Lightroom export jpegs at 72ppi resolution-- when I clearly set it at 240ppi in the export window? It has done this for versions 1.0-1.2.
    For exporting psd or tiff-- everything works as planned. Anyone have a solution?
    Thanks.

    Do not click on the minimize metadata checkbox. The resolution is meaningless anyway, but if you want the field uncheck that box.

  • In Lightroom 4, is it possible to change the resolution when exporting to Facebook?

    Is it possible to change the resolution when exporting a photo to Facebook using either the regular plugin or Jeffrey Friedl's plugin?  I can't seem to do it; I only have control over the image dimensions, not the resolution and the dimensions, as you can see in the screen shots below:
    I have control over both when I export to my hard drive (or a flash drive, etc.), as you can see below:
    I can't find the option to control the resolution when I try to export to Facebook.  Before I got Lightroom 4, I would create whole new low-resolution files of images I wanted to post online using Photoshop.  The image size settings I would use are a longest edge of 10 inches at 72ppi, and I would like to continue doing this.  If I can only set the longest side to 720 pixels (I can't even seem to set the longest edge to an inches value - I can only choose a pixels value) and not change the resolution from 300ppi to 72ppi, then my photos' longest edge will only be less than 3 inches long (right?).  Thus, I really want to be able to upload low-resolution photos to Facebook via Lightroom with the ability to change both the resolution and the image dimensions.  Any idea how to do it without having to export to my hard drive first?  Thanks!

    Rob Cole wrote:
    I'd be inclined to set it to zero so it obviously doesn't mean anything
    You can set it to whatever you like, and it makes no difference. Most of the time (depending on how you saved it), it will still open as "72".
    When you save an image for web, the resolution is usually stripped from the file. It's simply not there anymore. That's probably what happens in the Lr facebook module, and that's why there's no entry for it.
    But when you open that image somewhere else, that default of 72 ppi is assigned. Most apps need to know what to do with a file if asked to print it out. So there is a default, and that's usually 72, mostly by convention. With that default ppi, it prints out at a comparable size to what you see on screen at 1:1 display.
    And when people see that, they think "hey, web images are 72 ppi". But they're not - that figure is just inserted there by the opening application.

  • Issue exporting JPEGs

    Hi there,
    I'm having some major issues exporting JPEGs from inDesign. Where I've been successful before on another copy (a workmate's) my newly purchased copy of inDesign CS5.5 is being troublesome.
    What I want to do is select a series of images in a small area, some of which are on top of one another, and export them as they appear onscreen.
    Admittedly I could do a screengrab to do this but they won't necessarily be in the resolution I'd like and more annoyingly I would have to remove all the surrounding images and bits of text to create a clean image. This is far too time-consuming for a task I need to repeat.
    Every time I attempt to export (via File>Export then "Selection") the resulting file has the overlaid images (in this case small labels on a map) incorrectly placed, not even on top of the main image itself and in fact thrown off massively in seemingly random directions.
    Anybody any ideas as to how to resolve this?
    Thanks

    @ Peter, thanks for the help but I don't understand what you mean by 7.5.2. My InDesign is 5.5.
    There's the slight prolem that the image in question is copyright and currently unreleased. I've edited it to show what the problem is though.
    The two circles on the right should be overlaid on top of the image to the left, as I say, they're keys to the map. I'm trying to work out how they've moved so far away and made the resulting JPG so wide. The upper circle should also be on top of the lower one.

  • Aperture Exporting JPEG's from RAW: file size and quality questions?

    Hey Everyone,
    So, I'm using Aperture 2 and I've got some questions about exporting from RAW to JPEG. I shoot with a Nikon D70 so original RAW files are 5-6mb in size. After doing some basic post processing when I export the pics at "full size" with picture quality of 11 out of 12 then the resulting JPEG is about half the file size of the original RAW file. For example a 5.6mb RAW becomes a 2.6mb JPEG. The resolution in pixels per inch and and the overall image size remain unchanged. Have I lost picture quality due to the exporting JPEG being smaller in file size?
    My friend who works with me prefers to edit in Photoshop and when he follows the same workflow his saved JPEG from the identical RAW file in Photoshop is minimally smaller in file size, say 5.6mb to 5.3mb. He's telling me that my Aperture edited photos are losing quality and resolution.
    Is he right, are my pics of lesser quality due to being a smaller file size? I've always been told that the quality of a picture is not in the mbs, but the pixel density.
    I've bee told that Aperture has a better compression engine and that the resulting files are of the exact same quality because the PPI and image size are the same. Is that what explains the much smaller file sizes in Aperture?
    I tried changing the picture quality in the export menu to 12 out of 12, but the resulting JPEG then becomes larger than the original RAW at over 7mbs.
    Can someone please help me understand this better? I don't want to lose picture quality if that is indeed what is happening.
    Thanks in advance for your help.

    mscriv wrote:
    So, I'm using Aperture 2 and I've got some questions about exporting from RAW to JPEG. I shoot with a Nikon D70 so original RAW files are 5-6mb in size. After doing some basic post processing when I export the pics at "full size" with picture quality of 11 out of 12 then the resulting JPEG is about half the file size of the original RAW file. For example a 5.6mb RAW becomes a 2.6mb JPEG. The resolution in pixels per inch and and the overall image size remain unchanged. Have I lost picture quality due to the exporting JPEG being smaller in file size?
    JPEG is a "lossy" file compression algorithm. Whether Aperture or PS, *every time a JPEG is saved some loss occurs*, albeit minimal at the 11 or 12 level of save, huge losses at low save levels. Some images (sky, straight diagonal lines, etc.) are more vulnerable to showing visible jpeg artifacts.
    My friend who works with me prefers to edit in Photoshop and when he follows the same workflow his saved JPEG from the identical RAW file in Photoshop is minimally smaller in file size, say 5.6mb to 5.3mb. He's telling me that my Aperture edited photos are losing quality and resolution.
    *Both of you are losing image data when you save to jpeg.* IMO the differences between the apps is probably just how the apps work rather than actually losing significantly more data. The real image data loss is in using JPEG at all!
    Is he right, are my pics of lesser quality due to being a smaller file size?
    I doubt it.
    I've always been told that the quality of a picture is not in the mbs, but the pixel density.
    The issue here is not how many pixels (because you are not varying that) but how much data each pixel contains. In this case once you avoid lossy JPEG the quality mostly has to do with different RAW conversion algorithms. Apple and Adobe both guess what Nikon is up to with the proprietary RAW NEF files and the results are different from ACR to Apple to Nikon. For my D2x pix I like Nikon's conversions the best (but Nikon software is hard to use), Aperture second and Adobe ACR (what Photoshop/Bridge uses) third. I 98% use Aperture.
    I tried changing the picture quality in the export menu to 12 out of 12, but the resulting JPEG then becomes larger than the original RAW at over 7mbs. Can someone please help me understand this better? I don't want to lose picture quality if that is indeed what is happening.
    JPEG is a useful format but lossy. Only use it as a _last step_ when you must save files size for some reason and are willing to accept the by-definition loss of image data to obtain smaller files (such as for web work or other on-screen viewing). Otherwise (especially for printing) save as TIFF or PSD which are non-lossy file types, but larger.
    As to the Aperture vs. ACR argument, RAW-convert the same original both ways, save as TIFF and see if your eyes/brain significantly prefer one over the other. Nikon, Canon etc. keep proprietary original image capture data algorithms secret and each individual camera's RAW conversion is different.
    HTH
    -Allen

  • Table control resolution

    Hi all,
    how to clear the problem of table control resolution.
    bye.

    Hi Pavan,
    Check this code :-
    data: lws_cnt type char2,
    lws_field type char15.
    LOOP AT i_invoicing_plan INTO wa_invoicing_plan.
    lws_cnt = sy-tabix.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = lws_cnt
    IMPORTING
    output = lws_cnt .
    CONCATENATE 'FPLT-AFDAT(' lws_cnt ')' INTO lws_field.
    CONCATENATE wa_invoicing_plan-date+6(2)
    wa_invoicing_plan-date+4(2)
    wa_invoicing_plan-date+0(4) INTO lws_date
    SEPARATED BY '.'.
    PERFORM bdc_field USING lws_field lws_date.
    CONCATENATE 'FPLT-FPROZ(' lws_cnt ')' INTO lws_field.
    lws_perct = wa_invoicing_plan-percentage.
    CONDENSE lws_perct.
    PERFORM bdc_field USING lws_field lws_perct.
    ENDLOOP.
    While calling the transaction give like this:
    DATA: opt TYPE ctu_params.
    opt-dismode = 'N'.
    opt-updmode = 'A'.
    opt-defsize = 'X'.
    CALL TRANSACTION tcode
    USING i_bdcdata OPTIONS FROM opt MESSAGES INTO i_messages.
    LOOP AT i_messages.
    ENDLOOP.
    <b>Reward points if helpful</b>
    Thanks,
    Sachin

  • CS4:Export JPEG Settings

    Hi Folks,
    Does someone know how to get access to JPEG settings(Export JPEG dialog in inDesign) to read/modify these setting in plugin? I just need to get/set some of the properties like Quality/Resolution/... in plugin, access to dialog is not important, just access to global setting values is my concern.
    TIA,
    Mor

    Hi Ian,<br />The doc says:<br />"Settings for JPEG export are stored with the IJPEGExportPreferences interface on kWorkspa- <br />ceBoss. For details, see the API reference documentation. <br />End users can modify the preferences through the JPEG Export Options dialog box. You also <br />can change the preferences programmatically, with the kJPEGExportSetPrefsCommandBoss..." <br /><br />First of all) there is no such interface: IJPEGExportPreferences <br />Second of all) As you recommended I'm trying your suggestion(see code in below),but get error. Can you please correct the place that I'm wrong?<br /><br />InterfacePtr<IJPEGImageWriteOptions> jpeg_settings((IJPEGImageWriteOptions *)::CreateObject(kJPEGImageWriteFormatBoss, IID_IJPEGIMAGEWRITEOPTIONS));<br /><br />TIA,<br />Mor

  • Crystal Report/STRUTS: Error (404) when clicking on Control Buttons (Print, Export, Next, Previous, etc...) on report viewer

    Post Author: jwenny
    CA Forum: Deployment
    Need help badly!!!
    We are using the crystal reports plugin for STRUTS.
    We are able to display the report in the crystal report viewer.  However, when we click any control buttons (print, export, etc...), then we get:
    JSPG0036E:  Failed to find resource /Report-viewer.jsp
    We then moved Report-viewer.jsp to the WebContents folder (root directory) and got a different error when we clicked any control button:
    Error:  400 page not found
    Does anyone know how to solve this problem?  For instance, is there a setting or parameter that needs to be set?
    Greatly appreciate any help!

    HI,
    Whenever we print the viewer does an auto postback, I believe due to this some of the values are getting missed. Moreover we are referring to the viewer and reportdocument object, it seems. So can you try this simple code in an application to see if it helps:
    ReportDocument rdoc = new ReportDocument();
    rdoc.Load("C:\TASKECrystalReports\Intraday.rpt");
    rdoc.SetDatabaseLogon("uid","pwd");
    rdoc.SetParameterValues("parameter name","value");
    CrystalReportViewer.ReportSource = rdoc;
    Helps?
    Thanks.

  • Any way to reduce the resolution when exporting to .pdf

    We are emailing reports.  On some reports with a large number of jpegs we are hitting a size limitation.  It would be helpful to reduce the resolution on the jpegs when exporting to .pdf.  Any way that would be possible?

    Hi,
    Need more info-
    VS version? or the developing application?
    CR Version? Are you directly emailing your reports from CR designer?
    Also once the image is fetched by the report, we can not make any changes in the image, as a work around you need to do required changes in the image before adding it to the reports, and as far as I know it is not possible through code, but we can wait for other responses though.
    Sincerely,
    Amit

  • Problem in crystal report viewer control's toolbar "export"button using SSL

    Hi,
    I would like to ask. My project is using BO XI Release 2 and VS-Studio 2005. Initially my project doesn't use SSL... At that time when i view the report with crystal report viewer control and can export (using built-in toolbar "export button"). Now project is using SSL and canu2019t export the error is
    u201CInternet Explorer cannot download file from server.
    Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.u201D
    Actually this error can solve "Cache-control" change to "no-cache". But I donu2019t know in crystal reportu2026
    Anyone can help ???
    Thanks

    In Internet Explorer, go to Tools -> Internet Options -> Advanced and ensure "Do not save encrypted pages to disk" is unchecked.
    Default is to have that option checked. 
    It was considered a IE security issue that IE saves all content to temp disk location unencrypted, even those pages served by HTTPS (for example, let's say you use HTTPS to download your bank info, and it's stored to temp disk for someone else to retrieve later).  So more recent versions of IE implemented that option setting.
    How that option setting works is strange - it downloads the file, saves to disk, then deletes the copy from the disk immediately, before passing it to the application responsible for the MIME type.  So the application tries to open a directory path to a non-existing file.
    Issue is specific to IE, and it's not something you can control via the SDK.
    Sincerely,
    Ted Ueda

  • 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.

  • How can I load a CMYK jpeg image

    How can I load a CMYK jpeg image (originally saved from Photoshop) and then
    turn it into an rgb BufferedImage, in order to display it on screen in an
    applet?
    I first tried ImageIO.read(), but that does not work for cmyk jpegs. I then
    looked into the com.sun.image.codec.jpeg package, and tried methods like
    decodeAsBufferedImage() and decodeAsRaster().
    The first one (decodeAsBufferedImage) returned an image, but it seems that
    it was interpreted as an ARGB, and the colors were incorrect.
    I then read the documentation which (amongst many other things) stated that
    "If the user needs better control over conversion, the user must request the
    data as a Raster and handle the conversion of the image data themselves."
    This made sense, so I took to decodeAsRaster(), only to find that I could
    not figure out how to carry out the desired conversion.
    Of course, I have looked into the documentation for BufferedImage, Raster,
    ColorModel, ColorSpace etc, but after a while I was lost. (Before I got lost
    I read that you can convert images with the help of methods like toRGB,
    toCIEXYZ.)
    I have a feeling that this is probably pretty simple if you just know how to
    do it, but I sure would need some directions here.
    Any help would be appreciated. Thanks.

    You can either use the "Place" command from the main menu, under "File", or you can just open it, select the move tool "V", the click in the image and drag it to the other file's tab.

Maybe you are looking for

  • Flash gallery site - two gallery malfunction?

    Hello all! Just wanted to run this by some flash pros out there. I have a flash photograph gallery but two of the galleries for some reason are not "functioning". Please go to http://photography.khangp.com.  When it opens, you will see "Portrait" and

  • About loading modular applications

    Hi guys.. I have some question about the Module class.. I know it's a great feature and I truly thank Adobe guys for this new awesome class but it seems to me that each loaded application (i.e. modular applications surrounded by <mx:Module> and </mx:

  • More WAD qns

    Hi I'd asked this qn a few days back about selecting only required text elements out of the whole list, for display on web reports. I followed the link Bhanu had sent and tried to select text elements. But I'm not able to get the text elements on the

  • Control file information

    dear. Oracle by default creates three control files, do these control files contain same information , what if we loose the control file control1.ctl, can we restore it from the other two. thanks and regards VIJAY

  • Weird saving in photoshop

    sorry if this has been answered already, i did a little research and promise to do more later after work. just got a macbook pro 2.33ghz. running photoshop CS2. working on a multi-layered image. it says its 439mb at the bottom (on the right). when i