Saving files as jpg

I can't save a psd file as a jpg in CS5 Extended Version. This is the first time this has ever happened to me.

Thank you very much. It solved my problem because I was using 32 bits per channel.
Rick Matheny
83 Maple street
Branford, CT 06405-3513
(203) 208-2428
<http://images.nikonians.org/galleries/showgallery.php/cat/500/ppuser/12017/sort/3> Rick Matheny's Photogallery

Similar Messages

  • Photoshop CS - Saving file as jpg

    Hi
    I am using CS v8.0 and using a javascript action script. I seem to be having all kinds of problems saving the document as a .jpg though. I simply want to open all the files in a folder, resize the image and save the file with a different name (in the same folder). Here is my code so far:
    // Save current dialog preferences
    var startDisplayDialogs = app.displayDialogs;
    var startRulerUnits = app.preferences.rulerUnits; // Save the current preferences
    app.preferences.rulerUnits = Units.PIXELS; // Set Photoshop to use pixels
    // Don't display dialogs
    app.displayDialogs = DialogModes.NO;
    var FILE_TYPE = ".jpg"; // The type of files that this script works on -- you can change
    var SEARCH_MASK = "*" + FILE_TYPE; // Image file filter to find only those files
    try {
    // Ask user for input folder
    var inputFolder = Folder.selectDialog("Select a folder to process");
    if (inputFolder == null)
    throw X_NOINPUT;
    // get all files in the input folder
    var fileList = inputFolder.getFiles(SEARCH_MASK);
    // Open each file in turn
    for (var i = 0; i < fileList.length; i++) {
    // Set document to open file
    var docRef = open(fileList[i]);
    var fname = docRef.name;
    var currentDocument = app.activeDocument;
    // IF LandScape Picture
    if (currentDocument.height.value < currentDocument.width.value) {
    // Resize image by shrinking width
    currentDocument.resizeImage(110,undefined);
    // IF Height < 110 --- Enlarge top right of canvas
    if (currentDocument.height.value < 110) {
    currentDocument.resizeCanvas(110,110,AnchorPosition.BOTTOMLEFT);
    docRef.backgroundLayer.applySharpen();
    var saveFile = new File(fname.slice(0,-4) + "-small.jpg");
    var saveOptions = new JPEGSaveOptions();
    saveOptions.quality = 3;
    currentDocument.saveAs(saveFile,saveOptions,true,Extension.LOWERCASE);
    currentDocument.close(saveOptions.DONOTSAVECHANGES);
    } else {
    currentDocument.close(saveOptions.DONOTSAVECHANGES);
    } else {
    // Resize image by shrinking height
    currentDocument.resizeImage(undefined,110);
    // IF Width < 110 --- Enlarge right of canvas
    if (currentDocument.width.value < 110) {
    currentDocument.resizeCanvas(110,110,AnchorPosition.BOTTOMLEFT);
    docRef.backgroundLayer.applySharpen();
    var saveFile = new File(fname.slice(0,-4) + "-small.jpg");
    var saveOptions = new JPEGSaveOptions();
    saveOptions.quality = 3;
    currentDocument.saveAs(saveFile,saveOptions,true,Extension.LOWERCASE);
    currentDocument.close(saveOptions.DONOTSAVECHANGES);
    } else {
    currentDocument.close(saveOptions.DONOTSAVECHANGES);
    catch (exception) {
    // Show degbug message and then quit
    alert(exception);
    finally {
    // Reset app preferences
    app.displayDialogs = startDisplayDialogs;
    The resize of the image seems to work fine but i just can't get the saving working. Also, even though i have specified DONOTSAVECHANGES i still get the "Do you want to save changes" prompt when closing the file.
    Any help is appreciated..
    Thanks,
    Dan

    With CS2, you have to make sure the image is flattened, there are not paths, no extra channels, in RGB colorspace, and 8bit.  The current versions of PS does this for you, but not CS2.
    BTW, you said you just installed CS2, which is a very old program.  I hope you have a license for it.  See this thread:
    https://forums.adobe.com/message/6290183#6290183

  • Saving files as .jpg, not .eps?

    I've moved up from CS5 to 6. Always before able to save images as .jpg. Now on 6, files are saved as .eps?
    Why is that and how can I save as .jpg instead?

    Hi Tallarchitect,
    The way you save files in Photoshop has changed very little over the last few years. You are able to choose a variety of file formats, .eps and .jpeg being two of them.
    You can change the file format you want to save by selecting "JPEG" from the Format menu after opening the Save As… dialog.

  • Saving file, but jpg and gif comes out garbled

    Would someone please help me? I'm at my wit's end here. I'm writing a program that reads a file and saves it, but it needs to read a maximum of 512 bytes before it starts to write. It needs to work with both text files and images.
    - It works fine with text files.
    - It works fine with bmp images.
    - It works fine with jpg and gif images under 512 bytes.
    - With a jpg or gif over 512 bytes, it comes out all garbled, but the same file size as the original.
    One thing is really confoozling me. When the image comes out garbled, I tried changing the files for both the original and the copy into text files by changing the file extension to .txt. Both the text files were identical! So if the data is identical, why is the copy not showing the same image as the original?
    import java.io.*;
         public class SaveFile{
              public static final int BUFSIZE = 512;
              public static final String LIBRARY = "C:\\";
              static int totalRead = 0;  //Total number of bytes in buffer (Max BUFSIZE).
              static int fileSize = 0;  //Size of whole file.
                  static String fileName = "";  //Name of file.
                 static char[] data = new char[BUFSIZE];  //The data in the file.
              public static void main(String[] args){
                            //Bytes already read by the buffer.
                      int charsRead = BUFSIZE; 
                          //Takes name of file from main argument.
                         for(int i=0; i < args.length; i++)
                             fileName = fileName + args;
    //Name of file including directory.
              String fetchFile = LIBRARY + fileName;
              File file1 = new File(fetchFile);
              * Reads a string from the file to data (char array).
                   BufferedReader reader =
    new BufferedReader(new FileReader(file1), BUFSIZE);
                   BufferedWriter writer =
    new BufferedWriter(new FileWriter(fileName));
                   //Will continue as long as buffer is full.
                   while (charsRead == BUFSIZE){ 
                        charsRead = reader.read(data, 0, BUFSIZE);
                        if (charsRead != -1) {
                             totalRead = charsRead;
                             write(writer);
                             fileSize = fileSize + totalRead;
                   reader.close();
                   writer.close();
              System.out.println((fileSize) + " bytes read and saved as " + fileName);
         * Writes data to a new file.
         public static void write(BufferedWriter writer) {
                   for (int j = 0; j < totalRead; j++) {
                        writer.write(data[j]);
    I stripped away the directory selection and error handling to make it simpler.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Cadvan1123 wrote:
    I think the best choice is to use a ByteArrayOutputStreamWrong. You do not need a ByteArrayOutputStream
    and I think that it uses ASCII encodingPossible, but you can't just make that assumption. On windows for instance, there's a good likelihood it could use ANSI. And BTW, ASCII is for the most part dead, as it has been superseded by UTF-8.
    Check out t [jacobs.io.DataFetcher in TUS|http://tus.svn.sourceforge.net/viewvc/tus/tjacobs/] for a threadable and optimal/close-to-optimal solution for reading in binary files.
    Edited by: tjacobs01 on Mar 20, 2010 2:56 PM

  • Saving files as jpg from InDesign CS4 js

    Hi, Kasyan.
    You originally gavy me this script to re-save files as pngs, and now I need it to re-save them as jpgs instead. I made some changes, but I must have missed something, because it's not working. Could you take a look at it:
    #target indesign
    var myDoc = app.activeDocument;
    var myFolder = Folder.selectDialog ("Select the output folder for JPG images");
    SetDisplayDialogs("NO");
    OpenFiles();
    SetDisplayDialogs("ALL");
    UpdateAllOutdatedLinks();
    alert("Done");
    function OpenFiles(){
         for (var i = myDoc.links.length-1; i >= 0; i--) { // process links collection backwards since it's changing!
              var myLink = myDoc.links[i];
              if (myLink.linkType != "Joint Photographic Experts Group (JPEG)"){
                   var myImage = myLink.parent;
                   var myImagePath = myLink.filePath;
                   var myImageFile = new File(myImagePath);
                   var myNewPath =  myFolder.absoluteURI + "/" + GetFileNameOnly(myImageFile.name) + ".jpg";
                   CreateBridgeTalkMessage(myImagePath, myNewPath);
                   Relink(myLink, myNewPath);
    function CreateBridgeTalkMessage(myImagePath, myNewPath) {
         var bt = new BridgeTalk();
         bt.target = "photoshop";
         var myScript = ResaveInPS.toString() + "\r";
         myScript += "ResaveInPS(\"" + myImagePath + "\", \"" + myNewPath + "\");";
         bt.body = myScript;
         bt.onResult = function(resObj) {}
         bt.send(100);
    function ResaveInPS(myImagePath, myNewPath) {
         try {
               var myPsDoc = app.open(new File(myImagePath));
                 if (myPsDoc.mode == DocumentMode.CMYK) {
                        myPsDoc.changeMode(ChangeMode.RGB);
               var docName = myPsDoc.name;
              var myJPGSaveOptions = new JPGSaveOptions();
              myJPGSaveOptions.interlaced = false; // or true
              myPsDoc.saveAs(new File(myNewPath), myJPGSaveOptions, true);
              myPsDoc.close(SaveOptions.DONOTSAVECHANGES);     
         catch (err) {
              try {
                   app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
              catch (err) {}
    function Relink(myLink, myNewPath) {
         var newFile = new File (myNewPath);
         if (newFile.exists) {
              var originalLinkFile = new File(myLink.filePath);
              myLink.relink(newFile);
              try { // for versions prior to 6.0.4
                   var myLink = myLink.update();
              catch(err) {}
    function SetDisplayDialogs(Mode) { // turn on-off DialogModes in PS -- don't want to see the open file dialog while the script is running
         var bt = new BridgeTalk;
         bt.target = "photoshop";
         var myScript = "app.displayDialogs = DialogModes." + Mode + ";";
         bt.body = myScript;
         bt.send();
    function UpdateAllOutdatedLinks() {
         for (var myCounter = myDoc.links.length-1; myCounter >= 0; myCounter--) {
              var myLink = myDoc.links[myCounter];
              if (myLink.status == LinkStatus.linkOutOfDate) {
                   myLink.update();
    function GetFileNameOnly(myFileName) {
         var myString = "";
         var myResult = myFileName.lastIndexOf(".");
         if (myResult == -1) {
              myString = myFileName;
         else {
              myString = myFileName.substr(0, myResult);
         return myString;
    Thank you.
    Yulia

    On first sight:
    myJPGSaveOptions.interlaced = false;
    JPEG save options don't have an 'interlaced' property; that was for PNGs only. Check Photoshop's Script Help for the specific JPEG options.

  • Trouble saving files as jpg or eps in CS3

    I recently moved from OSX 10.4 to OSX 10.6 (new computer) and seem to have lost the ability to save photoshop files (CS3)  in eps or jpg format. I can "save to web", which will save small jpgs, but once was able to save jpgs of any size in the "save as" drop down menu. Now I don't have an option there for jpg or eps files. How can I get back the ability to save my files in those formats?

    Just to make sure, those files are 8bit and RGB or CMYK (Edit: or grayscale)?

  • When saving files as JPGs they save as 'files' and are not able to be re-opened by Photoshop.  This is only correctable by manually typing in .jpg after the file name.

    For some inexplicable reason when I save jpeg files they save as 'files' which can then not be re-opened.  I can only temporarily solve the problem by typing 'jpg' after the name as well as selecting jpeg as the type of file.  Do I need to change some other setting?

    David,
    I don’t have the option to append the file extension.  I am using:
    Adobe Photoshop Elements Version: 11.0 (11.0 (20120830.r.32025)) x32
    Operating System: Windows 8 64-bit
    Version: 6.2
    Any ideas?
    Thanks,
    Rich
    Sent from Windows Mail

  • Saving a file in jpg max resolution (12) PH cc

    Hi there,
    Recently I've changed my laptop and re-installing Photoshop CC in its last version.
    When I gonna save a file as JPG automatically it gives me back "8" like quality of image and not "12" . In the other Mac it gives me back all the times 12 and there's no problem to do mistakes saving a file.
    Is there a change to do into sets-up ? 
    Mac user.
    Cheers
    Mattia

    A workaround is to use File->Save As...->Change the file type to JPG->Save, a JPEG options window should come up, just move the slider to the far right, or type in 12 into the box to the right of the slider.

  • When saving a file in [.jpg] format, i am asked to choose a quality from 1 to 100. what changes in the file created based on the quality parameter chosen?

    when saving a file in [.jpg] format, i am asked to choose a quality from 1 to 100. what changes in the file created based on the quality parameter chosen?. i would like to know what changes, so in the future i can set my camera to a setting that will give me the highest quality to begin with,allowing me to make crops and still preserve the quality.
    thank you
    dovid

    It's the level of compression. Lower number, more aggressive compression, more visual artifacts.
    Aside from that you should never use jpeg as a working format. The compression is destructive and cumulative, and the file deteriorates every time you resave it.
    Use TIFF or PSD, and if you need jpeg save out a copy as a single final step.

  • Why do the file extensions (.jpg .gif .png) no longer appear when I click on a previously saved image to use that image's file name (particularly important when saving a series of images using the same root name)?

    I save a lot of images using firefox, often times from a large batch or series of images. It used to be that I would click on a previously saved image and the entire file name including the file extension (i.e. image_example.jpg) would appear in the "save as" line. Now when I click on a previously saved file, the file name appears without the file extension (i.e. image_example). Which means I have to manually type .jpg every time. For a large collection of images that I am hoping to use the same root file name and then add chronological numbers at the end, this has become incredibly frustrating, especially as it is a previously unnecessary task.
    I am using a new Macbook Pro and maybe there's something Apple related to this...? It did not happen on my old PowerBook G4. I have file extensions turned on in System Preferences.
    It should be noted that I have searched high and low and have even gone into the Apple Genius Bar where they were just confused as I was and of course ended by urging me to use Safari (shocker!) as it has all kinds of new extensions and bells and whistles. I seriously feel alone on an island with this dumb, hard to google problem. Thanks so much for any help anyone out there might have.
    I mean: is this as simple as changing a setting in about:config?
    Your assistance is greatly appreciated.

    Thanks for your response Mylenium, however like I mentioned multiple times, I did change all of my trackpad/scrolling settings in system preferences.  And if I wanted to use a normal mouse (or a tablet), I would've gotten an iMac instead of a MacBook Pro.  I travel often and work all over the place, not always with access to a decently sized workspace that would be required for using a mouse or tablet.

  • Saving psd file as jpg

    Hello all -
    I have recently upgraded from PSE–3 to PSE–9.0 on my Intel MAC running OSX 10.5.8.
    With PSE–3, when I wanted to save a psd file as a jpg, I would click File/SaveAs, and in the subsequent window select JPG.  When I did that, the file name at the top of the window changed from xxx.psd to xxx.jpg and the resulting saved file was, in fact, a jpg.
    When I attempt the same thing with PSE–9, the file name changes from "xxx.psd" to "xxx copy.psd".  The resulting file is saved as a jpg, but with a ".psd" extension.
    I went to PSE–9's 'Saving Files ...' Preferences window. I changed the 'Append File Extension:' option from 'Never' to 'Always' and clicked 'OK'.  When I reopened that window, 'Append File Extension' was still set to 'Never'.  I have been unable to save the 'Always' option.  Thus the renamed files have always been "xxx copy.psd".
    Have I been missing somthing?  Is there something else I should do?  Or is it a bug in PSE–9?
    TIA for any thoughts -
    - Ddgt

    Yes, it's a bug in the mac version of PSE 9. Just opening the Saving Files preference causes pse to stop appending the file extension. You can either enter it manually, or quit the editor, relaunch it while holding down command+shift+option and keep the keys down till you see a window asking if you want to delete the settings file. You do. Then never go to that particular preference again.

  • Saving tiff or jpg files within a single, existing psd file without creating new files

         Hi, I just bought CS5 and I wonder if it is possible to save multiple images that are created within a single psd file in jpg or other image file formats without creating new psd files, but rather saving them as "embedded" within the single psd file in whih they are created. For example, one could select a portion of an image that one has created, and save just that selection as a jpg without leaving the existing psd file, and after that, one could select another portion of the same image and save it as a tiff, etc. Is this possible?
    Much thanks.

    No and Yes!
    You can do much of what you want, but not exactly as you described it.  You can certainly make multiple selections and have them saved in the psd file. You can also save jpg version of those selections, but you have to do a little extra work.
    Lets say, by way of example, you have an image and you want to make three different selections within that image, save each selection as a jpeg, and save those selections along with the full image as a psd file. You can do the following, which is just one way of several to proceed, with your image opened.
    1. Make selection 1, hit Ctrl+J to jump that selection to a new layer
    2. Make selection 2, hit Ctrl+J to jump that selection to a new layer
    3. Make selection 3, hit Ctrl+J to jump that selection to a new layer
    4. Alt click on the layer with selection 1. This makes only that layer visible.
    5. Click on Layer > Duplicate Layer > destination New > give it a name
    6. This creates a new (temporary document). Open it.
         click Image > Trim > transparent pixels
         click Save for Web & Devces, select your parameters and save your jpeg
         Close and discard this temporary file.
    7. Repeat steps 4,5 & 6 for selection 2 & selection 3
    8. Save your psd file
    You now have three jpegs and a psd file with all the information to create or modify the original selections
    Paulo

  • Can an InDesign page be saved as a jpg file for use in Photoshop CS5 ?

    Can an InDesign page be saved as a jpg file for use in Photoshop CS5 ?

    mckayk_777 wrote:
    Just wondering peter what you think, instead of output to pdf you copy and then create create new file in photoshop and paste into that file. Is that sort of the same thing?
    Seems to be ok especially if you enlarge the object before you copy it into photoshop.
    I think what you are pasting (never bothered to try this) is just the screen preview, hence the need to enlarge. Why would you waste your time doing that instead of exporting to a high-res PDF?
    If you want only part of the page, check out http://indesignsecrets.com/free-layout-zones-add-on-is-incredible-productivity-tool.php

  • Error saving psd file to jpg file HELP?

    I have PS version 9.0.2 I can't save psd files to jpg all of the sudden...I live in Escondido, California and had to unplug everything when told to evacuate for the fires. Do I need to reinstall PS or ??? something about dumping preferences, how do I do that?  Need a hero!

    Yes, it's a bug in the mac version of PSE 9. Just opening the Saving Files preference causes pse to stop appending the file extension. You can either enter it manually, or quit the editor, relaunch it while holding down command+shift+option and keep the keys down till you see a window asking if you want to delete the settings file. You do. Then never go to that particular preference again.

  • When saving files from the internet, why doesn't Firefox 'know' to put .jpg files in "Photos" and pdf files in "Documents"?

    When saving files from the internet, why doesn't Firefox 'know' to put .jpg files in "Photos" and pdf files in "Documents"? IE always saved photos in the "Photos" file and documents in the "Documents" file. Firefox makes me choose every time. Very annoying.

    How about if Firefox is programmed like IE in this ONE thing...
    When saving files from internet sources, if the file ends in a typical photo extension such as .jpg, .bmp, .tif etc. it defaults to save it in your PHOTOS folder.
    When saving anything like a .doc, .pdf etc. it defaults to save it to your DOCUMENTS.
    You could still change it to 'desktop' if that if really where you want all your photos and documents... or some other folder that you decide, but DEFAULTS to the LOGICAL folder.
    I have carpal tunnel SO bad that even typing this suggestion is painful and having to make the extra click along with moving the mouse EVERY time I want to save something is painful.
    ALSO, I shouldn't need a bunch of ADDONS to accomplish this. I tried downloading one and it did nothing. The problem still exists.

Maybe you are looking for

  • Unable to edit files in Sharepoint

    Hi, When I try to edit a file, I get a pop up asking me to open the file, which I accept, then Excel, or Word, asks for my login. Then I get "Sorry we couldn't open XXXXXXXXXXXXXXXXXXXXX.XXX" Clicking OK presents: "Microsoft Excel cannot access the f

  • Auto start default html gallery

    Can I auto start the html gallery (default)? Can I not use the thumbs? Is there a better Lightroom template to do this? bob

  • GoDaddy exchange account sent emails not appearing in sent folder in Mac Mail

    The problem: I set up my business email address (GoDaddy exchange account) as a new email account in Mac Mail. A few days later I noticed that sent emails were no longer appearing in my sent folder for this account. The solution: there was a conflict

  • Timeout functionality in Leave Approval

    Hi Guys, We are working on a R12.1 version, and we have a requirement on AME approval timeouts in SSHR leave managmente. If a approver dosent take action for 3 days, the approval should route to manager manager. is there a workaround for such a featu

  • Error 200278 and error 200279 with DAQmx read

    Good day everyone, I have been trying to write a code which generates a sine wave and a trigger signal and send them out to two different devices. I am trying to phase lock device-1 on a certain phase angle of the operating signal  (sine wave) of the