in reply to Image anti-aliasing using GD and Image::Magick

Just glancing at the documentation for IM, setting the attribute is passive. At a guess, you would at least have to reload the image, but more likely, you would have to scale the image—for AA, often you go from a larger image to a smaller image. This creates a kind of 'super' pixel which is filtered to determine the new color value. I noticed that IM has plenty of filters and effects to play with, so there should be some combination that gets you what you are looking for. Try super search here and google looking for AA information. There is lots on the net, this is a big subject (AA, not necessarily IM)

–hsm

  • Comment on Re: Image anti-aliasing using GD and Image::Magick

Replies are listed 'Best First'.
Re: Re: Image anti-aliasing using GD and Image::Magick
by giulienk (Curate) on Dec 09, 2001 at 00:02 UTC
    Thank you for your advice.
    I think i can get good results creating a larger image and then scaling it down with something like this:
    #this is the default example for GD::Graph3D use GD::Graph::bars3d; use Image::Magick; my @data = ( ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], [ 1203, 3500, 3973, 2859, 3012, 3423, 1230] ); my $graph = new GD::Graph::bars3d( 800, 600 ); #BIG image $graph->set( x_label => 'Day of the week', y_label => 'Number of hits', title => 'Daily Summary of Web Site', ); my $gd = $graph->plot( \@data ); #here the interesting part my $image=Image::Magick->new(magick=>'png'); $image->BlobToImage($gd->png); $image->Resize(width=>400, height=>300); #small and anti-aliased one $image->Write('graph3d.png');

    gkinueliileunikg