From 933e2333576540b9410cecc104f47c7d6a8765cd Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 24 Mar 2009 15:52:39 +0000 Subject: [PATCH] stuff --- ChangeLog | 1 + libsrc/iofuncs/im_open.c | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d93f50dc..934244a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ - added im_float2rad() - added IM_CODING_RAD, support where it makes sense (extract, flip, rotate, etc.) +- IM_PROGRESS env var 3/3/09 started 7.17.2 - im_magick2vips.c: allow funky bit depths, like 14 (thanks Mikkel) diff --git a/libsrc/iofuncs/im_open.c b/libsrc/iofuncs/im_open.c index 7b050e27..59c0b8e9 100644 --- a/libsrc/iofuncs/im_open.c +++ b/libsrc/iofuncs/im_open.c @@ -148,12 +148,6 @@ Modified: */ int im__progress = 0; -void -im_progress_set( int progress ) -{ - im__progress = progress; -} - /* Delayed save: if we write to TIFF or to JPEG format, actually do the write * to a "p" and on preclose do im_vips2tiff() or whatever. Track save * parameters here. @@ -425,7 +419,7 @@ im_open( const char *filename, const char *mode ) /* Attach progress feedback, if required. */ - if( im__progress ) { + if( im__progress || g_getenv( "IM_PROGRESS" ) ) { Progress *progress = IM_NEW( im, Progress ); progress->im = im;