From 1647071aa7d56f6b2e63153b1bc13d112229d6a1 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 29 Mar 2020 03:17:09 +0200 Subject: Adde blockquotes styles --- content/2020-03-27-create-placeholder-images-with-sharp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/2020-03-27-create-placeholder-images-with-sharp.md') diff --git a/content/2020-03-27-create-placeholder-images-with-sharp.md b/content/2020-03-27-create-placeholder-images-with-sharp.md index 1386b2f..ec6fadd 100644 --- a/content/2020-03-27-create-placeholder-images-with-sharp.md +++ b/content/2020-03-27-create-placeholder-images-with-sharp.md @@ -49,7 +49,7 @@ All this code was wrapped inside a web service with some additional security che And at that point I needed to return placeholder images as a response in case key is missing or x,y are not allowed by the server etc. I could have created PNG in Gimp and just serve them but I wanted to respect aspect ratio and I didn't want to return some mangled images. -**ⓘ** Main problem with finding a clean solution I could copy and paste and change a bit was a task. API is changing constantly and there weren't clear examples or I was unable to find them. +> Main problem with finding a clean solution I could copy and paste and change a bit was a task. API is changing constantly and there weren't clear examples or I was unable to find them. ## Generating placeholder images using SVG @@ -80,4 +80,4 @@ const generatePlaceholderImageWithText = async (width, height, message) => { That is about it. Nothing more to it. You can change the color of the image by changing `background` and if you want to change text styling you can adapt SVG to your needs. -**ⓘ** Also be careful about the length of the text. This function positions text at the center and adds `20px` padding on all sides. If text is longer than the image it will get cut. +> Also be careful about the length of the text. This function positions text at the center and adds `20px` padding on all sides. If text is longer than the image it will get cut. -- cgit v1.2.3