Transform your file metadata with ease. A cross-platform Python CLI tool to view and edit metadata for various file types including PDFs, images, audio files, and general file attributes.
- PDF Files: Edit metadata like Title, Author, Subject, Creator, Producer, etc.
- Image Files: View EXIF data (JPG, PNG, TIFF, BMP, GIF)
- Audio Files: Edit tags for MP3, MP4, M4A, FLAC, OGG, WAV
- General Files: Modify timestamps and permissions
- macOS Extended Attributes: View and edit "Where from" URLs, Finder comments, and view Finder tags
pip install metamorph-cliAfter installation, you can use it anywhere:
metamorph yourfile.pdfgit clone https://github.com/yourusername/metamorph.git
cd metamorph
./install.shgit clone https://github.com/yourusername/metamorph.git
cd metamorph
pip install -r requirements.txt
./mm yourfile.pdfmetamorph document.pdfThis will:
- Display all current metadata
- Prompt you to edit each field
- Ask for confirmation before saving
metamorph --view-only document.pdf
metamorph -v photo.jpgmetamorph --json song.mp3metamorph invoice.pdfmetamorph --view-only vacation.jpgmetamorph song.mp3metamorph --json document.txt- PDF: .pdf
- Images: .jpg, .jpeg, .png, .tiff, .bmp, .gif
- Audio: .mp3, .mp4, .m4a, .flac, .ogg, .wav
- General: Any file (for basic attributes)
The tool automatically detects the file type and uses the appropriate library:
- PyPDF2 for PDF files
- Pillow for image EXIF data
- Mutagen for audio file tags
- os/pathlib for general file attributes
- xattr (macOS) for extended attributes like "Where from" and Finder comments
On macOS, MetaMorph can read and edit special Finder metadata:
- WhereFrom: The URL where a file was downloaded from
- FinderComment: Comments visible in Finder's Get Info panel
- FinderTags: View color tags (read-only)
Standard PDF fields like Title, Author, Subject, Keywords, Creator, Producer, etc.
View EXIF data including camera settings, GPS coordinates, timestamps (editing limited)
Common ID3 tags: title, artist, album, date, genre, track number, etc.
- Image EXIF editing is limited (view-only for most fields)
- Some metadata fields are read-only (e.g., file size, page count, Finder tags)
- macOS extended attributes require macOS (uses
xattrcommand) - Always backup important files before editing metadata
- Press
Ctrl+Cor type 'q' to cancel editing at any time
MIT