I have been searching everywhere and can't seem to find an answer to this problem.
I have a function that will automatically resize an image (or create a thumbnail)...and it works! kinda...
The following two commands work:
Exec("/path/to/convert -geometry \"400"."x"."400\" -quality \"50\" \"/path/to/image\" \"/path/to/image\"");
and...
Exec("/path/to/convert -size \"400"."x"."400\" \"/path/to/image\" -resize \"400"."x"."400\" +profile \"*\" \"/path/to/image");
However, the resulting saved image has a band of broken pixels at the bottom of the image...like this:

Does anyone have any idea what is causing this?
Thanks!