I'm working on developing a Webcam portal for Scandinavia, and would need some help.
There are about 300 webcams portal, (we have been given permission to display them).
Given that several webcam operators/owners do not want everyone to be able to see the direct link to their cameras, I had to "hide" the links using a php-file.
I collect and read all external images via a php file, and this makes the images load very slowly.
Is there an ultimate way to speed this up?
Below are parts of the code that I use to view the images.
$bild = "link-to-external-image";
header ("Content-type: image/jpeg");
$string = "mydomain.com";
$font = 4;
$width = imagefontwidth($font) * strlen($string) ;
$height = imagefontheight($font) ;
$im = imagecreatefromjpeg($bild);
$x = imagesx($im) - $width -5;
$y = imagesy($im) - $height -5;
$backgroundColor = imagecolorallocate ($im, 255, 255, 255);
$textColor = imagecolorallocate ($im, 255, 255, 255);
imagestring ($im, $font, $x, $y, $string, $textColor);
imagejpeg($im);