imagemagick problem: height-and-width not deterministic when I crop an png file.
After spending a few hours and having some little sleep,
I am very puzzled and disturbed by the fact that new-new-02-5-1.png does not have the intended 818x788. It must have to do with cropping with nonzero offsets. Can anyone please tell me what is wrong ? I have the following simple steps to illustrate my problem. Quote:
|
On Fedora 10,
Quote:
Quote:
|
With some reservations, I conclude that the first crop mess up the origin in the output png file (or some meta information mess up). The dimension of the second crop will be totally wrong because of that. With my colleague's help (a good pair of extra eyes and
intelligent guess work), the problem goes away if the first crop is stored in a bmp format (we just tried that format, can't say with other format), and the second crop crops perfectly. It seems this is a subtle bug in ImageMagick. Well, I get what I want. Hopefully some ImageMagick developer will reproduce this error and fix it for the goodness of the community. |
All times are GMT -5. The time now is 03:01 AM. |