Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pixelate an image

Status
Not open for further replies.

rmoyes02

IS-IT--Management
Dec 4, 2002
53
US
Hi, I need to have a php webpage that allow a user to specify a .jpg on their hard drive, then display that picture on the webpage in an extremely pixelated form. For example, it could shrink that image to 20x20 (original = 200x200), then expand that image to 200x200. So that it appears to be severly pixelated.

Any help on how to get started would be much appreciated.

Thanks!
 
Well, you'll probably want to look into the GD family of functions for PHP:

These will allow you to manipulate images in many different ways.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
If doing this in a web page, it may be best to reduce the image to 20x20 pixels through GD or your favorite image processor function, and then render the image in the web page scaled back to its 200x200 size only through HTML. Rescaling the image file again from 20x20 to 200x200 through an image processor would mean wasted bandwidth with larger image file sizes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top