Working at home, not working at Servage.net

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
spidgorny
Posts: 2
Joined: 2011-05-25T22:07:26-07:00
Authentication code: 8675308

Working at home, not working at Servage.net

Post 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?
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

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

Post by glennrp »

Yes, IM-6.0.4 is very old (7 years next month!) and probably lacks the feature.
spidgorny
Posts: 2
Joined: 2011-05-25T22:07:26-07:00
Authentication code: 8675308

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

Post 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?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post 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>"; 
?> 
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply