Search found 11 matches

by magiotrope
2012-12-16T21:12:35-07:00
Forum: PerlMagick
Topic: PerlMagick +append
Replies: 1
Views: 12699

PerlMagick +append

HI, all a couple of questions: (1) at the command line, I can do this: convert pic1.jpg pic2.jpg +append stitched_horizontally.jpg How do I do the same with PerlMagick ?? (2) along the same lines: if I have two handles -- one obtained through $handle1->Read('path1.jpg') and the other obtain though m...
by magiotrope
2012-06-09T00:27:32-07:00
Forum: PerlMagick
Topic: annoying failure with thresholding
Replies: 4
Views: 17558

Re: annoying failure with thresholding [SOLVED]

can you provide a link to your image? and tell us exactly what your command line is and what version of IM and platform you are using? I solved my problem. It was the destination format. Duh! I was thresholding the original image and then saving it back to a jpg, with default compression quality th...
by magiotrope
2012-06-07T15:21:26-07:00
Forum: PerlMagick
Topic: annoying failure with thresholding
Replies: 4
Views: 17558

Re: annoying failure with thresholding

convert 50% in.jpg out.jpg I do not use or know perl, but the above in not correct. It should be convert in.jpg -threshold 50% out.jpg yup, sorry -- that was a typo on my part. I have been trying it with the CORRECT syntax, like the one you spelled out. What I said originally still stands -- the im...
by magiotrope
2012-06-07T07:33:11-07:00
Forum: PerlMagick
Topic: annoying failure with thresholding
Replies: 4
Views: 17558

annoying failure with thresholding

This might be a general imagemagick issue rather than perl-specific, but I'm using perl (and command-line convert) So far, imagemagick thresholding is, at best, flaky for me, or even downright useless. Gimp's Colors->Threshold removes light-gray fuzz from my image, leaving just black and white pixel...
by magiotrope
2012-04-30T03:09:10-07:00
Forum: PerlMagick
Topic: GetPixel failing
Replies: 1
Views: 10454

GetPixel failing

I'm really puzzled the "identify" command returns " JPEG 205x154 205x154+0+0 8-bit DirectClass 48KiB 0.000u 0:00.000" on the image, and it is a color photo I can see with lots of multicolored flowers. when I read it into PerlMagick and iterate over every pixel, like this... for(m...
by magiotrope
2012-03-20T06:40:02-07:00
Forum: PerlMagick
Topic: Select rectangular region -- Clone & Crop?
Replies: 9
Views: 31368

Re: Select rectangular region -- Clone & Crop?

An image clone copies the image meta data but shares the pixel data cache with the source image. Its only when you try to update the clone pixel data that the pixel cache is cloned. OK. I guess I got my answer. Just for academic purposes, though: The replies seem to suggest the following: Given a $...
by magiotrope
2012-03-20T04:34:48-07:00
Forum: PerlMagick
Topic: Select rectangular region -- Clone & Crop?
Replies: 9
Views: 31368

Re: Select rectangular region -- Clone & Crop?

note that cloning an image is not scary, memory wise. Cloning does make a copy of image meta-data, but the actual image data is not copied until it is changed. Crop only reads the existing data, and creates a new image of the area being cropped. As such a clone-crop only costs the original image, +...
by magiotrope
2012-03-20T00:51:36-07:00
Forum: PerlMagick
Topic: Annotate fails for unicode chars from broader set
Replies: 2
Views: 15398

Re: Annotate fails for unicode chars from broader set

ImageMagick will handle UNICODE just fine. The text must be in utf-8 but that is pretty well implied as standard. You can use a converter like "iconv" or "recode" to convert other text formats (like utf16, or ISO8859-1, or gb2312) to utf8 What it does however need is a font that...
by magiotrope
2012-03-19T10:17:25-07:00
Forum: PerlMagick
Topic: Annotate fails for unicode chars from broader set
Replies: 2
Views: 15398

Annotate fails for unicode chars from broader set

I tried Times New Roman and other fonts. Regardless -- characters such as '∥', '⊞', '≅', and many others, including some composite (combining) characters from various alphabets are rendered as quesitonmarks by -->Annotate (this is the output of the code below: http://www.flight.us/misc/myannot.jpg a...
by magiotrope
2012-03-19T09:03:59-07:00
Forum: PerlMagick
Topic: Select rectangular region -- Clone & Crop?
Replies: 9
Views: 31368

Re: Select rectangular region -- Clone & Crop?

ImageMagick supports efficient cropping for raw images and MPC images. Assume a rectangular array of RGB pixels: convert -size 100000x100000 -depth 8 'rgb:myimage.dat[1000x1000+100+100]' crop.png Or MPC: convert image.mpc -crop 1000x1000+100+100 crop.jpg For all other formats, the image must first ...
by magiotrope
2012-03-19T06:31:27-07:00
Forum: PerlMagick
Topic: Select rectangular region -- Clone & Crop?
Replies: 9
Views: 31368

Select rectangular region -- Clone & Crop?

Is Clone & Crop the only way to get a rectangular region from an image (leaving the original intact)?? (something like $original=Image::Magick->[whichever way]; $rectangle=$original->Clone(); $rectangle->Crop(geometry=>'80x80+25+50'); ) Is there a way to get/select a rectangular region without h...