News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kae Verens' Blog:
pre-parsing HTML for incorrectly-sized images
July 29, 2008 @ 12:03:55

Kae Verens has a recent blog post that looks at a method for helping to protect users from themselves when working with images - a method for handling ones incorrectly sized.

Every now and then, I get a call from a client who is puzzled why their site is running slow. I would look at their page and see an innocuous image inserted into a paragraph. When I examine the image, though, I see that the client has artificially resized the image using HTML. One recent example showed on-screen as a 300px-wide image. When I examined it, it was actually 3000px wide (approx).

The script looks through some HTML markup and, based on the sizes in the image tags, resizes the images appropriately. An example and the source are provided.

0 comments voice your opinion now!
html image size height width parse resize


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Parsing XML documents with CSS selectors

FuzzyOpinions Blog: Tutorial: improving security with a PHP Captcha

Joshua Eichorn's Blog: Understanding AJAX Digital Shortcut Available

Jacob Santos' Blog: XMLHttpRequest Quirks and PHP

Mike van Riel's Blog: Introducing: DocBlox


Community Events

Don't see your event here?
Let us know!


release unittest api wordpress laravel language framework library feature development extension interview threedevsandamaybe series community voicesoftheelephpant introduction laravel5 opinion podcast

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework