Image Transforms adding white to edges of image
As @BradBell says, using Imagick fixed this for me.
Following https://stackoverflow.com/a/16154605/662826 I uncommented the Imagick extension, reuploaded and the compression was much better and white line gone.