Reducing GPS accuracy in photos

by @edent | # # # # | 2 comments | Read ~162 times.
Unix is user-friendly — it's just choosy about who its friends are.

Here’s a quick one-liner to reduce the precision of location stored in a photo’s EXIF metadata: exiftool -c “%.2f” -TagsFromFile @ -GPSLatitude -GPSLongitude photo.jpg (Thanks to the EXIFtool Forum for their help.) Why is this useful? Modern phones automatically attach a GPS location to every photo you take. GPS resolution is around 10 metres. When…

Continue reading →

Adding Semantic Reviews / Rich Snippets to your WordPress Site

by @edent | # # # #
Screenshot of JSON code in a web page.

This is a real “scratch my own itch” post. I want to add semantic metadata to the book reviews I write on my blog. This will enable “rich snippets” in search engines. There are loads of WordPress plugins which do this. But where’s the fun in that?! So here’s how I quickly built it…

Continue reading →

Removing default metadata from .opus files

by @edent | # # # # | 1 comment | Read ~122 times.
Binary code displayed on a screen.

I’m trying to create some ridiculously tiny audio files. The sort where every single byte matters. I’ve encoded a small sample. But the opusenc tool automatically adds metadata – even if you don’t specify any. Using the amazing Mutagen Python library I was able to completely strip out all the metadata! import mutagen mutagen.File(“example.opus”).delete() It…

Continue reading →

Interesting Email Metadata

by @edent | # # # | 3 comments | Read ~712 times.

For many years, my email footer said “Sent via my Casio cPhone” – my attempt to poke fun at the users who hadn’t updated their iPhone’s default email signature. This leads to an interesting question: Is there an easy way to see what device an email is sent from? If I type the attached on…

Continue reading →