Jump to content


Photo

I know this isn't php...


  • Please log in to reply
3 replies to this topic

#1 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 11 August 2006 - 01:09 PM

How do I optomize images to be smaller and load quicker?

EDIT BY OBER: Please do not use all CAPS in titles or text of messages.  It will be edited.

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 11 August 2006 - 02:16 PM

Open the images in any photo editor (Photoshop, Corel Photo, Picasa, MSPaint, etc).  All these programs have a "resize", "optomize", or some other similar option that will allow you to modify the pictures in regards to size and disk space.

Info: PHP Manual


#3 Koobi

Koobi
  • Staff Alumni
  • Advanced Member
  • 419 posts
  • LocationColombo, Sri Lanka | South Asia

Posted 11 August 2006 - 02:20 PM

also image format is important.

for things like photo's that have many colours, it's better to use a JPG since it has quite a wide colour range and has very good compression that is configurable at the cost of being less clear, however.

GIF's are great for images with a limited colour range...however i would prefer PNG's...the problem with PNG's is that if you have partial transparency (alpha layer), then IE is gonna show you a blue box instead of the partially transparent block...this can be overcome with CSS hacks but hacks are a bad idea, in my opinion.


i generally go with PNG's for most things. i ,rarely, if ever, use JPG's or GIF's.


another interesting format is the MNG which is the brother of PNG (or was it the cousin? or the aunt? whoever decides how they are related anyway? :D) and is similar to an animated GIF, in that, it has the same colour range of a PNG (more or less) but can be animated since it can hold multiple frames.

#4 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 12 August 2006 - 02:58 AM

I generally use JPG or PNG... with an occasion GIF
Why doesn't anyone ever say hi, hey, or whad up world?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users