• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 965
  • Last Modified:

how do I reduce file size when using imagepng()?

the pngs I create with imagepng() are inordinately large (roughly 250K for a 400X400 image).

is there an easy way to reduce the file size while not affecting the image quality too much?
0
bitt3n
Asked:
bitt3n
1 Solution
 
star_trekCommented:
check out this link
http://us3.php.net/manual/en/function.imagepng.php

and look for comments of adrenalin
0
 
bitt3nAuthor Commented:
thanks star_trek

that decreases size about 7X which is great.. I am curious about one thing.. If I change the number of colors to convert from 255 to 255X255 (65 025), I would assume that the quality and size would go up, but the quality looks the same, and the size is only slightly larger. Why doesn't increasing the colors increase the size/quality? (although the only pictures in which I noticed any significant decrease in quality were cell phone pictures.. the others look almost the same)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now