which libs for clipping path recognition
which libs for clipping path recognition
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.
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
(edit)
Perhaps this is not a library issue.
I debugged further and found that in "property.c"
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
Perhaps this is not a library issue.
I debugged further and found that in "property.c"
Code: Select all
profile=GetImageProfile(image,"8bim");
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
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.
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
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
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
>
> 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
Thanks, we'll get a patch in the next point release of ImageMagick.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: which libs for clipping path recognition
Of course grep will not show any lines between the start and end SVG lines. Thye don't contain the text 'svg'.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
>
Try this..
Code: Select all
ImageMagick-6.6.6-3/bin/identify -verbose with-clip.jpg | sed -n '/<svg/,$p /<\/svg/q'
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: which libs for clipping path recognition
I'm using "identify -verbose" just for demonstration. The problem shows up with a different test easily:
Your command returns with an "sed" error message
It would be nice if there were some explicit command to extract the clipping path from any image as SVG.
Regards, Axel.
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:
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
Regards, Axel.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: which libs for clipping path recognition
applogies put a ';' after the 'p'
Code: Select all
... | sed -n '/<svg/,$p; /<\/svg/q'
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: which libs for clipping path recognition
Thank you for your kind correction!
Re: which libs for clipping path recognition
Issue is resolved with 6.6.6-5
Thanks, Axel.
Thanks, Axel.