Skip to main content

Add XMP metadata for PanoSphere in the pictures.

Project description

# ensphere

Add XMP info for PanoSphere in the pictures.

## Requirements

Install `exempi` in advance.

On MacOS,

brew install exempi

## Usage

usage: ensphere [-h] [--version]
[--set UsePanoramaViewer=True,ProjectionType=equirectangular]
filenames [filenames ...]

Add XMP metadata for PanoSphere in the pictures. (version 0.3)

positional arguments:
filenames File names (JPEG files only)

optional arguments:
-h, --help show this help message and exit
--version, -V show program's version number and exit
--set UsePanoramaViewer=True,ProjectionType=equirectangular, -s UsePanoramaViewer=True,ProjectionType=equirectangular
Set metadata for PanSpheres. Available variables:
['UsePanoramaViewer', 'CaptureSoftware',
'StitchingSoftware', 'ProjectionType',
'PoseHeadingDegrees', 'PosePitchDegrees',
'PoseRollDegrees', 'InitialViewHeadingDegrees',
'InitialViewPitchDegrees', 'InitialViewRollDegrees',
'InitialHorizontalFOVDegrees', 'FirstPhotoDate',
'LastPhotoDate', 'SourcePhotosCount',
'ExposureLockUsed', 'CroppedAreaImageWidthPixels',
'CroppedAreaImageHeightPixels', 'FullPanoWidthPixels',
'FullPanoHeightPixels', 'CroppedAreaLeftPixels',
'CroppedAreaTopPixels', 'InitialCameraDolly']

## Example

To add the default metadata for a equirectangular JPEG image.

ensphere equirectangular.jpg

For a cropped image, you also have to specify the original image size with `-s` option.

ensphere -s 'FullPanoWidthPixels=8000,FullPanoHeightPixels=4000,CroppedAreaLeftPixels=0,CroppedAreaTopPixels=0' partial.jpg

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ensphere-0.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

ensphere-0.3-py2.py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page