Include metadata in Save for Web JPEGs

In Photoshop CS 4, I notice that there is a new menu option "Include metadata" in the SaveForWeb and devices.

I have a Javascript that creates several files based on different sizes and I would like to know how I can get the original PSD file metadata to be included in JPEG files.

This is important because I have a database that reads the metadata fields to know where to place the images.

It's my step ExportForWeb

function SaveForWeb (saveFile) {}
var sfwOptions = new ExportOptionsSaveForWeb();
sfwOptions.format = SaveDocumentType.JPEG;
sfwOptions.includeProfile = true;  Delete the image ICC profile
sfwOptions.interlaced = 0;
sfwOptions.optimized = true;
sfwOptions.quality = 80;  image quality has been set to high
app.activeDocument.exportDocument (saveFile, ExportType.SAVEFORWEB, sfwOptions);

Thank you very much

That's what I use...

function Cs4SFW(FileName,Quality,MetaData,Profile,Progressive) {
  function cTID(s) { return app.charIDToTypeID(s); };
  function sTID(s) { return app.stringIDToTypeID(s); };
  /*
  Metadata:-
 'MDAl'  All metadata 'MDNn'  No metadata
 'MDCp'  Copywright  'MDCC' Copyright and contact
 'MDAx'  All except camera info
 Profile:-
 'CHsR' sRGB Profile    'CHDc'  Use document profile
  */
//Set defaults
if(MetaData == undefined) MetaData = 'MDNn';
if(Quality == undefined) Quality = 80;
if(Profile == undefined) Profile = 'CHsR';
if(Progressive == undefined) Progressive = 1;
    var desc7 = new ActionDescriptor();
        var desc8 = new ActionDescriptor();
        desc8.putEnumerated( cTID('Op  '), cTID('SWOp'), cTID('OpSa') );
        desc8.putEnumerated( cTID('Fmt '), cTID('IRFm'), cTID('JPEG') );
        desc8.putBoolean( cTID('Intr'), false );
        desc8.putInteger( cTID('Qlty'), Quality );
        desc8.putInteger( cTID('QChS'), 0 );
        desc8.putInteger( cTID('QCUI'), 0 );
        desc8.putBoolean( cTID('QChT'), false );
        desc8.putBoolean( cTID('QChV'), false );
        desc8.putBoolean( cTID('Optm'), true );
        desc8.putInteger( cTID('Pass'), Progressive ); // 1 = Optimized 3 = Progressive
        desc8.putDouble( cTID('blur'), 0.000000 );
        desc8.putBoolean( cTID('EICC'), false ); //Embed Color Profile, Bool
        desc8.putBoolean( cTID('Mtt '), false );
        desc8.putInteger( cTID('MttR'), 255 );
        desc8.putInteger( cTID('MttG'), 255 );
        desc8.putInteger( cTID('MttB'), 255 );
        desc8.putBoolean( cTID('SHTM'), false );
        desc8.putBoolean( cTID('SImg'), true );
        desc8.putEnumerated( cTID('SWch'), cTID('STch'), cTID(Profile) );
        desc8.putEnumerated( cTID('SWmd'), cTID('STmd'), cTID(MetaData) );
        desc8.putBoolean( cTID('SSSO'), false );
            var list2 = new ActionList();
        desc8.putList( cTID('SSLt'), list2 );
        desc8.putBoolean( cTID('DIDr'), false );
        desc8.putPath( cTID('In  '), new File( FileName) );
    desc7.putObject( cTID('Usng'), sTID('SaveForWeb'), desc8 );
    executeAction( cTID('Expr'), desc7, DialogModes.NO );
};

Tags: Photoshop

