iljitsch.com

blog-onderwerpen: thuis · BGP · IPv6 · meer · mijn publicaties · mijn bedrijf: inet⁶ consult · contact: Twitter · LinkedIn · email · 🇺🇸 🇳🇱

Hoi, ik ben Iljitsch van Beijnum. Dit zijn al mijn posts die niet werk-gerelateerd zijn.

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

Nogmaals het SoZa-gebouw, nu bij wat meer licht

Image link - posted 2021-11-28 in

Ben benieuwd hoe lang het oude gebouw van het ministerie van sociale zaken nog staat

Image link - posted 2021-11-27 in

De coronapandemie bestrijden is niet als fietsen

Bij het fietsen moet je continu balanceren om niet naar links of naar rechts om te vallen. Hierbij loop je het risico om te snel bij te sturen, terwijl je al de goede kant op ging. Dus schiet je nog harder de andere kant op om dat weer te compenseren. Vandaar het geslinger van een beginnende fietser.

Het kabinet past die logica toe op het bestrijden van de pandemie: neem maatregelen, wacht dan zo'n twee weken of die effect hebben, ga dan eventueel denken over nieuwe maatregelen.

Volledig artikel / permalink - geplaatst 2021-11-23

Nokia 6310i, still going strong after all these years

Image link - posted 2021-11-21 in

Test post preparing for HTTPS

For some time now there's been a push to move the entire web from HTTP (no encryption) to HTTPS (with encryption).

I never felt it was necessary to encrypt static content. But the time has come to cave to peer pressure, and enjoy a few benefits such as the ability to post images to web forums.

However, I still feel very strongly about everything remaining accessible over HTTP. If you go HTTPS-only, you are now relying on a certificate authority (as well as your own ability to keep certificates up to date!), and you're cutting off some older systems and losing some performance. Also, having to change everything wholesale will be somewhat of a nightmare.

Full article / permalink - posted 2021-11-20

oudere posts

Search for:
RSS feed

Archives: 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021