Layer Comps in JPG format save for Web

Hi all

I use the script of "Composition of layers to files" a lot to send a few designs to clients. And sometimes I need to send a large number of jpg files at the same time, that are created with "Layers to files", but they are around 300 k or more, and when I use safe for the web it reduces the file size a lot! But I don't want todo it all manually again of course.

So I was wondering, is there any script which saves your JPGs Comps of layer in a JPG file which is compressed with the backup of the Web technology levels?

Thanks in advance.

Jeroen

Locate these lines in the script

case jpegIndex:
     docRef.bitsPerChannel = BitsPerChannelType.EIGHT;
     var saveFile = new File(exportInfo.destination + "/" + fileNameBody + ".jpg");
     jpgSaveOptions = new JPEGSaveOptions();
     jpgSaveOptions.embedColorProfile = exportInfo.icc;
     jpgSaveOptions.quality = exportInfo.jpegQuality;
     docRef.saveAs(saveFile, jpgSaveOptions, true, Extension.LOWERCASE);
     break;

Replace with this

case jpegIndex:
     docRef.bitsPerChannel = BitsPerChannelType.EIGHT;
     var saveFile = new File(exportInfo.destination + "/" + fileNameBody + ".jpg");
     var exportOpts = new ExportOptionsSaveForWeb( );
     exportOpts.format = SaveDocumentType.JPEG
     exportOpts.includeProfile = exportInfo.icc;
     exportOpts.quality = Math.round( exportInfo.jpegQuality / 12 * 100 ) ); // exportInfo.jpegQuality is 0 to 12, SFW uses 0 to 100. this converts
     if ( saveFile.exists ) saveFile.remove( );// avoid file exists overwrite dialog
     docRef.exportDocument( saveFile, ExportType.SAVEFORWEB, exportOpts );
     break;

And who should do it. Or you can set so that it uses scriptlistner for the SFW as the script done for PNG. If you want to keep certain metadata the jpeg, you can use scriptlistner in any case, as the DOM version does not export metadata.

Tags: Photoshop

