Re: Re: photo file size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2008-10-01 at 18:34 +0200, Maciek Sokolewicz wrote:
> elk dolk wrote:
> > 
> > 
> > 
> > Hi All,
> > 
> > I  have some photos with  different file sizes like 100KB 125KB 200KB ,…
> > I  want to shrink them and reduce the
> > file size to Max 60KB  without sacrificing image
> > quality and size!
> 
> Without sacrificing size AND quality? So you don't want to lose enough 
> data to get to a max 60KB amount, without actually losing data... wow, 
> that won't be easy; or even better, it will probably not even be 
> possible.

Maybe he has uncompressed bitmaps (yeah I know it's unlikely :)

>  Changing formats makes the size smaller, but always loses some 
> detail/modifies the image slightly (eg. from bmp to png loses alot of 
> data, but unfortunately also some (little) quality).
> 
> So, decide which you want to sacrifice, and do it.

Depedning on how his files are stored, he may get some extra compression
out of a PNG by upping the compression factor without quality
degradation. If he has uncompressed bitmaps he will benefit greatly. I
think I've found alos that jpg compresses better than gif (with 100%
quality setting). Beyond that a 5 to 10% quality loss on jpg is often
minimally adverse to the the visibility but strongly depends on what
kind of detail is in the picture.

>  > PHP should have a solution for reducing the size of files in Batch.
> it does, it's called writing a function and calling it for each of the 
> files in the batch.
> 
> 
>  > Please comment.
>  > thanks
> Your request is unreasonable and should be better phrased :)

Certainly could use some improvement.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux