iljitsch.com

topics: program · BGP / IPv6 / more · settings · b&w · my business: inet⁶ consult · Twitter · Mastodon · LinkedIn · email · 🇺🇸 🇳🇱

Hi, I'm Iljitsch van Beijnum. These are my posts related programming and web development.

Resizing photos in PHP with correct orientation/rotation and retaining EXIF data

When I got my first iPhone back in 2008, I hacked together a quick script that let me post photos from my iPhone to my website. However, iPhone photos are now 3 MB or larger, which is a bit much. So in practice I would edit the photos on my computer before posting them. But that gets old, so time for some automation.


The first photo I uploaded directly from my iPhone 3G, showing part of the script

Actually resizing images is easy enough in PHP using the imagecopyresampled() function. However, using the provided example script the result was that a photo that I took with my iPhone showed up rotated...

Full article / permalink - posted 2021-11-28

Iconverter makes your old Amiga icons look right

The way the Amiga handles icons changed a number of times over the history of the platform, with the result that many older icons don't look right on Amigas running later versions of the OS. I made a tool to convert these old icons so they look like they should on later Amigas: Iconverter.

Full article / permalink - posted 2021-07-14

Accent tool: a web tool to easily add or remove accents

This web tool lets you click on a list of accents to add those accents to text you've typed or pasted in a text box. Or remove accents with a click. So no need to remember those pesky alt codes or unintuitive key combinations!

Permalink - posted 2021-05-14

I did it again... I made another keyboard tester

The other day I noticed how dirty my VT420 terminal's keyboard was, so I decided to take off the keycaps to clean them.

Then of course it's always good to put the keycaps back where they belong. That's a task made a lot easier with a keyboard tester app such as the online one I made a while ago. However, I don't think the VT420 supports the latest Javascript features...

So I whipped up a command line keyboard tester: kbdtest.php. Save the page, rename to kbdtest.php, then run with ./kbdtest.php. Works on the Mac, haven't tested other systems.

Full article / permalink - posted 2021-03-16

My web-based keyboard tester can now also print your keyboard layout!

Simply type all the keys and shift, alt, alt+shift combinations and then you can print out an overview of your keymap for easy reference. (Or make a PDF, or take a screenshot, of course.)

Works best in Safari on the Mac, but most keys will be detected correctly with other browsers / operating systems, too.

(This is Apple's "ABC - Extended" layout, formerly known as "US Extended".)

Permalink - posted 2021-01-29

My keyboard and key rollover tester

I have a new mechanical keyboard on order, which lets you hot swap the keyboard switches. When you do that, it's a good idea to do a quick test to see if all the keys still work. There are many tools to do this, but I decided to make my own web-based one. I think it came out pretty nicely.

Full article / permalink - posted 2020-12-24

older posts - newer posts

Search for:
RSS feed

Archives: 2013, 2019, 2020, 2021, 2022, 2023