Fast image sharpning

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Crowe

    Fast image sharpning

    Hi guys,

    We've got a content management system in PHP that allows users to upload
    images that are resized and sharpened.

    The resizing is done using the GD libraries resampling function and to
    sharpen it I use a convolution function that goes though every pixel in the
    image and using the neighboring pixels plots the new value over it.
    Unfortunatly the convolution is rather slow and takes a long time (I guess
    because there are so many loops involved).

    Is there a quicker way to sharpen an image? I've tried using the command
    line program ImageMagick but unfortunatly I can't get it to work (see my
    previous post), are there any optimised sharpen functions or pluggins for
    PHP that would speed the process up?


    Thanks,
    Andrew


Working...