Geolocating a Folder of Images with Python

I’m not sure how useful this will be, but as I recently built it in another language (I plan on blogging that soon as well), I thought I’d take a stab at building it in Python. Given a folder of images, can I use Python to grab the Exif information and then using that, figure out where the photos were taken using a reverse geocoding service? Here’s what I built. First – Get the Images Ok, the first step is simple, just get a list of images from a directory: INPUT = "./sources" files = os.listdir(INPUT) for file in files: print(file) Woot! I’m a Python Master! Get the Exif info For the next step, I knew I needed to get the Exif info. For that I used... more →
Posted in: JavaScript

Easy way to upload, transform and deliver files and images (Sponsored)

Managing media is a really difficult task if you try to do all of it yourself, especially if the media comes from other sources. The file can be submitted in any state and size, but what if you need something really specific? You can code it all yourself or you can use an awesome service like Filestack, a utility to upload, transform, and deliver that media in the most optimal style imaginable! The Setup The first step in the Filestack journey is signing up for free. You’ll get at 21 day free trial and can cancel at any time. Once signed up, you’ll have full access to the Filestack libraries of code. You’ll also want to spend time catching up on the Filestack documentation,... more →
Posted in: JavaScript

Generative Images with Gemini (New Updates)

Back in January of this year, I wrote up my experience testing out Google’s Imagen 3 APIs to generate dynamic images. A few days ago, Google updated their support with new experimental support in Flash. I’ve been playing with this the last few days and have some code and samples to share with you, but before that, what exactly changed? Gemini and Imagen 3 There are now two different models, and different APIs, to generate images with Google’s AI platform. The new one is Gemini 2.0 Flash Experimental and the previous one (the one covered in my blog post) is Imagen 3. Of course the next question is, why two, and what do you pick? The docs do a great job of explaining the differences,... more →
Posted in: JavaScript

Generative AI Images with Gemini and Imagen – an Introduction

I’ve been waiting for this to launch for a few days now, and while technically this isn’t quite yet available in Gemini, only Vertex, it should be testable in Gemini in the very short term. You can now use Google’s APIs to generate really high quality images via their Imagen 3 technology. I’ve got a few blog posts planned that will demonstrate these features (and from what I’ve been told, even more powerful stuff is coming), but I thought I’d start off today with a simple short example. To begin, and remember this may not available just yet, take a look at the docs, Imagen 3 in the Gemini API. First, let’s consider the sample code, that I’m going... more →
Posted in: JavaScript

The First Images from EUMETSAT MTG-I1

The first high quality image from Europe’s newest weather satellite has been released. The European Organisation for the Exploitation of Meteorological Satellites (EUMETSAT) operates a fleet of satellites with which it monitors weather, climate, and the environment from space. EUMETSAT’s newest satellite, Meteosat Third Generation – Imager 1 (Meteosat-12) was launched in December 2022 and is Maps Mania… more →
Posted in: Interactive Maps

How to Create a Diff of Two Images

When I was a child, I loved looking for Waldo in the “Where’s Waldo?” book series. These days I’m a sucker for TMZ’s “What’s the Big Frigin Difference” images, where TMZ slightly changes an image and you have to spot the differences between the two. That got me to thinking — how easily could I automate diff’ing two images? This StackOverflow post was gold. To create a diff of two similar images, we’ll use ImageMagick’s convert command line utility with a large host of configurations: convert '(' image1.png -flatten -grayscale Rec709Luminance ')' '(' image2.png -flatten -grayscale Rec709Luminance ')' ... more →
Posted in: JavaScript

Building an API to List Cloudinary Images in a Folder

I was preparing to work on a Cloudinary and Apline post when I realized I needed something before I could build that demo – a list of images in a Cloudinary folder. While this is directly supported by their SDKs and REST APIs, I needed something that could be used in a public-facing web application. So with that in mind, I turned to Pipedream to build a serverless endpoint. Here’s how I did it. Raymond Camden… more →
Posted in: JavaScript
1 2