I have a gallery of miniatures of images. After clicking on one of them, a full size equivalent opens in a new tab. Let's say I have many versions for the image .jpg,.gif and .png
. How can I modify my file so that a proper (most wanted by the browser) file is displayed?
My firefox's preferences are:
user_pref("network.http.accept.default", "text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg;q=0.8, image/gif, image/x-xbitmap, */*;q=0.1");
and my .php file:
<?php
$source = $_GET['source'];
echo '<img src="images/watermarked/'.$source.'" alt="File not found."></img>';
?>