Thanks for a great product

Post here to shower the ImageMagick developers with praise or discuss how you could have done a better job if you developed ImageMagick. Or talk about how Photoshop is better than ImageMagick. Even complain about how no one answered your postings in the Users forum. Venting and musings welcomed here.
Post Reply
pipe
Posts: 28
Joined: 2013-04-09T08:32:37-07:00
Authentication code: 6789

Thanks for a great product

Post by pipe »

Just wanted to thank you people for ImageMagick, I've been using it for various things over the years. Here's my latest project:

http://www.natrox.org/ami/blizzard1260.png (Warning, 16 MB PNG)

I had to debug an old circuitboard, and to do this I had to recreate the component traces. I scanned the board on two sides, then I used ImageMagick -distort Perspective to correctly align the front and back side so that I could follow every drilled hole in the board. After that, I used gnuplot to create a color-correction polynomial for each side so that the same type of component on both sides would get the same color. I applied the function with -fx in the CIELab colorspace. Then I used a plain -resize in a linear colorspace to get the size down to something more managable than the original high resolution scan, finally converting it to a 24-bit PNG.

This was all done in one command without using any temporary storage, as to maintain as much information as possible until the last stage. None of this could have been done in Gimp, the tool I normally use whenever I don't care much about quality and precision. I did however use Gimp to locate correction points for the perspective correction and to locate areas from where to sample colors.

Here's an seizure-inducing animation to show how well the perspective correction managed to align both sides. It's mostly visible in the small holes around the edge of the board. The original boards were slightly distorted because of my scanning method.

Image

EDIT: Forgot to mention that none of this would have been possible without Anthony's great site about usage examples. I don't think anyone can actually use ImageMagick without those. :)
Post Reply