Help: Save as jpeg

Maybe someone can help me on this Photoshop script, or action. I am working on a psd file  with few layers in Photoshop CS4.  I would like to save it to the jpeg  format.
Below is my workflow.
1) Drag and drop 01.psd into Photoshop from A folder.
2) Save 01.psd to 01.jpeg into the A folder.
3) Image options with quality, "5" Medium.
4) Format Options with Baseline ("Standard")
5) Image mode is in RGB color.
6) Use lower case extension.
7) Other options should be in default setting.
The script or action should be able to:
1) Save as jpeg format with similar name as the psd file without adding words or marks such as "copy" or "-".
2)  Save as jpeg format with similar name as the psd file, and able to  overwrite the jpeg file whenever the psd file has been updated and saved  multiple times.
3) Save the jpeg file into the same folder as the source file without creating any subfolder.
4) Not close the psd file, but still keeping it opens in the Photoshop without any changes.
I've tried the script from http://www.russellbrown.com, and Image Processor from Photoshop CS4, but those are not exactly what I want.
Please help, thanks.

Would this help?
Converting non-RGB-files to RGB would need an additional step, but would not be hard to include.
// saves jpg into same folder;
// be advised: this  overwrites existing jpgs of the same name without prompting.
// 2011, use it at your own risk;
#target photoshop;
if (app.documents.length > 0) {
var thedoc = app.activeDocument;
// getting the name and location;
var docName = thedoc.name;
if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}
else {var basename = docName};
// getting the location, if unsaved save to desktop;
try {var docPath = thedoc.path}
catch (e) {var docPath = "~/Desktop"};
// jpg options;
var jpegOptions = new JPEGSaveOptions();
jpegOptions.quality = 5;
jpegOptions.embedColorProfile = true;
jpegOptions.matte = MatteType.NONE;
//save jpg as a copy:
thedoc.saveAs((new File(docPath+'/'+basename+'.jpg')),jpegOptions,true);
//that’s it; thanks to xbytor;

