Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Selecting Text In Images - Pure SVG, No JavaScript

· 8 comments · 400 words · Viewed ~1,335 times


Recently, I wanted to embed an photograph of a book page. I thought it would be nifty if the text from the page could be selected. If you hover your mouse over this image, you should be able to select part of the text. Ideally, it will look something like this... It even works on Android (tried on Chrome, Opera, FireFox) and iOS 7. So, how did I do it? Originally, I was pointed to…

Inkscape - cropping SVG files on the Command Line

· 9 comments · 200 words · Viewed ~12,455 times


Logo for Inkscape.

A little post as an aide-mémoire. I've found a lovely set of SVG playing cards. The only problem is each image is displayed within a page. This means the relatively small cards have an enormous white margin. Within Inkscape (the vector image editor for Linux) it's possible to crop the margins by going to: "File → Document Properties → Resize Page To Content → Resize page to Drawing or Select…