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

Jason Stephenson jason at sigio.com
Wed Aug 21 14:42:15 EDT 2019


Will,

(This time to the list. Apologies to Will who gets this email twice.)

Funny thing you should mention this here.  Rogan brought it up in IRC
and a couple of us chimed in that it should work.

You should also be able to embed SVG graphics in your templates as well:

https://www.w3schools.com/html/html5_svg.asp

Cheers,
Jason


On 8/21/19 2:12 PM, Will Matheson wrote:
> 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
> 


More information about the Open-ils-general mailing list