Skip to content

Peter Forret

setver: Package (semver) version management for bash/PHP/Node

When you’re creating software packages that will be used by other people, you need to get your versioning in order. For PHP libraries, this means: both the version number in composer.json as well as the git tag for Github/Bitbucket. For node.js projects, the version is kept by npm in package.json. It was always too easy to make small mistakes. So I decided to make a bash script <strong>semver.sh</strong> to manage it for me.

Best way to upscale low resolution photos

I’ve been doing some remote shoots recently, as the photographer obviously, and I’ve mainly used FaceTime ‘Live photos’ for captures. The result of such a shoot is a series of .HEIC files (it’s an Apple thing). Each file is a combination of a low-res 3-second movie with a mid-res image file. The image file, which is the one that interests me, is a 716×1280 pixels heavily compressed one. This is not a lot of pixels to start with in Lightroom/Photoshop. I found that it is possible to upscale such an image to 400% (2864×5120), and use this new big image to comfortably do the post-processing. Let me show you the best way to upscale low resolution photos to high resolution!

How to do a remote portrait photo shoot

COVID19 has had a huge impact of pretty much everything. For portrait photography, the 6-feet-apart, no-travelling, use-mouth-mask lockdown had made it almost impossible to do an in-person photo shoot. But every limit is also a challenge, Is it possible to do an interesting remote shoot via the internet? The answer is yes. I will give you some tips on how to do this.

QR Experiments: QRoulette

I started to do some QR code (two-dimensional matrix barcode) experiments recently and this is the first result: I developed an animated QR code, ‘QR Roulette‘ or QRoulette.

Making the Pixel Movie Quiz

Imagemagick is a command-line tool to create and modify image files. It is an essential program if you want to work with media files (just like ffmpeg and sox). I have used it very often in my career and I still discover new applications. This blog post is about one of these experiments. How few pixels does one need to recognise a familiar/known image, in this case a movie poster? I created the Pixel Movie Quiz.

When the API returns an image

I see more and more Image-Response GET APIs. With this term I mean: the API is called with a GET URL, and the response is a (JPG/PNG/GIF/WEBP/SVG) image, either directly or after a redirect. So the API can be used through a simple <img src="[IMAGE GENERATING URL"> HTML tag. Let’s call these IMGSRCAPI‘s.