|
Posted by Alvaro G. Vicario on 12/11/05 16:53
*** NurAzije escribió/wrote (11 Dec 2005 02:46:45 -0800):
> I ment the quality of images, I want them to be lighter for download,
> for example, some images are 2MB in JPG, by Adobe Photoshop or
> Fireworks or even Microsoft Imaging I can lower its size in MB to KB
> and change in it dimensions nothing.. Do understand me now, I have a
> website with images wich are too big for download..
So you want to increase the JPEG compression ratio in order to get smaller
files through decreasing picture quality.
In the "Image Functions" chapter in PHP manual, imagejpeg() looks like what
you're looking for. Read the whole index though, since there may be other
useful functions.
Also, there's a suite called ImageImagick with several command line tools
for image processing. It's installed in most Linux servers and is a faster
alternative to native PHP functions. You can use it via exec() or system().
--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--
[Back to original message]
|