Changeset 19950


Ignore:
Timestamp:
01/13/16 10:16:29 (9 years ago)
Author:
Eric.Larour
Message:

CHG: introduce controls on maximum size of radar image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/miscellaneous/converttopowerof2.m

    r19894 r19950  
    1919        width=2^nextpow2(width); length=2^nextpow2(length);
    2020
     21        %make sure the width and length are < 2000:
     22        if width>2^11, width=2^11; end
     23        if length>2^11, length=2^11; end
     24
    2125        %convert image to that size:
    2226        setenv('DYLD_LIBRARY_PATH','/opt/local/lib:/usr/lib');
    2327       
    24         [status,result]=system(sprintf('convert %s -resize %ix%i %s',tiffname,width,length,pngname));
     28        [status,result]=system(sprintf('convert %s -resize %ix%i! %s',tiffname,width,length,pngname));
    2529        system(sprintf('rm -rf %s',tiffname));
    2630
Note: See TracChangeset for help on using the changeset viewer.