issue script Distort Perspective (difference unix - windows)

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
michelsylv
Posts: 3
Joined: 2012-07-27T00:22:12-07:00
Authentication code: 15
Location: Paris, France

issue script Distort Perspective (difference unix - windows)

Post by michelsylv »

Hi all,

I have a project and I have to do a perspective image with imagemagick.
On my dev platform (windows IM:6.6.2-10), imagemagick create a perfect image but on my production (ubuntu 6.6.0-4) platform I have an issue.

Example of my code :

Code: Select all

exec('convert source.jpg -matte -virtual-pixel transparent -distort Perspective "0,0,0,0 0,472,0,472 444,0,444,80 444,472,444,400" result.png');
header("Content-Type: image/png");
print file_get_contents('result.png');
Result on windows platform:
Image

Result on ubuntu platform :
Image

Thanks in advance for your help

Regards
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: issue script Distort Perspective (difference unix - wind

Post by fmw42 »

The older version may have had a bug in -virtual-pixel or it was not implemented in -distort perspective. Try other -virtual-pixel settings such as black or white or perhaps first try -background none -virtual-pixel background. See what you get from those.
michelsylv
Posts: 3
Joined: 2012-07-27T00:22:12-07:00
Authentication code: 15
Location: Paris, France

Re: issue script Distort Perspective (difference unix - wind

Post by michelsylv »

Hello,

thanks for your answer.

No changes with -virtual-pixel black or -background none -virtual-pixel background ...

You talk of old version but there is a significant difference between 6.6.2 and 6.6.0 ?
Somebody have another idea ?

Best regards,

Sylvain
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: issue script Distort Perspective (difference unix - wind

Post by Bonzo »

You talk of old version but there is a significant difference between 6.6.2 and 6.6.0 ?
Imagemaagick is always changing and it has to change at some point; it could have been then. A bug may have been introduced when something else was changed.
michelsylv
Posts: 3
Joined: 2012-07-27T00:22:12-07:00
Authentication code: 15
Location: Paris, France

Re: issue script Distort Perspective (difference unix - wind

Post by michelsylv »

ok thanks.

I uninstall imagemagick 6.6.0 (this version was installed automatically with apt-get).

I compile imagemagick ( as explain here : http://www.imagemagick.org/script/insta ... e.php#unix) in version 6.7.8 and all is right !

Thanks for your help

Sylvain
Post Reply