Forums :: Blogs :: Blog Entry for 15 August 2005 21:30:21 GMT

15th August 2005 21:30:21 GMT
Blog Entry for 15 August 2005 21:30:21 GMT
Rob
Rob's avatar

Seraphic/8X
85 post(s) since
24th November 2004 22:22:29 GMT
One small addition - ensuring images embedded in blogs, forum posts and guestbook entries are valid.  Images must be valid jpegs or gifs, and no larger than 640 pixels wide and 480 pixels tall.

For example, the code...

/old/piccies/Cat2.gif

notavalidimagefile

http://upload.wikimedia.org/wikipedia/en/c/cf/Red_Vs_Blue_Poster.jpg


...generates the following...

/old/piccies/Cat2.gif
notavalidimagefile
h__p://upload.wikimedia.org/wikipedia/en/c/cf/Red_Vs_Blue_Poster.jpg

The first works because the image is a valid gif and is only 81 * 79 pixels.  The second isn't a valid image file, and the third is too large (828 * 1,024 pixels).

I should probably implement some method of entering mark-up tags without having them turned into HTML.  It'd save me having to fool the parser by placing a space in the opening tag.
"Prepare for an oblivion for which there is no preparation." - O'Malley (Red Vs Blue)

Add Post

You must be Archangel/1B or greater to add posts to this thread.

Valid XHTML 1.1 Strict Valid CSS