Similar Messages

  • Batch Process Export As and Save As JPEG Question?

    What is the method for creating scaled JPEGs from PNG files with batch processing (File | Batch Process...)?
    Application environment: Fireworks CS4.
    Using History panel, I manually captured instructions
    Modify | Transform | Numeric Transform (13%)
    Modify | Canvas | Fit Canvas
    File | Save As (JPEG)
    History panel's saved JavaScript file script:
    fw.getDocumentDOM().scaleSelection(0.11999999731779099, 0.11999999731779099, "autoTrimImages transformAttributes");
    fw.getDocumentDOM().setDocumentCanvasSizeToDocumentExtents(true);
    fw.saveDocumentAs(null, true);
    Running this sequence as a batch job requires manually selecting JPEG and "okaying"
    CS4 documentation for saveDocumentAs is defined with different argument list: fw.saveDocumentAs(document) .  CS4 documentation also has: fw.exportDocumentAs(document, fileURL, exportOptions) to export JPEG (80% quality).  CS4 feature File | Image Preview... | Export does not create a history record for guidance.  I cannot find an example of either instruction save a file to a local folder in JPEG format.  My objective is to add an additional batch step Rename (prefix) for the JPEG output, and script this a a batch process.

    Joyce,
    Thank you.  Your suggestion helped clear my mental log jam.
    Fireworks batch scripting seems to work in reverse.
    Using "Batch Process..." scripting interface 'Export' (as JPEG) option first, 'Rename' (add Prefix) option second, and then follow these by using the history panel's 2 previously saved steps (Numeric Transform, Fit Canvas), batch process now works.  PNG file (list) is saved in targeted folder as a reduced scale JPEG with a prefixed file name.
    Batch Process allows the entire newly defined command sequence to be saved (script.js).  Placing this (renamed) file into Firework's batch look-up directory for scripts (C:\Documents and Settings\account_name\Application Data\Adobe\Fireworks CS4\Commands) does not work.  The file name does not display in "Batch Process" window "Batch options:" Commands drop-down list.
    Batch Process only works by recreating the above steps each use.
    The new (JavaScript) file is 26 KB.  Is script file size limited in Fireworks "Batch options:" feature?

  • Save as Jpeg - icon

    Using a Mac with 10.4.11, CS3 and Acrobat 8.1.2
    I usually make PDFs from Quark or Illustrator, using Distiller then Acrobat.
    If I take a PDFs which originally looks like this:-
    If I do a "Save as Jpeg", the Preview icon on the desktop always looks like this (you can just see the image very feintly)
    The actual Jpeg image is ok, but it's just the Preview icon which always comes out like this
    Any suggestions?

    Hi,
    Have you installed the latest software from the HP site or may used the original CD?
    If you may used the original CD, follow the Uninstall once again, then download and install the latest software below:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-109384-2&cc=us&dlc=en&lc=en...
    Hope that may help,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Adobe Action: Save As JPEG, but stop to let me change the file name?

    I'm needing to save about 100 different JPEG files based on one template with differing text in each JPEG.
    I've got my layers set up with a template behind, and all 100 text layers on top of each other. So I turn the text layers on one at a time and save as JPEG's with different names.
    I'm finding this to be an incredibly arduous process as I have to select "Save As", then scroll through the file types to select JPEG, then save as the desired name.
    Is there a way to speed this up, create an action that opens the "Save As" dialogue box with JPEG ALREADY selected so all I have to do is paste the new file name in? Or any other suggestions?
    Skipping that one step of having to scroll through in the "Save As" dialogue box to select JPEG would save me TONS of time. But I can't figure out how to do this... I can only figure out a way to create a "Save As" action that has the same name.
    Thanks so much!

    Thank you for the response, and I will attach screenshots.
    I'm not sure how this will help with the description as you haven't specified which part of my original post you don't understand, but see the attached photos and let me know if you have further questions about the process:
    My document is laid out with one template, then dozens and dozens of text layers on top for each flide for my client (Consulting 101_1 etc.)
    So I have all of the text layers turned off EXCEPT for the single one that I want to save for the slide I want to create (in this example Consulting 101_1)
    So I save this slide with the current text layer viewable (Consulting 101_1), select "Save As", then have to navigate to "JPEG" in the 'Format' section.
    Then once I've saved that specific slide, I turn off the previous text layer (in this case Consulting 101_1) and turn on the NEXT text layer (in this case Consulting 101_2) and repeat the same thing.
    I realize that there is no fast way to do this, but cutting out the need to select 'Format' and scroll down to 'JPEG' every single time would save a massive amount of trouble.
    If I could just hit an action key command and have the "Save As" dialogue box pop with with 'JPEG' ALREADY selected as the format, then I could just name the file and move on to the next, cutting out a massive amount of grunt work.

  • Gifs save as jpegs how do I save them gifs

    using firefox cache view to work offline, gifs save as jpegs and are not animated. This seems to happen since the last update of firefox, can you tell me how to resolve this issue please.

    If the program you are using is outdated or needs an upgrade''' . . . . . .'''
    If you want to save the old program, copy it to a location outside
    Firefox.
    These add-ons can be a great help by backing up and restoring Firefox
    '''[https://addons.mozilla.org/en-US/firefox/addon/febe/?src=collection&collection_id=33bf10fa-666d-45a2-9bc9-491ce21671c6 FEBE (Firefox Environment Backup Extension)]''' {web link}
    FEBE allows you to quickly and easily backup your
    Firefox extensions, history, passwords, and more.
    In fact, it goes beyond just backing up -- It will actually rebuild
    your saved files individually into installable .xpi files.
    It will also make backup of files that you choose.
    '''[https://addons.mozilla.org/en-US/firefox/addon/opie/?src=collection&collection_id=33bf10fa-666d-45a2-9bc9-491ce21671c6 OPIE]''' {web link}
    Import/Export extension preferences

  • Webcam capture & save as JPEG image

    Hi,
    I'm creating an application to capture image via webcam using directshow. I've managed to capture the stream using samplegrabber.
    the problem is when I save the grabbed image to a JPEG, the colors are incorrect.
    provided the link of the captured image from the webcam http://www.filefreak.com/pfiles/44160/test2.jpg
    the right hand side of the image should be brown colored, not blue as in the picture.
    I've also test to save as a bmp image, the color are ok.
    this is how i save the grabbed webcam frame into a jpeg file
    sampleGrabber->GetCurrentBuffer(&bufferSize, (long*)frameBuffer); 
    //save into jpeg 
    struct jpeg_compress_struct cinfo; 
    struct jpeg_error_mgr jerr; 
    JSAMPLE * image_buffer=NULL; 
    FILE * outfile;      
    JSAMPROW row_pointer[1];     
    int row_stride;  
    cinfo.err = jpeg_std_error(&jerr); 
    jpeg_create_compress(&cinfo); 
    if ((outfile = fopen("test2.jpg", "wb")) == NULL) { 
            fprintf(stderr, "can't open %s\n", "test2.jpg"); 
        return; 
    image_buffer = (unsigned char*)frameBuffer; 
    jpeg_stdio_dest(&cinfo, outfile); 
    cinfo.image_width = videoWidth;      
    cinfo.image_height = videoHeight; 
    cinfo.input_components = 3;      
    cinfo.in_color_space = JCS_RGB;      
    jpeg_set_defaults(&cinfo); 
    jpeg_set_quality(&cinfo, 255, TRUE ); 
    jpeg_start_compress(&cinfo, TRUE); 
    row_stride = videoWidth * 3;     
    while (cinfo.next_scanline < cinfo.image_height) { 
        row_pointer[0] = & image_buffer[cinfo.next_scanline * row_stride]; 
        (void) jpeg_write_scanlines(&cinfo, row_pointer, 1); 
    jpeg_finish_compress(&cinfo); 
    fclose(outfile); 
    jpeg_destroy_compress(&cinfo); 
    //end save jpeg 
    Thanks.
    Regards

    Hi,
    Thanks
    for participating on the MSDN Forum! I think your question is mainly related
    with DirectX, but not Visual C++ Language. Thus, I suggest you post your
    question on the microsoft.public.win32.programmer.directx.video newsgroup, there you find DirectX experts and your
    question should be answered in no time.
    The people there will have enough experience with DirectX to give you the best
    advice or answer!
    http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.win32.programmer.directx.video&lang=en&cr=US
    Thanks! Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How to default save as JPEG?

    My current workflow has been placing rectangular photos onto white square backgrounds and then saving as JPEGs. Each time I have to save the resulting image, I have to manually opt for JPEGs. Is there any way of making this a default? Thanks if anyone knows.
    Richard

    When you have several layers, a jpeg format can't save your work, you have to create another file in psd or tiff format to keep the original unchanged and a new file with layers as a copy.
    The normal use of the 'save' command is to overwrite the original image. What you really want is not a single step, it's to:
    - flatten the layers
    - save (overwrite) the original image file.
    Allowing a default to automatically do that when you are editing a layered file would be a disaster in most cases. So you have two ways to tell the software to do that:
    - specify the jpeg format as output and if you want to overwrite the original or create a copy or version set
    - do a 'flatten image' before trying to do a 'save' or 'save as'.
    (If you use 'save for web', you are implicitly telling you want to flatten and save as jpeg).

  • My images won't save as jpeg unless I go to Save As... what is happening to my images?

    My images look great when edited in photoshop and when I got to close and save it won't give me the option to save as a jpeg so I have to go to File Save As and then save to jpeg. But when I go to order them in Roes they look drab and awful but the thumbnail looks great. Am I saving it wrong somehow?

    Go to Image --> Mode and set image to 8 or 16 bit. If the image has 32 bit, it won't export through the save for web dialog.
    Let me know if this fixes the issue.
    Reidar

  • I edit my photos in Photoshop, save as jpeg then import back into iPhoto.  But if I add text to an image in Photoshop can't save as jpeg but as psd. Is there any way I can change to jpeg in iPhoto?

    I edit my RAW photos in Photoschop CS3, save as jpeg then import back into iPhoto 11.  If I add text in Photoshop I can't save as jpeg but as psd.  Is there any way I can change to jpeg in iPhoto?

    Terence Devlin wrote:
    Yes you can. But you need to flatten it as jpeg doesn't support layers.
    While the final JPEG can't have layers, it is not necessary to flatten the original Photoshop file to create a JPEG. There are two ways to make a JPEG while not losing the flexibility of preserving layers, and they both flatten on the fly while saving.
    I just tried this in Photoshop CS3 myself. When I add a text layer, and choose Save, the Save As dialog box comes up and defaults to PSD as was described. But... that is just the default! Go ahead and choose JPEG from the Format pop-up menu down below the file list. JPEG is in there. So what happens to the layers? Notice when you choose JPEG, the Layers box grays out and the "As A Copy" box grays out and is checked (i.e. you cannot uncheck it). What is going on here is Photoshop will gladly make a JPEG of your layered file, but it will force the JPEG to be a copy, so as to not overwrite the original layered file. This is good, because your Photoshop file with its editable text layer is preserved, and you get a JPEG copy to put in iPhoto.
    The second way is, instead of doing Save or Save As, choose File/Save for Web and Devices. This will also give you a JPEG choice, and also create an exported copy. Because this way makes files for the Web, they will be smaller than JPEGs from Save As because they will lack built-in previews (which you don't really need these days) and other extra metadata that take up space.
    Either way you get a JPEG you can toss back into iPhoto.
    Terence Devlin wrote:
    Only by exporting.
    The Export menu in Photoshop CS3 does not have any direct choices for JPEG.

  • One-click 'Save as jpeg' shortcut script please! - saved in the same folder

    Hi, I've been re-directed here because I was told a script could solve my problems - but I have no scripting experience/knowledge/ability! Below is my original problem and post. I got as close as 2 button presses, but I'm after that sweet, sweet single-button, double-my-productivity shortcut! Thanks!
    http://forums.adobe.com/thread/1106992
    I use 'Save as .jpeg' ALL the time (Photoshop CS6, Mac ML), and it really feels like I should just be able to press one button (a shortcut) and the name/quality dialogs don't appear and it just saves a .jpeg into the folder that my original .PSD/file is in.
    So basically:
    - Press one button to save my open .PSD/file as a .jpeg
    - Automatically save it in the same folder as my .PSD
    - Save it as '10' quality in the jpeg settings
    - No dialog boxes, as soon as I press the button, it saves it - if there's already a .jpeg of the same name, it creates a '-1','-2' etc.
    I've tried using 'Actions', but it seems to save it wherever my original Action folder was - it doesn't change to whatever the current folder the .PSD is in...
    Thanks!
    Adam

    File -> Scripts -> Script Events Manager
    Click Enable Events at the top
    Select Save Document from Photoshop Event  drop down
    Select Save Extra JPEG from Script drop down
    Click Add
    Click Done
    EVERY document you save, except JPEG files, will save a jpg file. Saving will be slower.
    You will need to modify line 62 of the Save Extra JPEG.jsx file located here: <YOUR_PHOTOSHOP_INSTALL_LOCATION>\Presets\Scripts\Event Scripts Only
    In order to boost your quality to '10'. Here is the line in question
    jpegOptions.quality = 2; // really low
    Change it to
    jpegOptions.quality = 10; // really high
    You will need to modify the script to get this problem solved as well: it saves it - if there's already a .jpeg of the same name, it creates a '-1','-2' etc.
    You can steal code out of Image Processor that finds a file name that is unique for the folder so you don't get overwrites.
    Are you sure you want that? If you do lots of saves you are going to fill up your disk fast.

  • XY Graph Won't save to JPEG when Black and White...and run from TestStand.

    I am creating an XY graph and manipulating the colors of the plots, background, etc.  I am saving this graph to JPEG using the Write JPEG File vi and after it is saved I import it inot a test report.  This works fine in color, but when I create a B&W plot, it won't save to JPEG.  Let me clarify:  It won't save to JPEG when I run the VI from TestStand.  It does save to JPEG when I run the VI as a stand alone application in LabVIEW. 
    Problem:
    Run VI from LabVIEW ~ Saves the JPEG in both Color and B&W.
    Run VI from TestStand ~ Saves the JPEG in Color, but does not save the JPEG in B&W.    
    Here is how I am making all the plots and background B&W in my code:
    Change all Active Plots to Black using property node.
    Change all Active Cursors to Black using property node.
    Change the Plot BG colors (major/minor grids, etc) to lighter colors using property node. 
    Does anybody have any suggestions? 
    Thanks in advance,
    Mike

    A few questions: What version of LV are you using? How are you getting the control image that you are sending to the JPG? Third what exactly happens when you try to save the B/W image under TestStand? Error?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I created a broacher with a template using pages but am unable to save it in JPEG. I tried saving as a pdf then using preview save as JPEG but it did not give that option??

    I have created a boucher with PAGES  using a template. How do I now get that teplate to JPEG?
    I tried convertong it to a PDF then saving , but I never got an option to save as JPEG.
    Appreciate any assistance.

    What version of Pages?
    Peter

  • I upgraded to mac 0sx 10.92 now i dont have the feature in my drop down to save as jpeg or save pdf to iphoto

    I upgraded to mac 0sx 10.92 now i dont have the feature in my drop down to save as jpeg or save pdf to iphoto

      This forum is for Mac Pro machines, which are desktop Macs.  You have a Macbook Pro, which is not a desktop Mac.
      Try the Macbook Pro forum.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • I want to know how to turn a word document into a jpeg so I can put the document on Facebook as a picture. I have made posters and if I do a print screen they are unable to be read, or if i turn it into a PDF there is no save as jpeg??

    I want to know how to turn a word document into a jpeg so I can put the document on Facebook as a picture. I have made posters and if I do a print screen they are unable to be read, or if i turn it into a PDF there is no save as jpeg??

    iOS device backups are stored in your iTunes library.
    Move your iTunes library to an external drive.

  • How do I edit RAW photos and save as jpeg?

    HI! I have some RAW photos that I want to edit and save as jpeg. Will the edits compromise the file and how do I then save these edited files as jpegs and will that compromise the files? THANKS!

    What do you mean by “Will my files be compromised“?
    When you edit a photo with iPhoto you’re Original file is preserved exactly as it is, there are no changes made to it whatever.
    will I be able to make a readable disc?
    Why not? But what do you mean by “readable” Readable by who?
    Regards
    TD

Maybe you are looking for

  • Excise invoice cancellation

    I have transferred  100 pieces from manufacturing plant to depot via Stock transfer Order. Excise invoice of 100 pieces is made. Due to some reason ,depot returns back 20 pieces to plant. how should i cancel the excise invoice for 20 nos. Plz help me

  • IPhoto 9.4.3 will not open in OSX 10.8.4

    I have tried several times to delete and reload iPhoto through the App Store. I even followed Terence Devlin's reply to earlier post with the same issue. Here is the log: Process:         iPhoto [699] Path:            /Applications/iPhoto.app/Content

  • How to arrange the data in vertical format?

    Hi All, I am working on BI answer.Can it be possible to arrange data in vertical format? Actually, when we select fields , then they got arranged horizontally. Like : Customer ID | Customer Name But i need to display the data in vertical format like

  • CS 3 Brushes not loading in Photoshop 5.5

    Are brushes that worked fine in CS3 Photoshop not compatible with CS 5.5? I've transfered teh files but PS doesn't recognize them. Thanks

  • RDS Users unable to pin explorer to taskbar

    Hi, I have a problem with pinning Windows Explorer to the taskbar in Windows Server 2012 R2 (also had this problem on 2012, before R2). Only users experience this issue, the administrator can pin explorer just fine. For users the pin options just isn