I’ve created a little script miniature.php witch echo a thumbnail from the image given by GET.
Another script cover.php echo the cover image of a .mp3 file.
I use both like this on my pages:
<img src="miniature.php?maxWidth=300&img=img/image.jpg" />
<img src="cover.php?file=files/beat it.mp3" />
Both works well.
But I would like to make a miniature from a cover, and I may need something like this:
<img src="miniature.php?maxWidth=300&img=cover.php?file=files/beat it.mp3" />
And… this does not work.
Is it possible to do something like this without saving the cover image before sending it to miniature ?
If you are using file_get_content (or similar function) in your miniature.php using full encoded url of cover.php it is possible. Result url should be something like:
Note that you need to encode files/beat it.mp3 two time.