Page 1 of 1

which libs for clipping path recognition

Posted: 2010-12-09T01:30:15-07:00
by axelrose
Hello all,

I have one installation where "identify -verbose with-clip.jpg" doesn't show any
clipping path whereas another installation shows such a path on the same test image.

The working installation is from MacPorts and uses libexpat and has no librsvg.
The failing installation is using libxml2.

Which libraries are essential to recognize the clipping path?

Thanks, Axel.

Re: which libs for clipping path recognition

Posted: 2010-12-10T01:44:21-07:00
by axelrose
(edit)

Perhaps this is not a library issue.

I debugged further and found that in "property.c"

Code: Select all

  profile=GetImageProfile(image,"8bim");
doesn't return any profile.

Does anybody have an idea why this particular "8bim" profile doesn't seem to be extractable?
After building "make check" doesn't report any error.
How could I continue debugging?

Regards, Axel

Re: which libs for clipping path recognition

Posted: 2010-12-10T13:37:27-07:00
by axelrose
After reading a few other threads in this forum which mention issues with 'iptc' and '8bim'
profiles I retried with an older versions, using the same build script as before.

6.6.3-10 works fine
6.6.6-3 doesn't work

There is no need to have librsvg or xml support.

I suggest the test routines are expanded to reveal this problem earlier.

Regards, Axel.

Re: which libs for clipping path recognition

Posted: 2010-12-10T13:51:08-07:00
by magick
Can you post a URL to with-clip.jpg? We'll need to reproduce the problem and we'll follow up with a patch in the next few days. Thanks.

Re: which libs for clipping path recognition

Posted: 2010-12-11T02:14:43-07:00
by axelrose
http://dl.dropbox.com/u/84530/IM/with-clip.jpg

> ImageMagick-6.6.3-10/bin/identify -verbose with-clip.jpg | grep svg
<svg width="100" height="100">
</svg>

> ImageMagick-6.6.6-3/bin/identify -verbose with-clip.jpg | grep svg
>

Re: which libs for clipping path recognition

Posted: 2010-12-11T09:42:24-07:00
by magick
Thanks, we'll get a patch in the next point release of ImageMagick.

Re: which libs for clipping path recognition

Posted: 2010-12-11T19:26:19-07:00
by anthony
axelrose wrote:http://dl.dropbox.com/u/84530/IM/with-clip.jpg

> ImageMagick-6.6.3-10/bin/identify -verbose with-clip.jpg | grep svg
<svg width="100" height="100">
</svg>

> ImageMagick-6.6.6-3/bin/identify -verbose with-clip.jpg | grep svg
>
Of course grep will not show any lines between the start and end SVG lines. Thye don't contain the text 'svg'.
Try this..

Code: Select all

   ImageMagick-6.6.6-3/bin/identify -verbose with-clip.jpg  | sed -n '/<svg/,$p /<\/svg/q'

Re: which libs for clipping path recognition

Posted: 2010-12-12T04:05:11-07:00
by axelrose
I'm using "identify -verbose" just for demonstration. The problem shows up with a different test easily:

Code: Select all

> ImageMagick-6.6.6-3/bin/identify -verbose with-clip.jpg  | grep -i clip
Image: /Users/ar/work/censhare-projects/rewe/with-clip.jpg
> ImageMagick-6.6.3-10/bin/identify -verbose with-clip.jpg  | grep -i clip
Image: /Users/ar/work/censhare-projects/rewe/with-clip.jpg
  Clipping path: 
Your command returns with an "sed" error message

Code: Select all

> ImageMagick-6.6.3-10/bin/identify -verbose with-clip.jpg  | sed -n '/<svg/,$p /<\/svg/q'
sed: 1: "/<svg/,$p /<\/svg/q": extra characters at the end of p command
It would be nice if there were some explicit command to extract the clipping path from any image as SVG.

Regards, Axel.

Re: which libs for clipping path recognition

Posted: 2010-12-12T04:54:33-07:00
by anthony
applogies put a ';' after the 'p'

Code: Select all

... | sed -n '/<svg/,$p; /<\/svg/q'

Re: which libs for clipping path recognition

Posted: 2010-12-12T11:13:57-07:00
by axelrose
Thank you for your kind correction!

Re: which libs for clipping path recognition

Posted: 2010-12-13T01:19:50-07:00
by axelrose
Issue is resolved with 6.6.6-5

Thanks, Axel.