Support » Plugin: EP Image Base64 Encode » Encoding images in a variable

Viewing 1 replies (of 1 total)
  • OK, I succeeded.

    Now I need help getting it to display in a Crayon Syntax Highlighter.. Base64 encoded content seems to kill it. I posted a topic in the plugin’s support forum.

    FWIW, to get the plugin to work with a variable, I pulled away the class and modified the parse function as follows:

    $my_content = preg_replace_callback(
    				'return "<img$matches[1]src=\'".(my_fetchurl($matches[2]))."\'$matches[3]/>";'


Viewing 1 replies (of 1 total)
  • The topic ‘Encoding images in a variable’ is closed to new replies.