• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 917
  • 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?
1 Solution
check out this link

and look for comments of adrenalin
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)

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

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