Changeset 19950
- Timestamp:
- 01/13/16 10:16:29 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/miscellaneous/converttopowerof2.m
r19894 r19950 19 19 width=2^nextpow2(width); length=2^nextpow2(length); 20 20 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 21 25 %convert image to that size: 22 26 setenv('DYLD_LIBRARY_PATH','/opt/local/lib:/usr/lib'); 23 27 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)); 25 29 system(sprintf('rm -rf %s',tiffname)); 26 30
Note:
See TracChangeset
for help on using the changeset viewer.