Picture Compression

(Joel) #1

Hey guys so i have image.jpeg wish is 2.5 MB or bigger. i want to compress the picture so i can use it on web applications. I don’t even know how to approach it. Looked in to too imaging library but maybe i din’t look deep enough only saw options for cropping, blurred version and other options please help with a code sample or point me in the right direction. so i can do better research. thanks.

(Karl Benedict) #2

Will this do?

(Joel) #3

it did i was able to cut my file size in half without getting in much trouble. thanks i appreciate the help.
ended up using this “github.com/disintegration/imaging”. But thanks for pointing me in the right direction.