I am trying to output an image to a browser and then output HTML (not directly related to the image) on the same page. Is this possible? I am having a heck of a time figurin
See the following question and answers: Base64 Encoding Image.
You have to can encode your image using base64_encode()
and then output it within
tag like that:
(see this jsfiddle for a proof).
You can generate image outside of the script that generates HTML. In such case you will need to generate HTML here and set src
attribute of
tag to the location of the script generating the image. See @Rodin's answer for a slightly more detailed answer regarding this solution.
Did it work? Do you need any more help?