Similar Questions

  • Save for Web file default in Illustrator CC 2015.3

    Following the upgrade to Illustrator CC 2015.3, whenever I want to export my work using ' export > save for web... "it is by default in GIF file format In previous versions, it is lacking in any format that you used previously, but now it always goes to the GIF format.

    I have made online and product and can't find anyway to change that. It's a minor change, but when you are exporting multiple images in the creation of digital assets for marketing campaigns is incredibly frustrating and lose time when you must always choose the type of file you want.

    I've noticed this time when you use Illustrator at home on my PC and Mac at work. There is the option "Export for screens", but that can be a bit of a faff, especially when you have to go and rename each file after export.

    In short, is there a way to change the default file format 'save for web', says PNG?

    We have released a fix for this problem. Please update.

  • A script for 'Save for Web' as .jpg

    I found a script that saves the current selected document in Photoshop as .png on the desktop and use it all the time.

    main() {} function

    declare local variables

    var doc = app.activeDocument;

    var Nomdoc = app.activeDocument.name.slice (0, -4);

    saveFile var = new File ("~/Desktop/" + nomdoc + ".png");

    pngSaveOptions = new PNGSaveOptions();

    pngSaveOptions.interlaced = false;

    doc.saveAs (saveFile, pngSaveOptions, true, Extension.LOWERCASE);

    }

    main();

    Now I really want a similar script to 'Save for Web' as .jpg files, without a color profile, on the desktop. Preferably a version to save it as a quality of 100% and the other to register as quality of 60%.

    Any help would be greatly appreciated.

    Here you are...

    function main(){
    if(!documents.length) return;
    var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
    var saveFile = File(Folder.desktop + "/" + Name + ".jpg");
    if(saveFile.exists){
       if(!confirm("Overwrite existing document?")) return;
        saveFile.remove();
        }
    SaveForWeb(saveFile,100); //change to 60 for 60%
    }
    main();
    function SaveForWeb(saveFile,jpegQuality) {
    var sfwOptions = new ExportOptionsSaveForWeb();
       sfwOptions.format = SaveDocumentType.JPEG;
       sfwOptions.includeProfile = false;
       sfwOptions.interlaced = 0;
       sfwOptions.optimized = true;
       sfwOptions.quality = jpegQuality; //0-100
    activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);
    }
    
  • Save for web in format PNG-24 slices recorded in JPEG format!

    Hi all.

    I use Photoshop Extended CS6 13.0.1 x 64 and when I save for web in format PNG-24, all the slices of the project, the final results are images in JPEG format. I tried the same thing but the export in GIF and it keeps saving as a JPEG. I tried save as instead of save for Web and this market, but this way I'm not save per and not to the web.

    No idea why this is happening?

    Found the solution. I had to select all groups.

  • help - problem with save for web when jpg image is placed in the file

    I have a jpg image file that I placed in my Illustrator 5 file to use as background and then created several vector buttons on the top.  When I try to create an arboard around a single button and then save it to the web, it ignores the size of the artboard and shows the dimensions of all jpg.  If I create the same file without the background jpg image, I am able to use work plans to record only a single button.  Every time I place a jpg image in my Illustrator file and try to use work plans, work plans are ignored and the entire area of the jpg is saved.  I am able to use the tool cuts to the economy, but I prefer using work plans.  Anyone have any suggestions on how to get the work plans of work when a jpg is placed in the file?  Thank you.

    In save for Web, the tab Image... is Crop to the artboard checked?

  • How to 'Save for web', just the effect of layer but not the content area?

    I fill the area with white, then add glow outter layer. Now, I want to 'Save for web', the outter glow effect but not the white area. I want that the transparent white area. If I remove the white area, the effect of layer goes, if I merge the layer with another to flatten (think then I can remove the white community while keeping the stay of effect layer), the effect of layer look totally different after flattening.

    http://i6.photobucket.com/albums/y222/moyoungerman/post/Screenshot2009-10-08at30858PM.png

    Set the fill to 0% in the layers (not opacity) Panel. Then save for web as a PNG24 with transparency checked.

  • Automated save for web + user + Preset groups?

    I have a great templade PSD filled with web slices, each containing graphics web button.

    They are always saved in three States: "-stop ', '-on ' and '-active" in .png format.

    To speed things up, I've prepared:

    * 3 'layers' (which activates / turns off the layers on / off and adjusts the visibility/effects)

    * 3 "except for web settings" which adds the "-off ', '-on ', '-active" suffix etc.

    However, whenever I want to update these three sets (and is often)! I have to jump through hoops to make... application of layer comp + file > save for web + select "all user slices" and "preset" + confirm the crash.

    After a few hundred times it becomes boring :-)

    Bottomline: Is it possible to do an action, or even do it all in a single key?

    Robert K

    Assuming that you always follow your naming conventions, action should be able to cover all the bases. The only downside I see is that some actions wil lrequire to call through the menus, not the buttons quick toggle to be correctly recording wih names intact. Have you tried?

    Mylenium

  • CS6 Question w/save for Web, do not use the Document DPI

    I'm creating an Action where I take a document large PSD format (photography) and change the size of the image at 72 DPI and 1000 pixels on the long side of the photo. If the action flattens the image and then modified the image 72 DPI and 1000 pixels on the longest side. The Action then runs thru photo save for Web, while this does not reduce the file size and it creates the appropriate pixel dimensions, it does not recognize the change DPI and delivers the original document of 360 DPI.

    I can take the same image, resize the image at 72 DPI and 1000 pixels on the longest side and then "save under" a jpg file. This always creates a 72 DPI jpg. What gives save for Web?

    The PPI figure is stored as metadata. If the Metadata in SFW parameter is set to 'All' the 360 PPI is preserved.

    So any setting less than 'All' will throw the Print metadata and set a default value of 72 DPI.

    Gene

  • Save for Web. 240 DPI.

    Hello!

    I work with Photoshop CS5, and I recently discovered that when I "Save for Web" in JPG format, Photoshop records my images in 240 ppi even if my images are 72 dpi.

    Do you know what it is?

    Thank you!

    Chris.

    Watch "Metadata" to save for Web. It can be defined at all and is recovering the file master print resolution.

    The value of copyright or None to 72.

  • 'Save for web' seems to be stuck on gif - how to fix?

    Hello

    I've just updated my Photoshop CC 2014 (today) and hoped that this problem should go away.

    When I "save for web" for the past weeks, the changes that I have on the right do not affect the image. Saving to gif format and do not change size, etc. as before.

    See the screen shot comparison. Thanks in advance for any help with this.

    Elainejpeg-high-example.pngjpeg-low-example.png

    Your screen Capture Png leader showing save for Web in high quality Jpeg setting has a color of the monitor profile.  This seems strange to me. You wrote that with these settings save for backups of Web, an image. gif.jpg not.  You did not post the Gif, nor capture the current backup file that record the dialogue for web displays before the Save.  If indeed save for Web but one gif not a .jpg file try to reset your user ID Photoshop Settings.

    Also what color space are you publishing in?  Image png you posted has a display profile not a normal color space, changing in like sRGB, Adobe RGB or ProPhotoRGB... Image posted on the web should have colors sRGB in the and do not need a color profile.   A PNG file on the web with a display color profile is not what one would expect to see...

  • CS6 save for Web image size limit (retina)

    I have been designing of many these days, sites especially mobile: iphone Retina (640w).  Most of the time, these designs can be long in the tooth with the height of these documents - more than 8000 pixels sometimes.  I noticed that 8000 pixels is the threshold limit for export "save for web".  Nothing more of 8000 pixels will be downgraded in quality on the features of the retina by reducing the image.  Jpg will be always the right height and width, but seen on an iphone, you can easily see the degradation.   Images and text are blurry.  It is no good trying to show a customer what their site on an iphone will look like.

    So my question is, is there a work around?  A preference to be changed?  Am I missing something to get the full quality of my design comp to preserve the quality of retina display?

    Conroy, it is incorrect for the cases I have provided.  Save for the web will save dimensions width and height appropriate for retina ios devices.  as paul said, SFW will save up to 30 000 pixels.  the problem was that "progressive" was not checked for extreme cases to appear correctly on the iphone.

    both models have been exported using SFW:

    progressive:

    http://www.justinfreiler.com/progressive.jpg

    not progressive:

    http://www.justinfreiler.com/non_progressive.jpg

    the two look identical on the desktop.

    you will notice the difference when viewing these links on your iphone.

  • Problem with save for Web in Action

    We do hundreds of images to our fine print main client. As part of the work, they want to the final image through save for Web registered as file a .jpg and .png to 1000 pixels wide.

    The problem is, if you try to create an action for this, the size of the action records is a percentage and not a width in pixels. It is therefore impossible (so it seems) to record an action that sets the scale as a sizing with a fixed output of 1000 pixels wide. Since images vary in size and he insists on registration of the size as a percentage, you can not create an action that will work.

    I tried to see if there is a way to change the action to change the output of a width in pixels, but didn't see how to do it. Is it still possible? We would save TONS of not having to manually open each image twice as much work and savings for each format.

    Yes, there is a bug with this script.

    The bug got into CS5 and was not attached to the CS6.

    You can download the fixed script here...

    http://www.PS-scripts.com/BB/viewtopic.php?f=10&t=3370

  • Some colors change from Photoshop CS6 save for web?

    I have a picture with great color surface: #fffdfd, when I save for web (jpg) this color is changed to #fefcfd (in JPG format).

    I just can't save as jpg with #fffdfd.

    (was trying to uncheck convertir convert to sRGB, don't embed color profile - always #fffdfd becomes #fefcfd when save for web)

    However, the #fefcfd color when save for web, does not change.

    Why some colors and some not? Is this a bug?

    Window7 64 bit, Photoshop CS6

    Save for devices & Web will remove some color from the file data.

    Browsers are not color management. Most of the formats of file on browsers assume they are sRGB. While Photoshop gives you the possibility of incorporation sRGB color space of a document, it also strips data that are not relevant. It is a common phenomenon.

    PNG - 24 on the other hand will give you the exact color matching.

    In addition, save for W & D, JPG quality questions a lot - the same color quality 10,20,30,40, 50... 100 wil give you reproductions different colours on the output end JPG.

    If you are concerned that much on an offset of +/-1 hexadecimal value of RGB color space, do not save for web & devices. Do a "Save as" instead. Then use an image editing / application like ResizeMe resizing to resize the quality of your document. This, in most cases will retain information colourspace but just drop the resolution and quality of the image, giving you a smaller size.

    On a sidenote, you can also read this article on how to better manage the color spaces: http://viget.com/inspire/the-mysterious-save-for-web-color-shift

  • GIF/save for Web problem (PSE 7)

    I tried searching for an answer to this problem, but nothing seems to fix everything that happens.

    Recently, I had to replace my laptop and from Windows XP to Windows 7.  I transferred the PSE 7 from the old system to the new system and have had no problems with it - until now.  I have an image in format Photoshop 52 - layer I want to save as an animated .gif, with each layer as a different image.  File > > Save As has the ability to save layers as frames, but if I check it, then click on 'Save', nothing happens.  Nothing at all.  On my old system, I would get a new dialogue with options like the quality, duration by frame, loop, etc., but that doesn't happen any more, and there is nothing to save (if I'm going to find the new .gif file, it's just not there). If I do not choose "Layers in images", dialogue .gif does so very well and it has no difficulty to save it as a static .gif file.  But it seems that she won't just save it in animated format.

    I'm having the same problem with "save for Web".  Or the option of the file menu or typing command will bring up dialogue to let me record this way.  He thinks maybe a second, but does nothing else and does not record the image.

    I tried to reset the layout, just in case the dialog box has been moved somewhere that I wasn't just to see and I tried to reset the preferences to save it for the Web, but none of these things worked.  No explanation as to why a .gif animation 'layers as images"is the only format that is not saving correctly?

    I also tried old connections animated that I created with XP, and they will not re - save as animation connections either opening.  I get her "do you want to save changes" dialogue, but clicking on 'Yes' does nothing and does not record updates.  I am at a total loss for why this feature no longer works.

    If you right click on the shortcut of items and choose Run as administrator,

    It does make a difference or not save for Web work?

    Registration of the Web dialogue box is the same dialog box that you would get when checking the layers as frames

    in the Save as dialog box.

    MTSTUNER

  • I've upgraded to Photoshop CC 2015.5.0 and now export > save for Web (legacy) is not available.  How to export an animated GIF?

    In Photoshop CC 2015.5.0 "Save for Web (legacy)" is gray, it is not available and I'd like to export a calendar box as an animated GIF.  I can export as video, but I don't see how to export to animated GIF format.  Help please.

    [Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]

    You are on the bit depth of 8bits Document?

    If no, go to 8-bit

Maybe you are looking for

  • Video of Firefox os formato

    Gostaria saber than formato video LG D300 mourned. Ate momento Beauté Yes aceita 3gp e gostaria to avera mudancas UO be tem app as powerful outros formatos mp4, rmvb, mkv, etc...

  • ProBook 6475b modem broadband

    I can't install the drivers for the modem braodband on a ProBook 6475 b at work. I tried the "Ericson pilots Mobile Broadband' and the ' Sierra Wireless Driver Package for add-on unit high flow Mobile HP un2430" listed for this model in the download

  • Problems with the level of Zoom in Version 9.0.3 (11601.4.4)

    I use the Version 9.0.3 (11601.4.4) and X.11.3 El Capitan, normal notice even tiny text and I'll have to hit ⌘ - + 4 or 5 times just to get the size of normal play. Another notice that?

  • Contacts on SIM i465

    I have an i465 clutch from boost. did someone knows if contacts are automatically stored in the memory of the SIM card or phone? I have went through all the menus and see no option to save a contact in the phone or the SIMs and I was wondering where

  • Elapsed time delay does that once in the state machine

    Hello.  I have problems using the delay to show the seconds remaining on an expectation not in a simple state machine.  I have a front panel countdown indicating the time remaining for the step.  I thought that the delay of elapsed time was the way t