in reply to Re^4: prevent arbitrary code execution in images
in thread prevent arbitrary code execution in images

Out of curiosity, I tried converting two jpegs to pngs (using convert). One of them became four times bigger, the other one nine times bigger.

(BTW, I also tried converting the same jpegs to gifs, and they became five and six times larger.)
  • Comment on Re^5: prevent arbitrary code execution in images

Replies are listed 'Best First'.
Re^6: prevent arbitrary code execution in images
by paulbort (Hermit) on Sep 16, 2004 at 23:48 UTC
    You discard the conversion output. You just want to know if it worked or not. Like a regex without parens, the only thing you're looking for is metadata.

    --
    Spring: Forces, Coiled Again!