in reply to Perl GD imagecopy

If $jpeg_quality doesn't exist, you are effectively asking for zero quality output. If the copied section of source image has little colour or detail, that could result in poor, perhaps even apparently black output.

Use the default or set $jpeg_quality = 100 to see a big difference.

quality 0 versus quality 100.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Perl GD imagecopy
by natol44 (Sexton) on Dec 28, 2010 at 09:56 UTC
    Voila! Stupid error as I thought, moreover the $jpeg_quality parameter was set in my other script! Thanks a lot :)

      use strict; would have caught this error, or at least forced you to declare $jpeg_quality, and then hopefully you would have thought about giving it a value too.