Save for Web Action which keeps the size of the specific image

I need to create an action recording for a 850 web x 655px.

When testing my action for the first time, it shows in the Save as dialog box, the image has been reduced to this size as a percentage. If it works well.


However, when you test the action on an image of different original report, it still reduces the percentage that had been recorded, rather than just to save the image to the 850 x 655, which gives me a different image size.

Anyone know how I can keep the size of the image of 850 x 655 every time?

Thank you

NinjaPuss, this is what you need?

/**
 * ai.jsx (c)MaratShagiev [email protected] 17.08.2016.
 */
(function act_saveForWeb () {
  var d     = activeDocument;
  var dW    = d.width;
  var dH    = d.height;
  var wTmpl = 850;
  var hTmpl = 655;
  var wScale = ( wTmpl / dW ) * 100 + '';
  var hScale = ( hTmpl / dH) * 100 + '';
  {
    var actStr = '' +
      '/version 3' +
      '/name [ 10' +
      ' 73617665466f72576562' +
      ']' +
      '/isOpen 1' +
      '/actionCount 1' +
      '/action-1 {' +
      ' /name [ 10' +
      ' 73617665466f72576562' +
      ' ]' +
      ' /keyIndex 0' +
      ' /colorIndex 0' +
      ' /isOpen 1' +
      ' /eventCount 1' +
      ' /event-1 {' +
      ' /useRulersIn1stQuadrant 0' +
      ' /internalName (adobe_SaveForWeb)' +
      ' /localizedName [ 12' +
      ' 5361766520666f7220576562' +
      ' ]' +
      ' /isOpen 0' +
      ' /isOn 1' +
      ' /hasDialog 1' +
      ' /showDialog 1' +
      ' /parameterCount 16' +
      ' /parameter-1 {' +
      ' /key 1181578272' +
      ' /showInPalette -1' +
      ' /type (enumerated)' +
      ' /name [ 4' +
      ' 4a504547' +
      ' ]' +
      ' /value 1246774599' +
      ' }' +
      ' /parameter-2 {' +
      ' /key 1231975538' +
      ' /showInPalette -1' +
      ' /type (boolean)' +
      ' /value 0' +
      ' }' +
      ' /parameter-3 {' +
      ' /key 1366062201' +
      ' /showInPalette -1' +
      ' /type (integer)' +
      ' /value 60' +
      ' }' +
      ' /parameter-4 {' +
      ' /key 1332769901' +
      ' /showInPalette -1' +
      ' /type (boolean)' +
      ' /value 1' +
      ' }' +
      ' /parameter-5 {' +
      ' /key 1348563827' +
      ' /showInPalette -1' +
      ' /type (integer)' +
      ' /value 1' +
      ' }' +
      ' /parameter-6 {' +
      ' /key 1651275122' +
      ' /showInPalette -1' +
      ' /type (real)' +
      ' /value 0.0' +
      ' }' +
      ' /parameter-7 {' +
      ' /key 1299477536' +
      ' /showInPalette -1' +
      ' /type (boolean)' +
      ' /value 1' +
      ' }' +
      ' /parameter-8 {' +
      ' /key 1299477586' +
      ' /showInPalette -1' +
      ' /type (integer)' +
      ' /value 255' +
      ' }' +
      ' /parameter-9 {' +
      ' /key 1299477575' +
      ' /showInPalette -1' +
      ' /type (integer)' +
      ' /value 255' +
      ' }' +
      ' /parameter-10 {' +
      ' /key 1299477570' +
      ' /showInPalette -1' +
      ' /type (integer)' +
      ' /value 255' +
      ' }' +
      ' /parameter-11 {' +
      ' /key 1213424492' +
      ' /showInPalette -1' +
      ' /type (unit real)' +
      ' /value ' + wScale +
      ' /unit 592474723' +
      ' }' +
      ' /parameter-12 {' +
      ' /key 1448305516' +
      ' /showInPalette -1' +
      ' /type (unit real)' +
      ' /value ' + hScale +
      ' /unit 592474723' +
      ' }' +
      ' /parameter-13 {' +
      ' /key 1097757761' +
      ' /showInPalette -1' +
      ' /type (ustring)' +
      ' /value [ 13' +
      ' 417274204f7074696d697a6564' +
      ' ]' +
      ' }' +
      ' /parameter-14 {' +
      ' /key 1131180097' +
      ' /showInPalette -1' +
      ' /type (boolean)' +
      ' /value 1' +
      ' }' +
      ' /parameter-15 {' +
      ' /key 1399608180' +
      ' /showInPalette 0' +
      ' /type (raw)' +
      ' /value < 1574' +
      ' 0000000300000001000000000000000700000001000000000001000000000000' +
      ' 000001010000003c000000010000006400000000000000000000000000000002' +
      ' 00000000ffffffff0000000004ffffffff00000000ffffffff00000000ffffff' +
      ' ff00000000ffffffff0000000000000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff0000' +
      ' 00ff000000ff000000ff000000ff000000000000000000000000000001a80000' +
      ' 00100000000100000000000e54617267657453657474696e67730000000a0000' +
      ' 00004d7474434f626a630000000100000000000a4e6174697665517561640000' +
      ' 000300000000426c20206c6f6e67000000ff0000000047726e206c6f6e670000' +
      ' 00ff00000000526420206c6f6e67000000ff000000004f70746d626f6f6c0100' +
      ' 000000516c74796c6f6e670000003c0000000b6164644d65746164617461626f' +
      ' 6f6c010000000a626c7572416d6f756e74646f75620000000000000000000000' +
      ' 0f656d62656449434350726f66696c65626f6f6c000000000a66696c65466f72' +
      ' 6d6174656e756d0000000a46696c65466f726d6174000000004a504547000000' +
      ' 0c6e6f4d61747465436f6c6f72626f6f6c000000000b70726f67726573736976' +
      ' 65626f6f6c000000000c7a6f6e65645175616c6974794f626a63000000010000' +
      ' 000000095a6f6e6564496e666f00000004000000096368616e6e656c49446c6f' +
      ' 6e67ffffffff0000000d656d70686173697a6554657874626f6f6c0000000010' +
      ' 656d70686173697a65566563746f7273626f6f6c0000000005666c6f6f726c6f' +
      ' 6e6700000000' +
      ' >' +
      ' /size 1574' +
      ' }' +
      ' /parameter-16 {' +
      ' /key 1231953952' +
      ' /showInPalette -1' +
      ' /type (ustring)' +
      ' /value [ 28' +
      ' 433a5c55736572735c6d2e736861676965765c4465736b746f705c40' +
      ' ]' +
      ' }' +
      ' }' +
      '}'
  }
  var f = new File ('~/ScriptAction.aia');
  f.open ('w');
  f.write (actStr);
  f.close ();
  app.loadAction (f);
  f.remove ();
  app.doScript ("saveForWeb", "saveForWeb", false); // action name, set name
  app.unloadAction ("saveForWeb", ""); // set name
} ());

