Random photos (and new release of IMAN)

Published 2025-12-19

tag(s): #meta #programming

In a recent post (Decaying grandeur) I noticed that the images resized with IMAN[1] were...not great.
Turns out, the original images were of lower quality than usual, because instead of coming from the Camera app on the phone, they were shot using a messaging app. Lesson learned.

But still, I figured I could take a look at my usage of CL-GD to make sure I was saving the JPEG output in the highest quality possible. And also revisit the other "operations" I had IMAN, which were just made up manipulations of the palette that sometimes produced a grayscale version of the source image, but mostly were just senseless.

Moving to Imago

I think I had considered this library when I started working in IMAN, but since I had used CL-GD before, I just went with that.
But, the samples in Imago's README were alluring. And once the migration started, I found that even the code was very clear and easy to follow.
Great library. Highly recommend. 👍[2]

Screenshot of the latest IMAN homepage.
(direct link to image)

On top of updating the operations, I made minor changes to the text, and added some error handling (empty uploads, invalid links).
I coded the manipulations in the package thinking of chaining them, so you aren't forced to process a file more than once. But to be honest, the only thing I "need" is the resize.
AND I can't think of a way to select more than one operation, in order, without JS in the page.

Samples photobomb!

A small teacup and a keyboard and laptop in the background.
(direct link to image)

A random photo I took a couple days ago, while changing my keycaps. Green tea courtesy of Wouter's tips on how to prepare it properly.
Then, there's this photo Maria took a while ago, of Juan and I drinking mate in some NJ park:

A kid and his dad sitting on a picnic table, the kid is drinking mate.
(direct link to image)

I coded these filters for fun, I don't have a need for them. But at least the operations make sense :)
Invert colors:

Photo of a handpainted sign, with inverted colors.
(direct link to image)

And here, channeling my inner Jack Baty with a B&W, or better said, grayscale, selfie. Except that mine is a digital manipulation =P

A selfie of the author, in grayscale.
(direct link to image)
Footnotes
  1. IMAN requires a login. Just drop me an email.
  2. The intersection of people reading my blog, interested in CL, that didn't know about this library, and have a need for it...has to be empty. Still!

Share your thoughts (via email)

Back to top

Back to homepage