in reply to Why does GD draw thicker lines on rotate?

You showed no code, but I believe anti-aliasing should explain it.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Why does GD draw thicker lines on rotate?

Replies are listed 'Best First'.
Re^2: Why does GD draw thicker lines on rotate?
by Medri (Initiate) on Feb 17, 2014 at 10:36 UTC
    Thank you for your reply, it was the same as my superviser suggested :) I have no idea how to get rid of it, yet. Here is the code for the rotate. To get the 'step edge' images correct, I have to rotate a larger image and then crop it to the right size.
    sub rotate { my ($img, $path) = @_; my @degrees = qw(45 90 135 180 225 270 315); my $cropped_orig = crop_image($img); my %images = (0 => $cropped_orig); foreach (@degrees) { my $image = GD::Image->new(CANVAS, CANVAS); $image->copyRotated($img, 32, 32, 1, 1, 64, 64, $_); $image = crop_image($image); $images{$_} = $image; } return \%images; }
      Did you ever solve this? I too have the same issue... Not sure what you mean re. rotating a larger image and then cropping.