Tags: Illustrator

Similar Questions

  • When the batch of save for Web, Illustrator also records the .ai file copy

    This question has been asked and abonadoned here, so I write because it also happens to me.

    CS4 and CS5 (I tried both), Mac OS 10.6

    1. I select action 'Save for Web PNG', which is part of the package by default, and select "batch".

    2. I choose a source folder and choose a destination folder and check "Override Action"Save"commands."

    3 illustrator then performs the backup of Web action, but puts the .png files in the destination of origin specified in the action. It also puts copies of .ai files in the destination folder, I have created and specified in the batch dialog box.

    I want the .png files in my folder, and I don't want copies of .ai files.

    Pulling my hair out on this one, go to lunch. Thanks in advance for any help

    See screenshot below. Should do what you want.

  • 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' vector adapts to the bigger than the jury of art?

    Heya,

    In the past, if I wanted a vector drawing to save for Web to a different size I create a new Council of art to a larger size, copy the drawing and it intensified. Then save for web, this new work plan.

    However I have noticed that I can increase the Save for the size of the Web image at greater than the size of the artboard - this automatically to vector drawings scale? Or he will zoom just in a raster image?

    It seems scaling vectors, which is great and will allow me to save a lot of time, but I wanted to check?

    Thank you

    Theo,

    You get as well a raster by definition x pixel image size in pixels in the window to the size of the Image.

    This is also where you can check Art (or Type, whichever is more relevant) optimized.

  • Save for Web action CC 2015

    Hello

    I just created an Action to help with batch save images for the web. I have several hundred photos I need to reduce and put on a Web site.

    • I can go through the process manually and everything works fine.
    • I created an action, according to the manual process, and it does not work.
    • I also tried to run the action as a batch command and I get the error message "does not recognize the Export command.  I understand that it is obvious that the action does not work, but I thought I would try it anyway.

    Someone had problems with the creation of an action or with batch save for Web and how did you get around it if you please.

    Thank you

    George

    I'm on Win 10. Where do you work, do not forget this: when measures registration do not change the file name when recording and save to the folder where you want to save the files when batch processing option because: Override Action "save under" commands will not work for the reason that you do not save (command) step in your action.

  • Animated GIF &gt; save for Web (legacy) ends too large

    I created an animated GIF on a work plan which is 768 x 90, but the Dimensions of the Document indicate 1456 x 416 (a lot of the images fly in and "shrink").

    When I export as a PNG or JPG image it only exports the work plan, so that it remains the size I want to (768 x 90); but when I export > save for Web (Legacy) which is the only way to create an animated GIF AFAIK, it is exported to 1456 x 416.

    How can I get to the exit of the GIF animated image to the size of the artboard? Thank you.

    New export > export as a workflow is not animated gifs, currently exporting. It's probably something that will be supported in the future, however.

    To export a gif animated image in PS using Photoshop CC 2015, do not work plans. Please use export > save for Web (legacy) option without work plans. The backup of the Web feature levels is not support work plans and probably never will be. Instead, we will continue to improve and to the export as a workflow.

  • To optimize the size of the file will not work properly in save for web (CS6)

    I make layouts for digital designers who must be less than 250 KB. For a few months, when I try to save my pages of tiff in a smaller size, using the Save for web and optimization of the size of the file box Photoshop no longer works correctly.  Files are often 100 francs more grand than the target k 250 KB. Data in the lower corner of the screen corresponds to the k target but the recorded real this file too large.

    Windows 10

    CS6

    Photoshop

    Thanks for the help.

    c

    In the Web dialog box, do you have the metadata one value other than None?

    Which could explain the difference in size.

  • Keeping the names of original files in drop of save for Web

    LR to PS automation will groovy, but,.

    The output files are all be renamed by the "Save for web" dialog box in the name of the file saved inside the action of the drop pointing towards...

    If #1 is saved ok,

    File #2 renamed as #1 file and replaces / overwrites the original file #1...

    I added a sequence number 4 digits name of the file in the drop creation dialog box, but the final file name change comes after it in the final process of "Save for Web" to export...

    That's what I want to do... Ideally...

    LR Raw file edited to taste

    Export as a watermark TIF to ch

    Action a high filter, passes

    Export to save for Web @ long 1200px - 75% quality

    Closing MADE without saving the changes.

    Possible to you?

    Create blank document that is called Untitled-1.

    Start recording.

    Go to save for Web.

    Choose the desired settings and click Save.

    Navigate to the folder you want and click Save. Let the name of file Untitled - 1.jpg.

    Try it. Which will record the step you need without custom file name.

  • File size problems save for Web!

    Hello

    I have a problem with the size of the files when you save files to certain specifications.

    I use 'Save for Web' tool to identify the weight of the image by changing the amount of colors used.

    In the tool, the weight seems to be in line with the specifications, but when I check in the Finder (for information), it tells me it is finished the required specifications.

    Example - in the save for Web tool, it indicates that the weight is 6.967 KB for a .gif 300x50px using 100 colors.

    But in the finder, it says it's 8 254 bytes!

    Why is this happening?

    How can we solve this?

    Operating system does not automatically add the data preview. My guess is that Photoshop is adding metadata during registration.

    A few tips:

    • Try using PNG instead of GIF. The file size is almost always small. You may have heard that PNG does not work with Internet EXPLORER. This applies to versions prior to Internet EXPLORER 7, which is currently on a 2% share of the browser market. The problem only affects transparency 8 bits, so 8-bit png with transparency 1 bit very well work.
    • Download PING from MacUpdate. This is a free PNG optimizer. Drag the PNG files on the application icon in order to optimize. Savings can be dramatic.
    • If you insist on using search for GIF optimizers, GIF also on MacUpdate.
  • Windows 10 in save for Web, "the operation cannot be completed the directory name is incorrect.

    There are a lot of answers for Mac and Windows 7-8, but none that I can find for Windows 10. It is not let me save for Web and I get the message, which is in the title of this discussion. I tried to reinstall it. I tried pressing Ctrl + Alt + Shift, did not work. I know this is probably a registry problem, anyone got any ideas?

    Run as Administrator http://forums.adobe.com/thread/969395 to assign FULL permissions can help... said yet, but sometimes it is necessary for all Adobe programs (this is same as using an administrator account)

  • When saving a photo, the colors do not transfer correctly (they are dull) unless I have "save for web".  But when I save it for the web, it reduces the DPI up to 72 or 96 at best.  So I have to take the extra step to resize the image at 300 dpi, m

    When I "save under" I lose my color settings.  They are not more dynamic.  When I use save for web and maintaining devices, the colors, but PGD is only 72.

    This is because if you have not defined in all metadata option, you lose 300 ppi print metadata and file takes the default value of web metadata. 96 for Windows or the Mac 72.

    Set your metadata at all SFW, and you'll keep the printer to 300 dpi setting.  Oversampling a 72 ppi to 300 DPI file is very destructive and unnecessary.

    So just save your file again in SFW and simply select all as shown in the screenshot.

    Let me know how it went.

    Gene

  • When you use "Save for Web" with slices, it puts the images exported to a/images folder. Can I turn that off?

    I don't want to create a new folder/images every time I export images. I just want to export directly into the folder I specified.

    Is it possible to change this? I could not find a way.

    Thank you!

    In the save for Web dialog go to the dropdown menu, click change output settings and under saving files, uncheck the Set of Images in the folder

  • Where a - save for web - went to the CC 2015

    I was shocked when I went to update a web image through DSP and went to save for web, to see that it is not available.

    I can't believe that such an essential element would be deleted.

    Is there another way to access?

    Save for the Web has been moved to the file > export menu. The shortcut remains the same.

    Over time, Adobe will be phased out save for the Web and replacing it with the new Export feature as, but is that all of the features in save for Web are accessible to the breast to export it as.

  • "Illustrator save for Web" vs "The White Stripes!" hell yes - how to get rid of those scratches?

    Hey there

    I'm fairly new to Illustrator and I wanted to create a vector logo based for its use in the press a web.

    If the early hours have been a lot of fun and learned so much just to try - but now im stuck. I wanted to save the result to the web / devices and if I still get some white stripes in the .gif image. I guess it comes from framing of the image and there is a solution to this problem just by making a few settings.

    But like I said after that much time lost on desperately trying to solve - I NEED YOUR HELP! so thank you much!

    [ [URL =http://s1.directupload.net/file/d/2507/mqmwkcgl_jpg.htm] [IMG] http://s1.directupload.net/im ages/110427/temp/mqmwkcgl.jpg[/IMG][/URL]

    You have pixelated you art in Illustrator and crushed the art to re-record the art after the pixelation it?

    Or is it still all vectors?

    If you have Photoshop so this and see if it solves the problem.

    Open it in Photoshop as a smart object

    Save for web you always get the same thing?

  • Work plan won't "save for web" - Illustrator CS4 export everything on the file

    I accidentally check any box? I have several versions of a design on my file in different work plans.  I choose what work plan I want to save for web. Usually in the Save Panel for web only art in selected the work plan is there for me recording in different formats. All of a sudden he brings everything in all the different work plans.

    Can someone help me?

    Thank you!

    You accidentally deleted a box.

    In the save for web dialog box - clip to the artboard.

Maybe you are looking for