Answers.Body: <p>As @BradBell says, using Imagick fixed this for me.<br>
  Following <a href="https://stackoverflow.com/a/16154605/662826">https://stackoverflow.com/a/16154605/662826</a> I uncommented the Imagick extension, reuploaded and the compression was much better and white line gone.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-29T14:30:32.580Z
Answers.Text: ImageMagick does seem to fix the issue, as long as you re-upload the affected images.
Answers.UserDisplayName: Tam
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-29T13:28:20.087Z
Answers.LastActivityDate: 2015-07-29T13:28:20.087Z
Answers.LastEditDate: 2017-05-23T12:38:53.957Z
Answers.UserDisplayName: Sebastian Thomas
Answers.Body: <p>I think this might have happened due to a Craft update. You can see the difference between these two blog posts</p>
  
  <p>July 16 - <a href="http://roseandmary.com/blog/2015/friends-family-tasting-event" rel="nofollow">http://roseandmary.com/blog/2015/friends-family-tasting-event</a><br>
  July 07- <a href="http://roseandmary.com/blog/2015/the-rose-mary-team" rel="nofollow">http://roseandmary.com/blog/2015/the-rose-mary-team</a></p>
  
  <p>The last post image doesn't have the border and every image uploaded since gets a single px white border.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-12T08:10:51.017Z
Answers.Text: With communication with Pixel & Tonic and this is caused by some older versions of the GD image library. Using ImageMagik will help and there should be a fix for the GD issue in an upcoming update of Craft CMS.
Answers.UserDisplayName: Gnative
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-11T08:26:08.453Z
Answers.LastActivityDate: 2015-08-11T08:26:08.453Z
Answers.UserDisplayName: Gnative
Body: <p>I have my image transforms set to crop centre-centre with quality 100, but for some reason the images that are rendered have a high change of having 1 or 2 pixels of white added to at least one set of parallel sides.</p>
  
  <p>See below for an example of what is being output (black background added after the fact for emphasis):</p>
  
  <p><a href="https://i.sstatic.net/Ph8aT.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Ph8aT.jpg" alt="Example of issue"></a></p>
  
  <p>The original image was a JPG with no white border. As far as I can tell, the issue is most prevalent when trying to crop in only one direction. For example, the the image above should only be being cropped on the top and bottom, as the width of the original is the same as the width of the outputted image.</p>
  
  <p>Has anyone else come across this issue? If so, is there a fix?</p>
  
  <p><em>Running locally on MAMP with PHP 5.6.10, using GD. Craft Pro 2.4.2679</em></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-27T17:24:53.710Z
Comments.Text: MAMP has Imagick bundled, but you need to edit your php.ini file to un-comment it.  Try that and see if the issue goes away.
Comments.UserDisplayName: Brad Bell
Tags: <image><image-transforms>
Title: Image Transforms adding white to edges of image
ThreadText: # Image Transforms adding white to edges of image
  
  (Asked by: username_0 on 2015-07-27)
  
  I have my image transforms set to crop centre-centre with quality 100, but for some reason the images that are rendered have a high change of having 1 or 2 pixels of white added to at least one set of parallel sides.
  
  See below for an example of what is being output (black background added after the fact for emphasis):
  
  [![Example of issue](https://i.sstatic.net/Ph8aT.jpg)](https://i.sstatic.net/Ph8aT.jpg)
  
  The original image was a JPG with no white border. As far as I can tell, the issue is most prevalent when trying to crop in only one direction. For example, the the image above should only be being cropped on the top and bottom, as the width of the original is the same as the width of the outputted image.
  
  Has anyone else come across this issue? If so, is there a fix?
  
  *Running locally on MAMP with PHP 5.6.10, using GD. Craft Pro 2.4.2679*
  
  **Tags:** image, image-transforms
  
  > **Comments:**
  > **username_1**: MAMP has Imagick bundled, but you need to edit your php.ini file to un-comment it.  Try that and see if the issue goes away.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-07-29. Score: 1 | Accepted answer
  
  As @username_1 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.
  
  > **Comments:**
  > **username_0**: ImageMagick does seem to fix the issue, as long as you re-upload the affected images.  
  
  ---
  
  ### Answer by username_3 on 2015-08-11. Score: 0
  
  I think this might have happened due to a Craft update. You can see the difference between these two blog posts
  
  July 16 - <http://roseandmary.com/blog/2015/friends-family-tasting-event>  
  July 07- <http://roseandmary.com/blog/2015/the-rose-mary-team>
  
  The last post image doesn't have the border and every image uploaded since gets a single px white border.
  
  > **Comments:**
  > **username_3**: With communication with Pixel & Tonic and this is caused by some older versions of the GD image library. Using ImageMagik will help and there should be a fix for the GD issue in an upcoming update of Craft CMS.  
  
  ---
  
  