public class WriteExifMetadataExample extends Object
Constructor and Description |
---|
WriteExifMetadataExample() |
Modifier and Type | Method and Description |
---|---|
void |
changeExifMetadata(File jpegImageFile,
File dst)
This example illustrates how to add/update EXIF metadata in a JPEG file.
|
void |
removeExifMetadata(File jpegImageFile,
File dst) |
void |
removeExifTag(File jpegImageFile,
File dst)
This example illustrates how to remove a tag (if present) from EXIF
metadata in a JPEG file.
|
void |
setExifGPSTag(File jpegImageFile,
File dst)
This example illustrates how to set the GPS values in JPEG EXIF metadata.
|
public void removeExifMetadata(File jpegImageFile, File dst) throws IOException, org.apache.sanselan.ImageReadException, org.apache.sanselan.ImageWriteException
IOException
org.apache.sanselan.ImageReadException
org.apache.sanselan.ImageWriteException
public void changeExifMetadata(File jpegImageFile, File dst) throws IOException, org.apache.sanselan.ImageReadException, org.apache.sanselan.ImageWriteException
jpegImageFile
- A source image file.dst
- The output file.IOException
org.apache.sanselan.ImageReadException
org.apache.sanselan.ImageWriteException
public void removeExifTag(File jpegImageFile, File dst) throws IOException, org.apache.sanselan.ImageReadException, org.apache.sanselan.ImageWriteException
jpegImageFile
- A source image file.dst
- The output file.IOException
org.apache.sanselan.ImageReadException
org.apache.sanselan.ImageWriteException
public void setExifGPSTag(File jpegImageFile, File dst) throws IOException, org.apache.sanselan.ImageReadException, org.apache.sanselan.ImageWriteException
jpegImageFile
- A source image file.dst
- The output file.IOException
org.apache.sanselan.ImageReadException
org.apache.sanselan.ImageWriteException
Copyright © 2007-2012. All Rights Reserved.