PHP Classes

Display an image

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Display an image  
Subject:Display an image
Summary:Display an image from raw image data
Messages:5
Author:Lauren Meyer
Date:2009-06-11 03:54:04
Update:2009-06-12 09:03:15
 

  1. Display an image   Reply   Report abuse  
Picture of Lauren Meyer Lauren Meyer - 2009-06-11 03:54:04
I found a great PHP class that can extract the cover art image from an mp4 file, but it returns the image data in one really long string. I can use file_put_contents() to save the long data sting to a file, such as cover.jpg. Then of course I can display that image on my page, but because I have a huge list of mp4's and am adding to and removing from it all the time, I would rather not extract all the cover art just to save them as more files. My question is this: Using PHP, how can I take raw image data and display it as an image in a page along with other information - without having to save it as a file?

Lauren

There are 4 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.