removing XMP data from JPG

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

josh2000

removing XMP data from JPG

Post by josh2000 »

Hi -
I've been doing a lot of batch processing of PSDs to JPG using File/Scripts/Image Processor for some and my own Action for others. All of these output files are 300ppi...and that's good.

I then turn these JPGs over to a customer who inserts them into his Oracle database. He complains of an error message - something about "it can't read the file and to check the format" (... he says the exact wording is "obscure"). What he WILL tell me is that if he saves my JPGs with a program called IrFanView he can use its built in "Save As" function to remove "original XMP data". After doing that, Oracle will accept the JPG images.

I've tried using "Save for Web and Devices" and selecting "None" for Metadata. No matter what I select there - JPGs are always come out 72ppi... that's bad.

My big question is - how do I save my PSDs directly to a JPG so that this "XMP data" is removed? How do I get PShop to do what IrFanView does?

Caveat - I'm not 100% sure that the XMP data is causing the Oracle error. I am sure, given his comments, that removing it solves the error.

I was wondering if there was a way to strip out the XMP data with a javascript. Can anyone here help me?

TIA your consideration.
j2

P.S. - I'm using CS5 on Windows 7.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Janna

removing XMP data from JPG

Post by Janna »

That's interesting...I work with PS5 on windows7 too, and though I don't have any problems like this, I haven't known that it saves metadata for jpeg images. I create lots of them for work, so I'd probably like to clear up the metadata, too. The solution will be much appreciated, TIA!
ddbell

removing XMP data from JPG

Post by ddbell »

To remove this data... First create a new image in Photoshop with the same dimensions. Then copy and paste the layer from the file that you want to remove the XMP data from into the new image. The XMP data will be gone in the new image.

I batch processed a few thousand images one time to remove the EXIF data. I used file/automate/batch to do this because I couldn't get it to work in Image Processor. It was a long time ago but I think the action was something like this. I remember that I had to add the first 2 commands to the action to close the last image (it could not be closed at the end of the action because it needed to be open for batch processing to save it). Because of this, you'll need to start with any 2 images already open.

Select previous image // used to close previous batched image
Close image // used to close previous batched image
Select All
Copy
Close Image
Create new image with clipboard dimensions as preset
Paste
Flatten Image
Mike Hale

removing XMP data from JPG

Post by Mike Hale »

ddbell wrote:... The XMP data will be gone in the new image.

No, most of the original XMP data will not be in the new file but there will still be XMP data. The only way I know to have Photoshop not add XMP metadata is to use saveForWeb. By the way saveForWeb strips all metadata( except for one EXIF tag 'ducky' ) not just XMP. That includes the resolution. The resolution is not changed, it is just that most programs assign a resolution of 72ppi to images that don't have a resolution in the file. This does not affect image quality.

If you don't want to use saveForWeb you will need to use a non Adobe app not to have XMP metadata in the file. You also can not rate, label, add keywords, etc in Bridge or the XMP will be added again.
larsen67

removing XMP data from JPG

Post by larsen67 »

except for one EXIF tag 'ducky'… hum save for web come from Stoke…