Save file with high resolution progamatically

Hello,
I'm trying to export the document to JPEG and PNG formats with a resolution of 300 DPI. I'm using the following code:
PIActionDescriptor desc00000178 = NULL;
error = sPSActionDescriptor->Make(&desc00000178);
if (error) goto returnError; 
PIActionDescriptor desc00000180 = NULL;
error = sPSActionDescriptor->Make(&desc00000180);
if (error) goto returnError;
error = sPSActionDescriptor->PutInteger(desc00000180, keyExtendedQuality, 10);
if (error) goto returnError; 
error = sPSActionDescriptor->PutUnitFloat(desc00000180, keyResolution, unitDensity, 300.00);
if (error) goto returnError;
error = sPSActionDescriptor->PutEnumerated(desc00000180, keyMatteColor, typeMatteColor, enumNone);  
if (error) goto returnError;
error = sPSActionDescriptor->PutObject(desc00000178, keyAs,
classJPEGFormat, desc00000180); 
if (error) goto returnError;
Handle aliasValue = NULL;
FullPathToAlias("C:\\temp\\Myfile.jpg", aliasValue);error = sPSActionDescriptor->PutAlias(desc00000178, keyIn, aliasValue);
if (error) goto returnError;
error = sPSActionDescriptor->PutBoolean(desc00000178, keyCopy,
true); 
if (error) goto returnError;
error = sPSActionControl->Play(&result, eventSave, desc00000178, plugInDialogSilent);
if (error) goto returnError;
returnError:
if (result != NULL) sPSActionDescriptor->Free(result); 
if (desc00000178 != NULL) sPSActionDescriptor->Free(desc00000178); 
if (desc00000180 != NULL) sPSActionDescriptor->Free(desc00000180); 
if (aliasValue != NULL) sPSHandle->Dispose(aliasValue); 
return error;
The file gets saved in the desired format but the resolution is always 72 DPI. Is there something i'm missing while exporting the file with higher resolution?
Please help..
Thanks

Why are you adding a resolution value to the save command?
It doesn't take or understand a resolution value.
You need to set the resolution on the document first, then save.

