[OPEN-ILS-GENERAL] Silly way to put an image into a receipt

Will Matheson wmatheson at princerupertlibrary.ca
Wed Aug 21 14:12:53 EDT 2019


Hi everyone,

I don't really know how to attach this message to the relevant existing 
discussion, but I thought it was worth mentioning that you can actually 
'embed' an image in your print templates through the 'magic' of base64 
encoding.

Basically, you go to a site like this: https://www.base64-image.de 
<https://www.base64-image.de/> , upload your image, and get the code.

And then put the code inside your <img src="CODE GOES HERE"/> where you 
want it on the template.

Reasons to do this: Local file doesn't work, you don't have access to a 
web server, or the place where the image lives online prohibits 
hotlinking (serving the image through a site / page that's not theirs)

Downside: There's a healthy chunk of AWGewagewavew4236tjivAEWJHGI etc.. 
in your template.

Cheers,

-- 
William Matheson
Library Assistant - Technical
Prince Rupert Library

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20190821/90db1362/attachment-0001.html>


More information about the Open-ils-general mailing list