Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

compressing PNG images

$
0
0

I have a script that captures PNG images from a 3rd party server, I then save them on my server using  this code, forcing them to 45x45

 

<cfimage

    action = "resize"

    height = "45"

    width  = "45"

    source = "#objImage#"

    destination = "#newFileName#"

    overwrite = "yes">

 

The issue I see is that the file sizes are nowhere near as low as they could be, I dropped a few of them into tinypng.com and they can be reduced by as much as 75%, and at least 50% with no noticeable loss in visual quality.

 

The question is, does anybody have a method to compress PNG's? I see that the quality="" is only suitable for JPGS

 

Btw I'm running this on CF8


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>