Similar Questions

  • Fuzzy dynamic objects in Photoshop save for Web in JPEG files

    I create graphics, etc. in Illustrator, place them as dynamic objects in a master before displaying file Photoshop save for Web JPEG files as a slide PowerPoint background. Created in Illustrator or Photoshop, everything through this process (quality 80 or 100 with all SfW options on or off) except for the bands are blurred when they are imported (at 100%) in PowerPoint. The only way I was able to get whatever it is crisp in PowerPoint saves a Photoshop pdf file. However, it was only the text created in Photoshop. The part of the Illustrator smart object was still unclear. Someone has an idea on the best process to combine Photoshop and Illustrator files into a single file for import into PowerPoint as a clean and clear background? At this point, I am open to all suggestions.

    PowerPoint, as with all the office applications, use print sizes images and layouts, not pixel sizes. So, your pictures are probably too small to be seen clearly in PPT. according to Microsoft, failure to PPT for images is 220ppi, so if you want them to be clear, work on the actual size (inches / cm / mm) you want the image and save it to 220ppi or higher - no use save for web. Save for web always saves out to 72 dpi.

  • 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 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.

  • Photoshop Creative cloud - not jpeg, save for web, etc.

    I've recently updated to a paid subscription to creative cloud (only app/photoshop).  I didn't not re-download the app, I have just licensed, but now when I try to save a file only allows me to save in psd, raw, tiff, etc.  It does not convert to JPEG, png, save for web, etc on the new files I create.  The options are still there on the old files when I did the test.  What is going on?  If I try to manually change the tag on the image as a jpeg, it tells me that I have a corrupted file when I try to download it online.  I'm new to PS, so maybe it's my own ignorance, but I hope you can help.

    I tried to uninstall and reinstall the software but no luck.

    Thank you!

    < moved="" to="" photoshop="" forums="">>

    What is the mode of the image you're trying to save?

    Must be 8 or 16 bits/channel, if its 32, then it will not give you the ability to save in JPEG

  • Is it possible to preset on high JPEG when you use "save for Web". » ?

    Hello

    I use photoshop elements 10. When I'm ready to save the image under "SAVE for WEB" can I preset it 'JPEG HIGH' cos right now it will pop up in "GIF".

    When I use the PSE2, I am able to launch as JPEG HIGH. Now, I have to click the popdown menu to select 'JPEG high '.

    You need to right click the icon of the PSE Bureau and choose "Run as Administrator".

    Then, open an EPS file, use save for Web, and change all the settings to what you prefer. Hold down the Alt key and the 'Done' button will change to a button "Remember." Click it, and then save your image. The settings will be saved and you don't have to rerun PSE as an administrator.

    Ken

  • Save for web 72 dpi

    CS5 running on a 64-bit win 7 PC...

    When I use the option 'save for web' and select the 'include all the metadata information '.

    the recorded image (jpeg) isn't to 72 dpi, which is much better for the web, this is apparently the idea for our screens resolution.

    Instead it saves it at 300ppi

    (no please no debate on 72 dpi v's XXX ppi, there are enough posts on it).

    But if you disable metadata option 'include' then the image save as a jpg 72 dpi that I need.

    Someone has an answer to that.

    There is no reason why an image can be saved at 72 dpi and have metadata.

    Assumed that the entire function "save for web" is on the optimization of the image for this reason.

    This looks like a bug to me?

    so we're back to integrate adobe original, this feature for some reason, we all can edit, size of the image in PS, easy goto

    But adobe added this feature where you can choose "bi-cubique sharpness, etc etc...

    and that's why I want my metadata maintained in place and 72 DPI or 96 as stated above. That's why I always think it's a bug.

    I'm afraid you are confusing yourself and mixture of unrelated facts.

    PPI is unrelated to the web images. It is to be printed.

    A x 100px 100px image will appear on screen as 100 pixels of the image pixel x 100 image regardless of the screen resolution or image.

    Save for Web removes or retains metadata such as the copyright info, contact and camera to reduce the size of the file. That's all.

  • Save for web doesn't change resolution at 72 dpi

    Hello, asked me to change my resolution at 72 dpi, and I would have thought that save for web would have done that, I'm surprised he remained at 300, and there is no field to change and make the change for a series of images. Because I don't have the time to learn the steps, what I have to do it manually in size image and how do I lock the height and width? TXS

    SuperMerlin wrote:

    Try starting with a document of a higher PPI.

    Yes, that's what I was doing - and looking closer it is really strange.

    I got a file of 300 PPI and he traveled SFW with metadata defined at all. It opens as 72 in Photoshop is one thing, but the bridge shows as 72 facilities. If he really band resolution, this field in the bridge would be simply empty.

    So SFW with metadata 'all' really does include ppi - but it changes without worrying about 72.

    Which makes absolutely no sense and must be a bug.

  • Save for web delete GPS data

    Hello. I select to preserve all metadata from inside save for Web and GPS data are erased the exported png.

    This is expected behavior? (And so to save all the data isn't correct?)

    Thank you.

    I tried it on a photo with the on-board GPS info. SFW as png and jpeg, metadata defined at all.

    JPEG has preserved the GPS data of the camera and the png color profile does not.

    If I used the file > save as... and choose png, then all the metadata is stored.

    Strange, but this is how it works in Photoshop CC 2014

    Gene

  • Save for Web - save parameters - specific Image size

    I was wondering, is there a way to save a setting less save for Web to a specific image in pixels size? I create posters for the event for 11 x 17 prints, but also save the file in jpeg format to download on facebook pages. To include the "size of the image-> new size' in the 'Save settings' dialog, I don't see a way to do it. at the present time, only the optimized JPEG compression settings are saved, but not apply the new size of the image. Is it possible to include it? I want to systematically create JPEGs of 960 x 720 pixels, if Facebook will not make its own resizing when I download.

    If this isn't an option and a moderator is around, this thread can be moved to the page "feature requests"?

    Thank you!

    It has not recognized the way you want.

    A solution would be to create an action in terms of work that is changing the objects to the required dimensions.

  • How to save for Web cut EXIF but keep other meta -?

    Hi, people.

    Any chance I can save for Web in CS5 to cut camera of the EXIF data, but keep all my other metadata, such as keywords and copyright/contact info?

    (I like SfW because it erases all the EXIF data (and I need for my customers to see all my exhibition/camera data), but it would be really useful to keep other things.)

    Thank you!

    -GK

    There is in the save for the web dialog, next to metadata, including the list

    you want to keep the data. One of the choices is anything but camera Info.

    Maybe what you want.

    MTSTUNER

  • Save for Web

    Hi Forum

    With the new update to export to save the web, I was wondering if anyone knows how to save the settings so that it is not automatically set to save as a GIF file, I like it to save in JPEG format all the time, any help would be greatly appreciated.

    That's what I've provided to solve it,

    I created a SCRIPT to save for Web command, set my settings to JPEG

    and added a 'shortcut' to my Action for quick access

    Hope this will help until it is fixed in future updates.

  • 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 as GIF

    Hello world.

    I've updated to the latest version, and now, whenever I press "Save for Web", it gives me GIF.

    How to cancel it? I want to save my last option (as if it was in previous versions). This GIF drive me cleen!

    I created a SCRIPT to save for Web command, set my settings to JPEG

    and added a shortcut to my Action for quick access

    It worked perfectly

    Hope it will Help

  • Save for Web is now up to GIF on each record?

    Up to the latest version, the save for Web dialog box remember the type of file that you saved last as. Now, every time I open it... interrupt my workflow, it is up to the pretty spectacular GIF format that I use save for Web several times a day to record versions of the wired models.

    Anyone else seeing this?

    I do not see any place to set a default file type save for web.

    Am I missing something?

    I don't understand the reasoning behind this change. People generally use the same type of file when they export and RARELY is it GIF more. But even if the GIF was still popular, I would say it is much more common that you export the same type of file most of the time that put permanently.

    Gah

    (edited for typo)

    I created a SCRIPT to save for Web command, set my settings to JPEG

    and added a shortcut to my Action for quick access

    It worked perfectly

    Hope it will Help

Maybe you are looking for