[pskmail] Image compression with crop

  • From: Pär Crusefalk <per@xxxxxxxxxxxx>
  • To: pskmail@xxxxxxxxxxxxx
  • Date: Thu, 30 Sep 2010 11:08:45 +0200

Hi all,

During the conference we discussed how I get satellite images of the ice
situation suurrounding the north pole and specifically how to make them
transferable over a pskmail connection. To make a long topic short I
curl the images and then compress and crop them using imagemagick.

The large image is abt 2.1 MB and the smaller are abt 2 kB, all done on
the fly from cron with this script:

curl -s http://iup.physik.uni-bremen.de:8084/amsr/Arctichesky_nic.png >
Arctichesky_nic.png
curl -s
http://iup.physik.uni-bremen.de:8084/amsr/arctic_AMSRE_nic_small.jpg >
arctic_AMSRE_nic_small.jpg
curl -s http://iup.physik.uni-bremen.de:8084/amsr/arctic_AMSRE.tif >
arctic_AMSRE.tif

convert Arctichesky_nic.png -crop 390x160+695+1125
arcticIce_Arctichesky.png
convert arctic_AMSRE_nic_small.jpg -crop 55x105+250+260
arcticIce_NEpassage1.jpg
convert arctic_AMSRE_nic_small.jpg -crop 120x45+145+245
arcticIce_NEpassage2.jpg
convert arctic_AMSRE_nic_small.jpg -crop 60x75+115+265
arcticIce_NWpassage1.jpg
convert arctic_AMSRE_nic_small.jpg -crop 55x80+125+340
arcticIce_NWpassage2.jpg

convert arctic_AMSRE.tif -crop 120x150+710+740 -quiet
arcticIce_NEpassage1.tif
convert arctic_AMSRE.tif -crop 290x110+420+645 -quiet
arcticIce_NEpassage2.tif
convert arctic_AMSRE.tif -crop 140x180+280+705 -quiet
arcticIce_NWpassage1.tif
convert arctic_AMSRE.tif -crop 140x180+280+885 -quiet
arcticIce_NWpassage1.tif

# compress
convert arctic_AMSRE_nic_small.jpg -quality 8 -crop 210x210+100+200
arctic_AMSRE_nic_lowquality.jpg

73 de Per, sm0rwo



Other related posts:

  • » [pskmail] Image compression with crop - Pär Crusefalk