Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
There's only one drawback: it is so extremely slow. For a DIN-A4 page in 600 DPI and Disk:120 (that is 5mm), it is running for hours and still not ready .
BTW: the documentation of the perlmagic API seems to be very outdated. The "method" argument to Morphology() method is not documented at all. Here is how it should be called:
snibgo wrote:Scaling your example up x10, so 3000x3000 pixels, took only 2 minutes. Do you have a memory problem?
Don't think so. 4GB. Still running after about 9 hours.
BTW: A4 at 600dpi is 4961x7016. But the real problem is probably the Disk:120.
If you provide your actual image, and explain what you need, you might get better advice. (But I don't do Perl.)
I'd need to ask for permission first.
In a nutshell: this is for printing labels. I have an image which describes the shape of the labels. The actual label is transparent, the rest is (almost) white. I want to print right to the border, and a little over the border, to adjust for printer/label inaccuracy. So the plan is to widen the transparent area by 5mm so the printed picture would be a little bigger than the label.
snibgo wrote:Is the printing area rectangular, as in your original example? Finding those dimensions can be done very quickly.
Not really. There are various types of curves. But there is no requirement for high precision in this step.
I think I would get a good result by shifting a copy of the original by 5mm to nw/ne/sw/se and overlay those copies over the original with In or Dstin. This should be quite fast and would be good enough for this particular application.