Please select Into the mobile phone version | Continue to access the computer ver.
Script to resize JPG
680 2 1-21 03:52
Uploading and Loding Picture ...(0/1)
o(^-^)o
spandit
lvl.4
Flight distance : 51070 ft

Offline

This forum has a 1000kb limit for picture uploads and finding a solution to reduce files to this size wasn't as easy as I'd have expected so I wrote a little BASH script that iterates through various sizes and keeps the largest one closest to 1000kb. It requires ImageMagick (convert) and needs to be run as follows:

./resize.sh myfile.jpg

It will output myfile_sm.jpg which should be as close to 1000kb as possible




resize.sh.zip

543 Bytes, Down times: 0

1-21 03:52
Use props
eYeSkYeYe
Captain

Croatia
Offline

And what's exactly the benefit of script over using ImageMagick straight?
1-31 08:28
Use props
spandit
lvl.4
Flight distance : 51070 ft

Offline

eYeSkYeYe Posted at 1-31 08:28
And what's exactly the benefit of script over using ImageMagick straight?

Because I couldn't get IM to output a JPEG that was as close to 1 megabyte as possible. If you know a way then please share.
1-31 08:55
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules