Page 1 of 1

Working at home, not working at Servage.net

Posted: 2011-07-13T02:47:47-07:00
by spidgorny
The following are two IM commands - one from my Windows localhost and one from Servage. Except for different paths they are identical. But the one on Servage doesn't work. The perspective transformation is not applied.

Image

Do you have a clue what could be wrong?
Could this be related to the difference in version (Servage has 6.0.4).

c:\wamp\www\im\ImageMagick-6.6.9-8\convert C:/wamp/www/t3targa/typo3conf/ext/itb_domainimg/pi1/Book3D.png[0] ( C:/wamp/www/t3targa/uploads/tx_itbpostcard/_default.jpg[0] -crop 80%x100%+236+0 +repage -matte -virtual-pixel transparent +distort Perspective "0,0 57,22 0,1067 58,368 946,1067 280,400 946,0 281,2" ) -geometry +57+1 -composite -resize 284x -verbose C:/wamp/www/t3targa/typo3temp/tx_itbpostcard/_default.jpg-3D.png 2>&1
/usr/bin/convert /home134/sub024/sc79405-HHLQ/in-the-book.com/typo3conf/ext/itb_domainimg/pi1/Book3D.png[0] \( /home134/sub024/sc79405-HHLQ/in-the-book.com/uploads/tx_itbpostcard/_default.jpg[0] -crop 80%x100%+236+0 +repage -matte -virtual-pixel transparent +distort Perspective "0,0 57,22 0,1067 58,368 946,1067 280,400 946,0 281,2" \) -geometry +57+1 -composite -resize 284x -verbose /home134/sub024/sc79405-HHLQ/in-the-book.com/typo3temp/tx_itbpostcard/_default.jpg-3D.png 2>&1

Look at the commands with word-wrapping off - they are aligned to each other.
Is perspective transformation something which can be missing (plugin) even if IM is installed?

Re: Working at home, not working at Servage.net

Posted: 2011-07-13T03:11:06-07:00
by glennrp
Yes, IM-6.0.4 is very old (7 years next month!) and probably lacks the feature.

Re: Working at home, not working at Servage.net

Posted: 2011-07-13T03:51:09-07:00
by spidgorny
Sorry, I made a mistake in a version. It's actually 6.6.0-4 2010-12-20, which is not so old. Sorry. Any ideas?

Re: Working at home, not working at Servage.net

Posted: 2011-07-13T04:37:49-07:00
by Bonzo
Example of displaying errors using php - see if it comes up with anything:

Code: Select all

<?php
$array=array();
echo "<pre>";
exec("convert -channel B -separate Output_test1.png 2>&1", $array); 
echo "<br>".print_r($array)."<br>";
echo "</pre>"; 
?> 

Re: Working at home, not working at Servage.net

Posted: 2011-07-13T10:02:19-07:00
by fmw42
From http://www.imagemagick.org/Usage/distor ... rol_points

"Before IM version 6.3.6-0 when the Distort Operator operator was first introduced, the coordinate ordering for control points was defined as all the source coordinates, followed by all the destination coordinates. This however made it very hard to determine which source and destination coordinates corresponded to each other, and did not allow for the simple appending of more control points to further refine a distortion."

Might one version be older and one version newer?

What are the two actual versions? Can you verify? It looks as if this is not your problem, but worth making sure you don't have multiple versions on you systems. Some ISP's have multiple versions -- v5 and v6. Perhaps you are actually using v5 prior to -distort?

convert -version

which convert

type convert

Are you running this command in both cases from the command line or from PHP?

Re: Working at home, not working at Servage.net

Posted: 2011-07-13T18:27:52-07:00
by anthony
The difference in the image looks more like the -virtual-pixel setting to me. The first looks like the default 'edge' setting, Not how the 'p' that touches the bottom edge gets extended. The second image is using 'transparent' setting instead.