Similar Messages

  • How to email photoshop files with high resolution

    I need to send a photoshop file that is resolution 300 but it keeps converting to 72 when I email it. How do I email it and keep the 300 resolution?

    You can always resort to .zip compression application and send the .zip.
    Also you can resort to a cloud service if the file is too large to send over email.
    Adobe CC for example https://creative.adobe.com/products/files
    Dropbox Dropbox
    or GDrive https://www.google.com/intl/en/drive/
    or OneDrive Microsoft OneDrive
    Once uploaded to the cloud space share the url download url via email to the other person.
    Darrell

  • Saving a logo as a .EPS file, need higher resolution than 75dpi

    Hi, hope someone can help me
    I have designed a logo & sent it to the client, but they have come back to me asking for it in a higher resolution.
    Apparently the .eps file I sent to them was 75 dpi but they need 300 dpi
    I have opened up the original .ai files & tried to save them in higher resolution .eps but there is no option in the .eps save as dialogue box to save at higher resolution. The only part that seems to mention it is in the Transpency section... Preset: [Medium Resolution] But it's greyed out.
    Does anyone know where I am going wrong?
    Thanks!!!
    Jade

    Should I tell the client it is fine at 75dpi??
    It's very common for someone receiving an EPS to import it into another program, see the embedded For-Position_Only preview (which is a raster image) and think it is a "low res EPS."
    EPS is a metaformat. It's like a box that can contain any combination of raster, vector, and/or text objects. So EPS itself, like an Illusrtator fle, has no resolution, because resolution in a metaformat is object-specific to whatever raster objects which may or may not be included. A single EPS file may contain a 300 PPI raster image, and a 150 PPI raster image at the same time. Or, it may contain no raster objects at all, and only contain vector paths.
    Regardless of the actual content, when you save the EPS, a screen-resolution raster image is created and embedded. This is to provide the program which is going to import it something for the user to see onscreen.
    When the file is printed to a PostScript device (EPS stands for Encapsulated PostScript), the device prints the full-res raster objects, the vector objects, and/or the text objects that are contained in the EPS.
    When the file is printed to a non-PostScript device, only the low-res preview is printed, because non-PostScript printers have no "brain" to interpret PostScript content.
    If you are going to provide EPS to your customers, you should have some idea of what they intend to do with it, and make sure they have at least some basic understanding of what it is.
    JET

  • How to copy objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution?

    I recently have bought a new Macbook Pro (Version 10.10.1) with the OS X Yosemite. The computer comes with the new Pages (version 5.5.1).
    Here is the problem: I like to create artwork using the shapes on Pages. Previously, on my old mac, I used Pages 4.3 to create objects, which I would copy then paste to Photoshop and it would become a vector smart object. However, in the new Pages (version 5.5.1), when I copy objects, they would appear on Photoshop as instead, a layer and it would not be in full resolution.
    Also, I know there is nothing wrong with the Pages file itself because I have converted the document to PDF form and it is high resolution when inserted into Photoshop that way.
    Does anyone know how I can copy individual objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution as I have done before?
    Thanks!

    ghotiz wrote:
    copy the image and have it in a high-quality PNG format that does not include the background from the Pages document.
    Oh, well if you don't actually need vector objects then it looks like this is possible. As I said earlier, Pages is putting a PNG on the clipboard. I tested it and it does paste into Photoshop as a transparent layer, because I can see the transparent background of the pasted PNG graphic if I either turn off all layers behind it in Photoshop, or if I start a new Photoshop document to paste into but make sure I choose Transparent for the Background Contents in the New Document dialog.

  • Replace photos with higher resolution versions?

    A professional photographer sent me a DVD with about 1,000 photos on it from an event I hosted.  I imported them all into iPhoto and made a couple of photo books out of them (but didn't yet get them printed).  I noticed the resolution wasn't what I expected, so the photographer sent me a new DVD with higher resolution versions.  Same filenames.  Is there any way to import the new versions into iPhoto, replacing the old ones?  Ideally they would appear in the photo books, too!  I'd hate to have to spend hours recreating what I did.
    Thanks!

    I don't think so, iPhoto is designed to prevent "collisions" between similar file names, so you can't just import them. You would have to do major surgery to the iPhoto Library, which is not a good idea. And still might not work.
    I think you should just re-import and start over.

  • Slow performance with high resolution external monitor

    Hello,
    I recently bought HP EliteBook 840 G1, i7-4600U, 8gb ram, HD intel graphics 4400, 256GB SSD.
    Everything would be fine, but when I connect my 30" Dell monitor with 2560x1600 resolution as an external monitor, the performance of the computer drops significantly to the point where it becomes unconvenient to work with programs that require more resorces.
    I understand that it might be due to limitations of the hardware (most probably graphic card is too weak ? ), but still I'd like to ask if there is anything I could do to boost the performance of HP Elitebook with high resolution external monitor.

    Hi, you should use renderMode = gpu in your application descriptor xml file, especially for latest android devices. But gpu is not a good idea for old devices, so you may also try renderMode = direct.
    Honestly, I don't think those android devices made in china have good performance, especially gpu.

  • I can't open or save file with Java Web Start

    Hi,
    i can't open or save file with Java Web Start:
    import java.io.*;
    import java.util.*;
    public class MetaDataFileCreator {
    public String fileNameSpace = null;
    public String fileName = null;
    protected Properties file = null;
    public MetaDataFileCreator(String fileNameSpace, String fileName) {
    this.fileNameSpace = fileNameSpace;
    this.fileName = fileName;
    public void createMetaDataFile() {
    try {
    System.out.println("file METADATA");
    ClassLoader cl = this.getClass().getClassLoader();
    String nameFileMetaData = fileNameSpace + fileName + ".txt";
    FileOutputStream fileOS = new FileOutputStream(cl.getResource(nameFileMetaData).getFile());
    file = new Properties();
    file.setProperty("aaaaa", "aaaa");
    file.store(fileOS, "");
    fileOS.close();
    } catch (Exception e) {
    System.out.println("Error writing metadata-file: " + e);
    System.exit(1);
    e.printStackTrace();
    I have try also to open a file like this:
    ClassLoader cl = this.getClass().getClassLoader();
    file.load(cl.getResourceAsStream(nameFile));
    also like this:
    try {
    fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService");
    fss = (FileSaveService)ServiceManager.lookup("javax.jnlp.FileSaveService");
    } catch (UnavailableServiceException e) {
    fss = null;
    fos = null;
    System.out.println("Error with JNLP");
    System.exit(1);
    if (fss != null && fos != null) {
    try {
    // get a FileContents object to work with from the
    // FileOpenService
    FileContents fc = fos.openFileDialog(null, null);
    //FileContents newfc2 = fss.saveAsFileDialog(null, null, fc);
    // get the OutputStream and write the file back out
    if (fc.canWrite()) {
    // don't append
    os = fc.getOutputStream(false);
    } catch (Exception e) {
    e.printStackTrace();
    also like this:
    File f = new File((System.getProperty("user.home")+"x.txt").toString());
    FileOutputStream fileX = new FileOutputStream(f);
    OutputX = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fileX, "UTF8")));
    OutputX.println(....
    but it doesn't work with Java Web Start.
    Can someone help me?
    How can I open or save file?
    thank you.
    Sebastiano

    Did you specify <all-permissions/> in your JNLP file? Did you sign your code? What error are you getting?

  • How to save file with the "/" symbol in the name?

    Hi,
    I have Adobe Professional 8.  I need to save files with names that include the symbol /, but Adobe interprets, for example, A/88/6, as file name 6, in a folder named 88, in a folder named A, and sets up new folders to accommodate that.  I cannot substitute another symbol as I already have thousands of pdf files in a database using the / symbol, and I need them in the same folders.
    I would very greatly appreciate any advice,
    thanks,
    Mo.

    Thanks.
    As I said, I'm pretty ignorant about these things.  I wouldn't know how to begin using a "hack".  All I know is that I was able, for over a year, to save .pdf files directly from my browser on several computers, and use the forbidden "/" symbol in every file name.  After saving the files, Adobe will happily open them, and allow me to edit and re-save them, although I now see that it will not allow me to "save as" them under a different name without removing that symbol.
    I may not be tech-savvy, but I can state that everything I have said here and above is entirely accurate.  I would be happy to open a dropbox account to show you countless .pdfs with the symbol "/" in the name.
    This is honestly not that big a deal.  I greatly appreciate this discussion, and you have inspired me to become slightly less computer-ignorant.
    Hope you all had a great New Year.  I am still recovering.
    Cheers,
    Mo.

  • [svn:fx-trunk] 7661: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.

    Revision: 7661
    Author:   [email protected]
    Date:     2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
    Log Message:
    Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
    QA Notes:
    Doc Notes:
    Bugs: SDK-21636
    Reviewers: Corey
    Ticket Links:
        http://bugs.adobe.com/jira/browse/iso-8859
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/SDK-21636
    Modified Paths:
        flex/sdk/trunk/templates/swfobject/index.template.html

    same problem here with wl8.1
    have you sold it and if yes, how?
    thanks

  • The font size in the menu bar is too small (unreadable). How can I increase font size. I have a new Samsung PC with high resolution screen.

    Hi the fnt size in the menu bar is too small (unreadable). How can I increase the font size. I have a new Samsung PC with high resolution screen.

    You must mean Photoshop Elements 11, not Photoshop.
    There is no ability to change the size of the menu font in PSE 11.
    note to mod:
    Please move to the Photoshop Elements forum.

  • Save as EPS with High Resolution

    Hi,
       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.  If anyone knows please help me.

    Then, any other way to process this. How can I continue this process.

  • Nokia N86 - AVI/MP4 with higher resolution

    hi, I have a new N86 - very pleased with it do far. One thing I'd like to do though, is use the TV-out to play video files on a TV almost like a DVD player (eg to watch a film in a hotel through the phone). It works for "normal" MP4 files that have a resolution less than the mobile can view, but it didn't play a higher resolution clip that would be needed to get a decent picture on a TV. Is there anything I can do about this? I think I saw somewhere that Coreplayer may be able to play AVI files around 700mb, which may do it.

    Yep, just get a core player. Its not free though.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • AppleScript open and save file with Numbers

    Hi all,
    I need to save an Excel .xls file as an .xls file in order to break the links that are included in the original Excel file. Since Numbers doesn't have any actions for Automator, I hoped someone could help me writing an AppleScript?
    It needs to open (Numbers) and all the .xls files that are added to a specific folder on my Mac, then save them to another folder as .xls (not .xlsx) and overwrite any existing files with same name. Since this all should work automatically, warnings and pop-ups that need a user to click an option are not allowed.
    Didn't think this could be too hard, but I'm just a noob when it comes to AppleScript. Help?
    Thanks in advance

    Check the attributes of the <textarea> tag. You can use wrap="no" or wrap="virtual" or wrap="hard" to define how the text area handles carriage returns.
    Brian

  • Word 2007 won't save files with Acrobat Pro 9.0 Installed

    Last night an issue started occurring while trying to save a document in MS Word 2007 (part of an Office Ultimate install).  After about 10 hours of trying several suggestions from a variety of forums and MS suggestions I found that the only time I cannot save a file by traditional means is when Acrobat is installed.  I tried updating Acrobate and had the same thing happen.  MS says all that's left for me to do is get an answer from Adobe (I have to wonder if it's a copout).
    Steps taken so far:
    Disabled the PDF add-in - still unable to save Word files
    Removed PDF add-in - still unable to save Word files
    Removed entire CS4 suite - Word was able to properly save files
    Installed only the parts of the suite that I use frequently (Photoshop, Soundbooth, Premiere, Acrobat) - unable to save Word files
    Removed Acrobat Pro 9.0 - Word saves files properly again
    When I say it will not save a file I've tried the keyboard shortcuts for Save/Save As, Choosing the Save/Save As from drop down, and even attempted to save by closing the document.  When prompted with the option to save changes I say yes and nothing will happen, I have to close the document with nothing saved.
    I hate the idea of reinstalling Acrobat each time I need to use it to keep Word functional.  I've seen a ton of threads on other forums related to this issue.  Has anybody else seen this or know about a fix/work around?  Any help is appreciated.  Please let me know if additional detail is necessary.
    The operating system for the affected computer is Windows 7 32-bit.

    I installed each update individually (6 of them) and rebooted after each update.  Opened Word and attempted to save a document (after each update/reboot), the documents still cannot be saved (previously created documents still cannot have new detail saved).
    Decided to delete the Office folder in the following path: C:\Program Files\Adobe\Acrobat 9.0\PDFMaker\Office
    Opened up word and Acrobat went through an installation processes, to replace what was removed I assume.  After this was done I attempted to save a document and was still unable to do so.  Went back and deleted that Office folder in the above path again.  When opening Word this time I cancelled the installation process that Adobe was trying to complete.  Preventing the install of the settings and PDF add-in allowed documents to be saved again in word.
    I decided to try to remove the innactive add-in from my Word Options and received the following error message:
    "The connected state of Office Add-Ins registered in HKEY_LOCAL_MACHINE cannot be changed"
    Due to my deleting that folder?
    I suppose I could cancel that installation that initiates each time I open Word (or any other Office program that benefits from Acrobat Add-ins) but that will be a bit of an annoyance.
    Anybody have another suggestion, know what may need to be deleted from the registry to prevent the Add-ins installation when opening Word, or know where that setting can be changed?
    Hopefully getting close to a resolution

  • Photoshop Elements 13 (Mac) Organizer - Can't save file with version sets.

    I have spent many hours now trying to get Elements Organizer to save Version Sets when I've edited a photo. I've tried more or less every little thing you can find online without any luck. But just moments ago I found that if I move the file to my desktop everything works just fine. I then tried to edit files in a few other folders (also imported to my Organizer) and found that when ever the folder was named to something with a nordic letter in it (å, ä, ö) then I couldn't save my file with version sets (option greyed out) but if I moved that same file to another folder, well then everything worked as it's suposed to.
    I'm using the trial version of PSE 13 for Mac (Yosemite) and the full version is ordered and on it's way. But if this problem can't be fixed, I need to return that order and buy some other photo editing program.
    Can anyone help me with this problem? Is there perhaps a solution to this?
    Please, any help is much appreciated!

    I'm using the English version (as more or less always - Swedish is rarely an option). The thing is that I have never encountered this problem before in any other software I've been using, and certainly not in Aperture that I've been using up until now.
    I name my photo folders with a date and a few words, for ex. "2014-12-31 New Years in Stockholm" (but I normally write in Swedish). I use this method so that my folder that contains the original photos will be easy to find in even without any other software than Finder (or Windows Explorer if I connect my external drive to a Windows machine). I could change the name of all of my folders, or at least all of the folders with a name containing one or more of the letters Å, Ä or Ö to "force" PSE to work as it should, but why? This really shouldn't be a problem.
    I was hoping that their was a simple option or something like that that could fix this issue, but I guess not.
    If this problem lies in the software itself I will have to return it and look elsewhere (but where? Lightroom is certainly not an option if Adobe can't handle "normal" letters and Aperture is discontinued in a few months).
    Thank you for your reply!

Maybe you are looking for

  • What is error 8971 when saving a slideshow as an MP4 movie?

    I'm new to Lightroom 3.  I made a slideshow and followed all the directions in the manual to make the slideshow and save it through export video.  When I went to send it as an email attachment I got an error message it could not open the file because

  • Open Item Clearing Differences - Tolerence Groups for specific GL Acctts

    Dear Forum, We have a situation where we need to set up different Tolerance Groups for Clearing Differences for different GL Accounts, such as for GL Account for GRIR Clearing Account, we do not want any clearing differences and therefore the toleran

  • Difference between Shared Variable Refnum and Control

    Dabbing my toes in Shared Variables for another project.  Glad to see A LOT more support from NI in terms of Shared Variables (especially now that built executables can be set to automatically deploy shared variable libraries...thats a big help). In

  • File download/code

    Hello, I'm using JDeveloper 11.1.1.3. I'm trying to read the value of an attribute in an "ADF Quick Query with Table" called "Filename" and compare it with list of files i have in the directory "C:\\demos". Once the value is matched, the file with th

  • Failed to Run Task Sequence Failed to Run Task Sequence 0x80004005

    Please help me with this error. i tried everything with the forums and internet blogs non of work for me. Pls find out the Trace below and help me to sought out this problem. Failed to Run Task Sequence 0x80004005 <![LOG[LOGGING: Finalize process ID