path-information are scaling down

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?".
Post Reply
Luca
Posts: 8
Joined: 2011-01-13T07:42:40-07:00
Authentication code: 8675308

path-information are scaling down

Post by Luca »

Hello,

the path-information are scaling down if I use -trim . I think by the amount of the trimmed area. The path should keep the same scale as before because I use it for clipping. How can I just trim the image and dont touch the path?
Thank you :)
Luca
Posts: 8
Joined: 2011-01-13T07:42:40-07:00
Authentication code: 8675308

Re: path-information are scaling down

Post by Luca »

Ok I think I was wrong. What I tried to explain also happens if I use -crop.
Problem: The clipping-path is relative to the new, converted image.

What I need is the clipping-path applied to the new (alter convert) image with the offset and scale of the old (before convert) image.

Example: I souround an object with a clipingpath to use it for some other reasons. Now I crop a part away. Finaly the path does not fit to the object anymore.

If I double ob the size of an image by using -resize I expect that the clipping-path also will be scaled up. And thats exactly how it looks like. But I started to realize that imagemagick just dont touches the path. I guess the position and scale of a clipping-path is relative to the size of an image.

Maybe imagemagick has no option to modify the path like I need. If thats true can please please someone tell me?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: path-information are scaling down

Post by magick »

ImageMagick does not modify the image clipping path. Its treated as a blob and carried forward regardless of the operations you perform on the image.
Post Reply