Sounds like a bug in ImageMagick or (not very) possibly IIS. You'll probably have more luck asking on the ImageMagick mailing list. The problem is extremly unlikely to be the greater-than test, most likely it's the Ping method that goes into a tailspin.

I wanted to comment on the following piece of code though:

$imgparams{THREED}=5; if ($image_x>$gallerycfg{'3DWIDTH'}){$imgparams{THREED}=1; }else{$imgparams{THREED}=0;} unless ($imgparams{THREED}<2){ &writelog ("Error blah blah $Absolute_URL.",1); &dieerr("The image blah blah inconvenience."); }
Which, really, is very ugly. For one, that longwinded if can be expressed with a lot more brevity: $imgparams{THREED} = $image_x > $gallerycfg{'3DWIDTH'} ? 1 : 0; See perlop for the ternary operator. Much more important though, is your error trapping practice. Perl has mechanisms to recognize an undefined variables as such, even to distinguish between a hash entry with and undefined value and one that doesn't even exist in the hash. In this case something like the following would be a lot more appropriate:
unless (exists $imgparams{THREED}){ &writelog ("Error blah blah $Absolute_URL.",1); &dieerr("The image blah blah inconvenience."); }
Then again, this makes no sense at all in your case, since the previous assignment will always either 0 or 1 to the key, so your error check is never going to trigger. I think what you were really trying to do here was something like this:
my ($image_x, $image_y); unless(($image_x,$image_y) = $image->Ping($Absolute_URL)) { &writelog ("Error blah blah $Absolute_URL.",1); &dieerr("The image blah blah inconvenience."); }

Makeshifts last the longest.


In reply to Re: Undefined value in gt (>) -> 800MB memory usage by Aristotle
in thread Undefined value in gt (>) -> 800MB memory usage by lpoht

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.