#!/bin/bash convert $1.tif -define numrlvls=6 -define jp2:tilewidth=1024 \ -define jp2:tileheight=1024 -define jp2:rate=1.0 -define jp2:lazy \ -define jp2:prg=rlcp -define \ jp2:ilyrrates=0.015625,0.01858,0.0221,0.025,0.03125,0.03716,0.04419,0.05,0.0625,0.075,0.088,0.1,0.125,0.15,0.18,0.21,0.25,0.3,0.35,0.4,0.5,0.6,0.7,0.84 \ -define jp2:mode=int $1.jp2