@asuffield said:
That's latin naming. Hungarian would be "fkclass".
Hey! I'm Hungarian, you insensitive clod!
@asuffield said:
That's latin naming. Hungarian would be "fkclass".
Hey! I'm Hungarian, you insensitive clod!
@arty said:
You guys are really missing the right way to do it; encode the image as a table full of 1x1 cells with different colored backgrounds. You could make the page a bit smaller by using huffman encoding on consecutive cells and assigning them to entities. Try saving that with your 'right mouse button', geniuses. (And as a bonus, almost nobody will have the patience to wait long enough to load it and take a screenshot).
So help me god. Tested; it works.
<html>
<head>
<title>Image to Table</title>
</head>
<body>
<form id="TheForm" action="imagetotable.php" method="get">
<input type="text" name="fileLocation" />
<input type="submit" name="Go" value="Go" />
</form>
<?php
if ($_GET['fileLocation']) {
if (($h_image = imagecreatefromstring(file_get_contents($_GET['fileLocation']))) == false) {
echo 'Image could not be found, or not a valid image.';
} else {
if (!imageistruecolor($h_image)) {
$h_newImage = imagecreatetruecolor(imagesx($h_image), imagesy($h_image));
imagecopy($h_newImage, $h_image, 0, 0, 0, 0, imagesx($h_image), imagesy($h_image));
imagedestroy($h_image);
$h_image = $h_newImage;
}
// Too lazy to look up the CSS for cell spacing and cell padding
echo '<table border="0" cellspacing="0" cellpadding="0">';
for ($y = 0; $y < imagesy($h_image); $y++) {
echo '<tr>';
for ($x = 0; $x < imagesx($h_image); $x++) {
echo '<td style="background-color: #' . str_pad(dechex(imagecolorat($h_image, $x, $y)), 6, '0', STR_PAD_LEFT) . '; width: 1px; height: 1px;"></td>';
}
echo '</tr>';
}
echo '</table>';
}
}
?>
</body>
</html>
[quote user="cavemanf16"]if you've reached that stage the only logical next stage is just what Alex stated in the "Deal with it" section, and that will ultimately lead to some level of depression about your job, then yourself, then life. It's not a good place to be, no matter the money.[/quote]
I'm already at the end of that sequence. I can tell you that it is a lousy place to be. If the place sucks, GET OUT. Find a job where you will be appreciated. It makes a BIG difference.